Results 1 to 4 of 4

Thread: Conveyor Belt slideshow script

  1. #1
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conveyor Belt slideshow script

    Hello once again from germany and at first once again the same sentence as every year, i'm sorry for my bad english (bad or worse?? bad-worse-worst - oh, my school-time is long time ago... )!!
    Okay, here is my question: I use the Conveyor Belt slideshow script
    for my Homepage to show sponsoring-partners in our handball-club. The script is really fantastic to show the sponsors to the users.
    But: Some older visitors said "oh, its to hard for my eyes to see the "belt" always in bottom of the page during the belt "runs". Now my question: Is it possible to install an ON/OFF-switch? ON: the "belt" runs, OFF: the "belt" stops. Thats all. Can you please tell me if this is possible and how to realize this on/off-switch!
    Thank you very much, nice greetings from germany

    Lommel

  2. #2
    Join Date
    Nov 2005
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i dont have an answer butthats a great idea

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    Near the end of the script where it says:

    Code:
    document.write('</td></table>')
    add just below that:

    Code:
    write('<div style="width:'+sliderwidth+';"><center><input style="width:75px;" type="button" value="Pause" onclick="if(this.value==\'Pause\'){copyspeed=0;this.value=\'Resume\'}else{copyspeed=slidespeed;this.value=\'Pause\'}"></center>')
    - John
    ________________________

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

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,953
    Thanks
    43
    Thanked 3,195 Times in 3,157 Posts
    Blog Entries
    12

    Default

    That really won't work real well, I just realized. Once the conveyor is stopped, using the new button I made, simply moving the mouse over the conveyor and then off of it will restart the motion. So, more work is needed. Start over from the original script. Find this line:

    Code:
    write('<div  style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
    Make it look like this:

    Code:
    write('<div id="control" style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">')
    Where we added code the last time, just below this line:

    Code:
    document.write('</td></table>')
    This time put this instead:

    Code:
    if (iedom)
    write('<div style="width:'+sliderwidth+';"><center><input style="width:75px;" type="button" value="Pause" onclick="pR(this)"></center></div>')
    Just above the </script> tag, put this function:

    Code:
    function pR(el){
    var ctrl=document.getElementById? document.getElementById('control') : document.all['control']
    if (el.value=='Pause'){
    ctrl.onmouseout=''
    el.value='Resume'
    copyspeed=0
    return;
    }
    ctrl.onmouseout=function(){copyspeed=slidespeed}
    el.value='Pause'
    copyspeed=slidespeed
    }
    Last edited by jscheuer1; 11-20-2005 at 03:54 AM. Reason: add missing tag
    - John
    ________________________

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

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
  •