Results 1 to 3 of 3

Thread: Conveyor belt slideshow script

  1. #1
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conveyor belt slideshow script

    I have used this script and it works in IE but does not work in Chrome. Any ideas?? URL is qualityfruitland.com

    <div style="text-align: center"><body><script language="JavaScript1.2">
    <!--

    /*
    Conveyor belt slideshow script-
    Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions,
    100's more DHTML scripts, and Terms Of
    Use, visit dynamicdrive.com
    */


    //Specify the slider's width (in pixels)
    var sliderwidth=1000;
    //Specify the slider's height (in pixels, pertains only to NS)
    var sliderheight=65;
    //Specify the slider's scroll speed (larger is faster)
    var slidespeed=6;

    //Specify the slider's images
    var leftrightslide=new Array();
    var finalslide='';
    leftrightslide[0]='<a href="http://"><img src="prod1flash.jpg" width=375 height=275 border=1></a>';
    leftrightslide[1]='<a href="http://"><img src="prod2flash.jpg" width=375 height=275 border=1></a>';
    leftrightslide[2]='<a href="http://"><img src="prod3flash.jpg" width=375 height=275 border=1></a>';
    leftrightslide[3]='<a href="http://"><img src="prod4flash.jpg" width=375 height=275 border=1></a>';
    leftrightslide[4]='<a href="http://"><img src="prod5flash.jpg" width=375 height=275 border=1></a>';

    ///////do NOT edit pass this line////////////////////////////////////

    var copyspeed=slidespeed;
    //copy contents of leftrightslide into one variable
    for (i=0;i<leftrightslide.length;i++)
    finalslide=finalslide+leftrightslide[i]+"&nbsp;&nbsp;";


    if (document.all){
    //dynamically write out the marquee tag
    document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>');
    //stop marquee when mouse is over it
    ieslider.onmouseover=new Function("ieslider.scrollAmount=0");
    //re-enable marquee when mouse is out
    ieslider.onmouseout=new Function("if (document.readyState=='complete') ieslider.scrollAmount=slidespeed");
    }

    function regenerate(){
    window.location.reload();
    }
    function regenerate2(){
    if (document.layers){
    document.ns_slider01.visibility="show";
    setTimeout("window.onresize=regenerate",450);
    intializeleftrightslide();
    }
    if (document.all)
    ieslider.scrollAmount=slidespeed;
    }

    //NS specific function for initializing slider upon page load
    function intializeleftrightslide(){
    document.ns_slider01.document.ns_slider02.document.write('<nobr>'+finalslide+'</nobr>');
    document. ns_slider01.document.ns_slider02.document.close();
    thelength=document.ns_slider01.document.ns_slider02.document.width;
    scrollslide();
    }

    //NS specific function for sliding slideshow
    function scrollslide(){
    if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){
    document.ns_slider01.document.ns_slider02.left-=slidespeed;
    setTimeout("scrollslide()",100);
    }
    else{
    document.ns_slider01.document.ns_slider02.left=sliderwidth;
    scrollslide();
    }
    }
    window.onload=regenerate2;

    //-->
    </script>


    <ilayer width=&{sliderwidth}; height=&{sliderheight}; name="ns_slider01" visibility=hide>
    <layer name="ns_slider02" onMouseover="slidespeed=0;" onMouseout="slidespeed=copyspeed"></layer>
    </ilayer></div>

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,926
    Thanks
    43
    Thanked 3,192 Times in 3,155 Posts
    Blog Entries
    12

    Default

    That's an outdated version of the script. Use the very similar current version:

    http://www.dynamicdrive.com/dynamici...rightslide.htm

    or the even more versatile and up to date, though different:

    http://www.dynamicdrive.com/dynamici...wler/index.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Apr 2013
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect!! Thanks from a newbie.

Similar Threads

  1. Conveyor Belt slideshow script
    By lommel in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 11-20-2005, 02:20 AM
  2. Conveyor Belt slideshow script
    By frodewells in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 06-10-2005, 03:32 AM
  3. Conveyor Belt slideshow script
    By mid2102 in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-23-2005, 06:06 AM
  4. conveyor belt slideshow script
    By adbj1145 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 12-15-2004, 12:07 PM
  5. Conveyor Belt slideshow script All
    By lexusgirl24 in forum HTML
    Replies: 3
    Last Post: 12-01-2004, 02:57 AM

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
  •