Scroller Genie Support Product Page
This topic is locked
This topic was archived
I need a pause before scrolling starts
Asked 14 Dec 2004 21:19:24
1
has this question
14 Dec 2004 21:19:24 Sarah Williams posted:
How can I specify a short pause before the scroller starts then continous scrolling after that?Sarah Williams
Computer Geek
Web-2-3
505-995-0375
Replies
Replied 14 Dec 2004 23:23:38
14 Dec 2004 23:23:38 Marja Ribbers-de Vroed replied:
Hi Sarah,
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
How can I specify a short pause before the scroller starts then continous scrolling after that?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
By default, Scroller Genie has a feature to make the scroller pause after every X pixels or after each content layer. When this option is used, the scroller will also pause before starting scrolling.
If you don't want the scroller to pause every X pixels or so, then your only option at this point is to create some 'wrapping' JavaScript yourself to arrange this.
Here's what I would probably do in this case:
<ul><li>initialise the scroller as you would normally do</li><li>create a new JS function in the HEAD section of the page</li><li>cut/paste the Scroller Genie initialisation JS code to that new JS function and make sure it looks like a string value there</li><li>use the JavaScript 'setTimeout()' function to trigger the scroller initialisation after a specified time</li></ul>
In practice, the resulting JS function could look something like this:
<pre id=code><font face=courier size=2 id=code>
function startScroller() {
var l_sFunction = "dmxFSG1(1,1,2,25,0,1,0,0,'',0,0,0,1)";
setTimeout(l_sFunction, 2000);
}
</font id=code></pre id=code>
And the BODY tag in your page should look something like this:
<pre id=code><font face=courier size=2 id=code>
<body onload="startScroller();MM_preloadImages('images/0011vscrllup_over.gif','images/0011vscrlldown_over.gif')">
</font id=code></pre id=code>
Hope this helps.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
How can I specify a short pause before the scroller starts then continous scrolling after that?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
By default, Scroller Genie has a feature to make the scroller pause after every X pixels or after each content layer. When this option is used, the scroller will also pause before starting scrolling.
If you don't want the scroller to pause every X pixels or so, then your only option at this point is to create some 'wrapping' JavaScript yourself to arrange this.
Here's what I would probably do in this case:
<ul><li>initialise the scroller as you would normally do</li><li>create a new JS function in the HEAD section of the page</li><li>cut/paste the Scroller Genie initialisation JS code to that new JS function and make sure it looks like a string value there</li><li>use the JavaScript 'setTimeout()' function to trigger the scroller initialisation after a specified time</li></ul>
In practice, the resulting JS function could look something like this:
<pre id=code><font face=courier size=2 id=code>
function startScroller() {
var l_sFunction = "dmxFSG1(1,1,2,25,0,1,0,0,'',0,0,0,1)";
setTimeout(l_sFunction, 2000);
}
</font id=code></pre id=code>
And the BODY tag in your page should look something like this:
<pre id=code><font face=courier size=2 id=code>
<body onload="startScroller();MM_preloadImages('images/0011vscrllup_over.gif','images/0011vscrlldown_over.gif')">
</font id=code></pre id=code>
Hope this helps.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
