Where did I mess up? Help

Discussion in 'jQuery' started by tptnyc, Jun 3, 2011.

  1. #1
    Where did I mess up? Here is the coding and I need to have image rollover effect.



    <body>
    <html>
    <head>
    <script type="text/javascript">
    <!--
    image01= new Image()
    image01.src="test.JPG"
    image02= new Image()
    image02.src="test3.JPG"

    function rollover(imagename, newsrc){
    document.images[imagename].src=newsrc.src
    }
    //-->
    </script>
    </head>

    <body>
    <a href="#" onmouseover="rollover('style_two.JPG', image02)"
    onmouseout="rollover('style_one.JPG', image01)">
    <img src="test.JPG" name="style_one.JPG">
    <img src="test.JPG" name="style_two.JPG">
    <img src="test.JPG" name="style_three.JPG">


    </a>
    </body>

    </html>
     
    tptnyc, Jun 3, 2011 IP
  2. tptnyc

    tptnyc Peon

    Messages:
    764
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Uhh! No one can correct the code!
     
    tptnyc, Jun 4, 2011 IP
  3. stardust.x7

    stardust.x7 Active Member

    Messages:
    369
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    90