i need a little help with java

MikeMike

Lifer
Feb 6, 2000
45,885
66
91
sorry i posted it in the wrong forum accidently but here is a link to it

Help! Please!!!!

oh yeah here is the code i am just trying this for fun no real reason

beginner so take it easy it may be a bit sloppy

<html>
<head>
<title>Power PC: Gaming Computer Configurer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head>

<body bgcolor="#003399" text="#000000">



<table width="33%" border="1" cellspacing="2" cellpadding="0" align="center">
<tr>
<td align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/pcheader.png"></td>
</tr>
</table>
<table width="100%" border="1" cellspacing="2" cellpadding="0" bgcolor="#FFCC66">
<tr>
<td valign="top" align="center" height="26"><font size="4" color="#FF0000"><a href="file:///C|/Web_Design/Web_Sites/home">Home</a><img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5">
<a href="file:///C|/Web_Design/Web_Sites/why_choose" onClick="NewWindow(this.href,'','800',600','1'; return false;">Why
Choose Power PC</a> <img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5"><a href="file:///C|/Web_Design/Web_Sites/gaming_comp">Gaming
Computers</a> <img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5"><a href="file:///C|/Web_Design/Web_Sites/preconfig_comp">Preconfigured
Computers</a> <img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5"><img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5"><a href="file:///C|/Web_Design/Web_Sites/homeoffice_comp">Home/Office
Computers</a><img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5">
<a href="file:///C|/Web_Design/Web_Sites/contact">Contact Us</a><img src="file:///C|/Web_Design/Web_Sites/Images/pixelspace20.png" width="20" height="5">
<a href="file:///C|/Web_Design/Web_Sites/technical_support">Technical Support
</a> </font></td>
</tr>
</table>




<input type="hidden" name="option" value="">
<table width="75%" border="2" cellspacing="2" cellpadding="0" align="center">
<tr>
<td width="9%"><img src="file:///C|/Web_Design/Web_Sites/Images/sx1030crop.png" width="76" height="195"></td>
<td width="83%">l</td>
<td width="8%">l</td>
</tr>
</table>


<table width="75%" border="1" cellspacing="4" cellpadding="0" align="center" body bgcolor="#C1BCB5">
<tr width="20%">
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/cases.png" width="35" height="29"></td>




//this is where i need help
<td width="77%" height="20%" align="center"><select name="Case" id="Case"onChange="OnChangeCategory(0, -1, -1);" width="500" style="background-color:#FFFFFF; color:#06303D; font-family: verdana, geneva, helvetica, arial; width: 500px;">
</select>
</td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/processors.png" width="68" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/motherboards.png" width="86" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/memorys.png" width="52" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/keyboards.png" width="62" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/mouses.png" width="46" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/video_cards.png" width="72" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/video_coolings.png" width="93" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/hard_drives.png" width="70" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/secondary_hard_drives.png" width="135" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/raid_controllers.png" width="102" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/scsi_ide_controllers.png" width="120" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/cd_roms.png" width="52" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/cd_rws.png" width="45" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/dvd_roms.png" width="58" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/sound_cards.png" width="78" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/speakers.png" width="57" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/ethernet_nics.png" width="81" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/modems.png" width="48" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/power_protections.png" width="112" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/productivity_softwares.png" width="139" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/storages.png" width="55" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/controllers.png" width="75" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/monitors.png" width="58" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/operating_systems.png" width="107" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
<tr>
<td width="11%" height="20%"><img src="file:///C|/Web_Design/Web_Sites/Images/warrantys.png" width="64" height="29"></td>
<td width="77%" height="20%" align="center"></td>
<td width="12%" height="20%" align="center"><img src="file:///C|/Web_Design/Web_Sites/Images/diffs.png" width="74" height="29"></td>
</tr>
</table>

<table width="75%" border="0" cellspacing="2" cellpadding="0" align="center">
<tr>
<td></td>
</tr>
</table>


//this is where i need help
<script Language="JavaScript">
var arrPrices = new Array();
var arrCat = new Array();
var arrCase = new Array();
var arrCase = new Array();
var arrCase[0]=new Array('Antec SX 1040 Fulltower Case (Beige)' 180, 101, 0);
</script>

</body>
</html>
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
write a function that loops through the array and adds items to the drop down list, you cant just use an array as your data source, what do you think this is .NET? lol
 

Ameesh

Lifer
Apr 3, 2001
23,686
1
0
btw next time dont post all this html no one wants to see it, just ask your problem.
 

MikeMike

Lifer
Feb 6, 2000
45,885
66
91


<< btw next time dont post all this html no one wants to see it, just ask your problem. >>



i was gunna do that but figured it would be easier to see visually the picture then what u might have thought was the problem


and how do i create the function because i am not that good an example might be helpful