Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need Help with code

    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>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    676
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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)))


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •