This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » Extension Developing » auto scroller help>>>> I'm new at this
Reply

auto scroller help>>>> I'm new at this

Alexis Nicholson
Member



Since: 10 Dec 2002
Posts: 1
Posted 10 Dec 2002 19:08:15

<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>

<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>
Marja Ribbers-de Vroed
lost Member



Since: 06 Jul 2001
Posts: 881
Replied 15 Dec 2002 23:07:15
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 &gt; 0) ? parseInt(aA[0]) : 1, iPx = (iA &gt; 1) ? parseInt(aA[1]) : 1;
var iMs = (iA &gt; 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 &gt;= 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/
Marja Ribbers-de Vroed
lost Member



Since: 06 Jul 2001
Posts: 881
Replied 15 Dec 2002 23:09:59
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/
Sandra G
Locked
Member



Since: 06 Nov 2003
Posts: 1
Replied 06 Nov 2003 09:41:56
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
Marja Ribbers-de Vroed
lost Member



Since: 06 Jul 2001
Posts: 881
Replied 02 Dec 2003 15:11:42
<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/
who pub
Member



Since: 29 Apr 2007
Posts: 2
Replied 15 Mar 2008 23:45:12
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...
who pub
Member



Since: 29 Apr 2007
Posts: 2
Replied 15 Mar 2008 23:57:20
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.

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency