rotating images works in IE not FF

Discussion in 'Software' started by Jodi, Dec 7, 2009.

  1. Jodi

    Jodi Private First Class

    Hi Everyone, I have a java script for randomly rotating images on a site that works fine in IE but does not show anything at all in FF, here is the code I am using, any advice at all would be most appreciated.
    Thank you all in advance.
    <img name="img1" width="326" height="240" hspace="7" border="1" /><br />
    </p></td>
    <script language="JavaScript">
    images = new Array(7);
    images[0] = "./hpphoto/tn_photo1.jpg";
    images[1] = "./hpphoto/tn_photo2.jpg";
    images[2] = "./hpphoto/tn_photo3.jpg";
    images[3] = "./hpphoto/tn_photo4.jpg";
    images[4] = "./hpphoto/tn_photo5.jpg";
    images[5] = "./hpphoto/tn_photo6.jpg";
    images[6] = "./hpphoto/tn_photo7.jpg";
    index = Math.floor(Math.random() * images.length);
    img1.src=images[index];
    </script>
    here is the site url: http://youreonlinetoday.com/paramount/index.php

    Thanks again!!
     
  2. Tux_Rules

    Tux_Rules Corporal


MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds