SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    0 Post(s)
    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:

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

    <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
    <!-- END -->
    <body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
    <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>

    <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>
    <tr><td align=center>
    <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="">

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Melbourne, AU
    448 Post(s)
    8 Thread(s)
    Hi vr100, and welcome to SitePoint!

    Your gallery is working fine for me in Safari and Chrome (Mac).
    Facebook | Google+ | Twitter | Web Design Tips | Free Contact Form

    Forum Usage: Tips on posting code samples, images and more

    Forrest Gump: "IE is like a box of chocolates: you never know what you're gonna get."

  3. #3
    SitePoint Member
    Join Date
    Jun 2010
    0 Post(s)
    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


Posting Permissions

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