/    Sign up×
Community /Pin to ProfileBookmark

hands-free web page slide show (help)

Hello, I need help with a hands-free web page slide show script I found at [URL]http://javascript.internet.com/navigation/web-slideshow.html#source[/URL] This script would help me refresh a live page without anoying people everytime the page gets new data. I’ve tryed everything to get it to run. This is what it looks like.

<!– FIVE STEPS TO INSTALL WEB SLIDESHOW:

  • 1. Open a new page, save it as: slideshow-left.html

  • 2. Copy the coding into the HEAD of slideshow-left.html

  • 3. Add the onLoad code into the BODY of slideshow-left.html

  • 4. Put the BODY coding into the BODY of slideshow-left.html

  • 5. Save the FRAMESET code as slideshow.html –>
  • <!– STEP ONE: Create a new page, save as: slideshow-left.html page –>

    <!– STEP TWO: Save this page as slideshow-left.html page –>

    <HEAD>

    <SCRIPT LANGUAGE=”JavaScript”>
    <!– Original: Randy Bennett ([email protected]) –>
    <!– Web Site: [url]http://home.thezone.net/~rbennett/sitemap.htm[/url] –>
    <!– Modified by: Ronnie T. Moore, Editor –>

    <!– This script and many more are available free online at –>
    <!– The JavaScript Source!! [url]http://javascript.internet.com[/url] –>

    <!– Begin
    var repeatshow = 1; // 1 = yes, 0 = no
    var timedelay = 15000; // time in milliseconds, 15000 = `15 secs
    // be sure to allow enough time for each page to load !!!

    var page = new Array(
    “web-slideshow-demo1.html”,
    “web-slideshow-demo2.html”,
    “web-slideshow-demo3.html”,
    ); // note no comma after last page!

    // your “the end” page. Necessary if repeatshow = 0;
    var endpage = “the-end.html”;

    var slidenum = 0;
    var slidecount = page.length;
    var timerID = 0;
    var win2;
    function showSlideShow() {
    slidenum++;
    if (slidenum < slidecount+1) {
    parent.main.location.href = page[slidenum-1];
    }
    if (slidenum == slidecount+1) { // if finished
    if (repeatshow) {
    slidenum = 0;
    timerID = setTimeout(‘showSlideShow()’, timedelay)
    }
    else parent.main.location.href = endpage;
    }
    else timerID = setTimeout(‘showSlideShow()’, timedelay);
    }
    // End –>
    </script>
    </HEAD>

    <!– STEP THREE: Insert the onLoad code in slideshow-left.html –>

    <BODY onLoad=”timerID=setTimeout(‘showSlideShow()’,timedelay)”>

    <!– STEP FOUR: Copy this code into the BODY of slideshow-left.html –>

    <center>
    <a href=”web-slideshow-demo.html” target=”main” onClick=”clearTimeout(timerID)”><B>MAIN MENU</B></A><br>
    <br>
    <a href=”web-slideshow-demo1.html” target=”main” onClick=”clearTimeout(timerID)”>Page One</a><br>
    <a href=”web-slideshow-demo2.html” target=”main” onClick=”clearTimeout(timerID)”>Page Two</a><br>
    <a href=”web-slideshow-demo4.html” target=”main” onClick=”clearTimeout(timerID)”>Page Three</a><br><br>
    <a href=”javascript:showSlideShow();” onClick=”clearTimeout(timerID)”>Cycle Pages</a><br>
    </center>

    <p><center>
    <font face=”arial, helvetica” SIZE=”-2″>Free JavaScripts provided<br>
    by <a href=”http://javascriptsource.com”>The JavaScript Source</a></font>
    </center><p>

    <!– STEP FIVE: Save this final FRAMESET code into a new page –>
    <!– Save that page as: slideshow-left.html page –>

    <html>
    <frameset cols=”150,*” border=5>
    <frame src=”slideshow-left.html” name=”side” sideborder=1 Scrolling=”yes” marginwidth=”5″ marginheight=”5″ noresize>
    <frame src=”main.html” name=”main” sideborder=1 Scrolling=”yes” marginwidth=”5″ marginheight=”5″ noresize>
    </frameset>
    </frameset>
    </html>

    <!– Script Size: 2.26 KB –>

    Any help would be appreciated. Thanks

    to post a comment
    JavaScript

    3 Comments(s)

    Copy linkTweet thisAlerts:
    @Mr_JNov 05.2005 — Look in the attached zip file

    [upl-file uuid=8007db7f-0425-4ea9-ac3a-5a8fa6e055f0 size=2kB]New Folder.zip[/upl-file]
    Copy linkTweet thisAlerts:
    @jwgreen65authorNov 05.2005 — Zip file doesn't help. Can anyone show the code and a live example?
    Copy linkTweet thisAlerts:
    @Mr_JNov 05.2005 — What do you mean

    Zip file doesn't help. Can anyone show the code and a live example?[/QUOTE]

    The files in the zip contain a working example
    ×

    Success!

    Help @jwgreen65 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...