PDA

View Full Version : Text and Image Marquee Crawler v1.53 - Need Help, Change direction



KimmieBlob
08-18-2013, 09:57 AM
1) Script Title: Text and Image Marquee Crawler v1.53

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex2/crawler/

3) Describe problem:


Love the script its just what I needed, but I will like to add some arrows on both side to change the direction for example


< [marquee text] >


how can I add these arrow to control the image?

thanks.

jscheuer1
08-18-2013, 02:39 PM
If you have just one crawler on the page:


marqueeInit.ar[0].direction = 'right'

will make it go to the right and:


marqueeInit.ar[0].direction = 'left'

will make it go to the left.

So you could have links like:


<a href="#" onclick="marqueeInit.ar[0].direction = 'right'; return false;">&gt;</a>

and:


<a href="#" onclick="marqueeInit.ar[0].direction = 'left'; return false;">&lt;</a>

You can use images or buttons instead, and if you prefer use onmouseover instead of onclick.

As I say, this works for 1 crawler, or the first crawler. For a second crawler, change the [0] to [1], for a third to [2], and so on.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

KimmieBlob
08-20-2013, 05:05 PM
Thanks you that worked perfectly.