PDA

View Full Version : Scrollers - Cross Browser marquee II



designerNOTdev
06-23-2008, 12:36 PM
Any advice on how to possibly tweak the scrolling speed SLOWER than the current minimum which = 1. Options are 1-10, 1 being slowest. Ive tried decimel and minus values but to no avial. Any help greatly appreciated.
http://www.dynamicdrive.com/dynamicindex2/cmarquee2.htm

jscheuer1
06-23-2008, 03:46 PM
The 'speed' setting is actually the number of pixels the thing gets moved each time. Browsers don't deal well with decimal fractions of pixels, and if the negative number were to work, it would simply reverse the direction of scrolling.

So instead, in the head portion of this script, find:


setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)

The number 30 is the number of milliseconds between each incremental movement of the scroller. Increase this number to slow things down even more. Too high of a number will result in jerkiness. 60 may be about the top 'safe' figure to use.

designerNOTdev
06-23-2008, 08:06 PM
a true gent John - many tahnks for your help - worked a treat!