...

View Full Version : Need Help with code



la859
10-22-2003, 03:14 AM
I can't get the prices to come in where they should. I am new to Java. Please help ASAP!

<html>

<head>
<title>Jennifer's Floral Garden</title>
<script LANGUAGE="JAVASCRIPT">
<!-- Hide from old browsers>
var banner = new Array("florist1.jpg", "florist2.jpg", "florist3.jpg")
var banctr = 0
function roller() {
if (banctr == 3) {
banctr=0
}
document.Bannerspot.src=banner[banctr]
banctr = banctr + 1
setTimeout("roller()",3000)
}
function floralPrice(myform) {

var itemSelect = myform.FloralList.selectedIndex
myform.PiecePrice.value = floral[itemSelect]

var floral = new Array ("Select a floral piece","Please call for special prices","18.95 a dozen", "7.95 a dozen", "25.95 a set")


}
//-->
</script>
</head>

<body onload="roller()">

<table border="1" width="100%">
<tr>
<td width="40" bgcolor="#FFFFFF"><p align="center"><img src="FloralLogo.jpg" width="184"
height="200"></td>
<td width="30%" bgcolor="#FFFFFF"><p align="center"><img src="Rose2.jpg" width="131"
height="126"></td>
<td width="30%" bgcolor="#FFFFFF"><h2><font color="#008040">Talk with our award winning
floral designer and nationally renowned landscape artist. </font></h2>
</td>
</tr>
<tr>
<td width="40"><img src="filler.jpg" Name="Bannerspot" width="275" height="75"></td>
<td width="60%" colspan="2"><form NAME="FloralMenu">
<p><select Name="floralPrice" onchange="floralPrice()" size="1">
<option>Select a Floral Piece</option>
<option>Call for special orders</option>
<option>A dozen roses</option>
<option>A dozen carnations</option>
<option>Birthday Greeting</option>
function cost(myform){
Cost:<input type="text" value=" " Name="PiecePrice" size="15">
}
</select>
</form>
</td>
</tr>
</table>
</body>
</html>

justame
10-22-2003, 04:03 AM
la8...
just a try® changing this line...
<td width="40" bgcolor="#FFFFFF">

to...
<td width="40%" bgcolor="#FFFFFF">

just a goodluck® n' hoping it helps...:O)))



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum