SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    I have a javascript "jpeg slideshow" that does not work in safari or chrome

    I have an "jpeg slideshow" of 29 jpeg images on a page created using Javascript. It works fine in Internet Explorer and Firefox but not Safari or Chrome. The jpeg files names are 01.jpg through to 29.jpg. Here below is the code in the header and the body. I work in the fashion industry where everyone tends to use MACs and their own browser, Safari. There is an error in there somewhere:


    Here is the page on the website: http://www.victorrossi.com/home.htm

    Here is the code (the Javascript enabled "jpeg slideshow" is where the trouble maybe):

    <html>
    <head>
    <title>Victor Rossi - Private Label and Couture</title>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
    <SCRIPT language="JavaScript" type="text/JavaScript">
    <!--
    var speed=1333;
    var counter=1;
    function rollPics() {
    document.display.src=counter+".jpg"; //Display image "counter".jpg
    counter ++; // Add 1 to counter
    if (counter>29) { // If counter is greater than 29 images then reset it
    counter=1
    }
    }
    <!-- END -->
    </SCRIPT>
    </head>
    <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
    <center>
    <strong><img src="VR-logo.jpg" width="157" height="33"><br>
    <a href="home.htm">Home</a> |
    <a href="catalog.htm">Catalog</a> |

    <a href="gallery.htm">Fashion Gallery</a> |
    <a href="size.htm">Size Chart</a> |
    <a href="media.htm">In the Media</a> |
    <a href="about.htm">About Us</a> |
    <a href="contact.htm">Contact</a></strong></center>
    <p><hr width=50%><p><center>
    <table cellspacing=0 cellpadding=0 width="702" border=0>
    <tr>

    <td valign=top>
    <b><font color=#808080 size=3>Victor Rossi has evolved from its custom couture design roots into one of the world's most reliable design houses, private label
    manufacturers and global sourcing agents. Our combination of innovation, stellar craftsmanship, exceptional customer and client care are our hallmarks.</font>
    <IMG NAME="display" SRC="1.jpg" onLoad="setTimeout('rollPics()',1333)">
    <!-- the last number here is the delay in one thousandths of a second - you can change this-->
    <p><hr width=25%><p>
    </td></tr>
    <tr><td align=center>
    <p>
    <FORM METHOD=POST ACTION="http://us.1.p10.webhosting.yahoo.com/forms?login=singh100">
    <b><font color=#808080 size=3>Join the Victor Rossi mailing list !</b></font><br>
    <table border=0>
    <tr><td><font color=#808080>nameBR>
    e-mail: <BR></td>

    <td><INPUT size=27 name="name"><br>
    <INPUT size=27 name="e-mail"></font></td></tr>
    <tr><td colspan=2 align=center><INPUT type=submit value="Submit to Victor Rossi">
    <INPUT NAME=subject TYPE=HIDDEN VALUE="e-mail list">
    <input type="hidden" name="required_fields" value="name,e-mail">
    <input type="hidden" name="next_url" value="http://victorrossi.com/thankyou.htm">
    </FORM>
    </td></tr>
    </table>
    </td></tr>
    </table>
    </center>
    </body>
    </html>

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Hi vr100, and welcome to SitePoint!

    Your gallery is working fine for me in Safari and Chrome (Mac).

  3. #3
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by ralph.m View Post
    Hi vr100, and welcome to SitePoint!

    Your gallery is working fine for me in Safari and Chrome (Mac).

    Hi ! I found a solution although the code is a little complicated. Someone here saw my code and gave me a workable solution which I already uploaded


Bookmarks

Posting Permissions

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