Forums
This topic is locked
auto scroller help>>>> I'm new at this
Posted 10 Dec 2002 19:08:15
1
has voted
10 Dec 2002 19:08:15 Alexis Nicholson posted:
<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle> <b>Can somebody please help me!!!!</b>I have never used DW mx extensions b4... I need the Cross Browser Auto Scroller to scroll from left to right instead of from top to bottom. I am sure it is just a simple matter of altering the script but I cant work out which bits of the script I should be changing...<img src=../images/dmxzone/forum/icon_smile_blush.gif border=0 align=middle>
Replies
Replied 15 Dec 2002 23:07:15
15 Dec 2002 23:07:15 Marja Ribbers-de Vroed replied:
Below you will find the function that moves the scroller, but now it has been altered to scroll horiontally.
Make sure you re-position the layer with ID 'AutoScrollContent' so that it's aligned with the top of its container.
<pre id=code><font face=courier size=2 id=code>
function flevAutoScrollDivs() { // v1.2
// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl)
// NB. Altered to scroll horizontally
var aA = arguments, iA = aA.length, oD = MM_findObj('AutoScrollContainer'); if (!oD) {return;}
if (oD.scrollTimeout != null) {clearTimeout(oD.scrollTimeout);}
var sID1 = 'AutoScrollContainer', sID2 = 'AutoScrollContent';
var iSS = (iA > 0) ? parseInt(aA[0]) : 1, iPx = (iA > 1) ? parseInt(aA[1]) : 1;
var iMs = (iA > 2) ? parseInt(aA[2]) : 50;
var iST = (-1 * flevGetDivProperty(sID2, 'width')), iSR = flevGetDivProperty(sID1, 'width');
var iCX = flevGetDivProperty(sID2, 'left'), iCY = flevGetDivProperty(sID2, 'top');
if (iSS) {if (iCX >= iST) {flevMoveDiv(sID2, String(iCX-iPx), String(iCY));} // Continue scrolling
else {flevMoveDiv(sID2, String(iSR), String(iCY));} // Re-position scrolling layer at right of container
oD.scrollTimeout = setTimeout("flevAutoScrollDivs(" + iSS + "," + iPx + "," + iMs + "", iMs);}
}
</font id=code></pre id=code>
Regards,
Marja Ribbers-de Vroed
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Make sure you re-position the layer with ID 'AutoScrollContent' so that it's aligned with the top of its container.
<pre id=code><font face=courier size=2 id=code>
function flevAutoScrollDivs() { // v1.2
// Copyright 2002, Marja Ribbers-de Vroed, FlevOOware (www.flevooware.nl)
// NB. Altered to scroll horizontally
var aA = arguments, iA = aA.length, oD = MM_findObj('AutoScrollContainer'); if (!oD) {return;}
if (oD.scrollTimeout != null) {clearTimeout(oD.scrollTimeout);}
var sID1 = 'AutoScrollContainer', sID2 = 'AutoScrollContent';
var iSS = (iA > 0) ? parseInt(aA[0]) : 1, iPx = (iA > 1) ? parseInt(aA[1]) : 1;
var iMs = (iA > 2) ? parseInt(aA[2]) : 50;
var iST = (-1 * flevGetDivProperty(sID2, 'width')), iSR = flevGetDivProperty(sID1, 'width');
var iCX = flevGetDivProperty(sID2, 'left'), iCY = flevGetDivProperty(sID2, 'top');
if (iSS) {if (iCX >= iST) {flevMoveDiv(sID2, String(iCX-iPx), String(iCY));} // Continue scrolling
else {flevMoveDiv(sID2, String(iSR), String(iCY));} // Re-position scrolling layer at right of container
oD.scrollTimeout = setTimeout("flevAutoScrollDivs(" + iSS + "," + iPx + "," + iMs + "", iMs);}
}
</font id=code></pre id=code>
Regards,
Marja Ribbers-de Vroed
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 15 Dec 2002 23:09:59
15 Dec 2002 23:09:59 Marja Ribbers-de Vroed replied:
LOL
I see this forum 'reads' code and skips words it thinks are dirty.
Note: the scroller will now scroll right-to-left, not left-to-right. But reading the content would be very hard if it scrolled from left-to-right.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
I see this forum 'reads' code and skips words it thinks are dirty.
Note: the scroller will now scroll right-to-left, not left-to-right. But reading the content would be very hard if it scrolled from left-to-right.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 06 Nov 2003 09:41:56
06 Nov 2003 09:41:56 Sandra G replied:
How can I make it scroll seamlessly (without a gap between the end and the begin when starting over)?
Also, how do I change it to make it scroll left to right? The code I see here is different from what's plugged in...?
Edited by - c-hey on 06 Nov 2003 10:27:59
Also, how do I change it to make it scroll left to right? The code I see here is different from what's plugged in...?
Edited by - c-hey on 06 Nov 2003 10:27:59
Replied 02 Dec 2003 15:11:42
02 Dec 2003 15:11:42 Marja Ribbers-de Vroed replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
How can I make it scroll seamlessly (without a gap between the end and the begin when starting over)?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You can't.
You would need Scroller Genie for that (www.dmxzone.com/showDetail.asp?NewsId=4952).
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also, how do I change it to make it scroll left to right? The code I see here is different from what's plugged in...?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
The code posted earlier in this thread is over a year old and is outdated.
The current version of the AutoScroller support horizontal scrolling natively.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
How can I make it scroll seamlessly (without a gap between the end and the begin when starting over)?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
You can't.
You would need Scroller Genie for that (www.dmxzone.com/showDetail.asp?NewsId=4952).
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Also, how do I change it to make it scroll left to right? The code I see here is different from what's plugged in...?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
The code posted earlier in this thread is over a year old and is outdated.
The current version of the AutoScroller support horizontal scrolling natively.
--
Marja Ribbers-de Vroed
www.flevooware.nl
www.flevooware.nl/dreamweaver/
Replied 15 Mar 2008 23:45:12
15 Mar 2008 23:45:12 who pub replied:
How can I adjust the scrolling speed on AutoScroller directly on the code?
I need to do this without having to generate the code again...
I need to do this without having to generate the code again...
Replied 15 Mar 2008 23:57:20
15 Mar 2008 23:57:20 who pub replied:
I figured it out. Not sure if it's the proper way to do it, but it's working...
I just changed the following string:
onLoad="flvXAS1(1,1,50,0)"
replaced the '50' with '20'
and all the:
onMouseOut="flvXAS1(1,1,50,0)"
strings (one for each image) also using the same values.
All is well now. Thanks for the great script.
I just changed the following string:
onLoad="flvXAS1(1,1,50,0)"
replaced the '50' with '20'
and all the:
onMouseOut="flvXAS1(1,1,50,0)"
strings (one for each image) also using the same values.
All is well now. Thanks for the great script.