Forum Moderators: open

Message Too Old, No Replies

Scroller With Links to News Pages

         

contentmaster

12:41 pm on Dec 3, 2007 (gmt 0)

10+ Year Member



I wanted to know where I can find simple code for putting a scroller on a home page with links to internal news pages. The news items should appear one after the other - Item #1 fades away and Item # 2 appears.

Help!

amelvin

1:06 pm on Dec 3, 2007 (gmt 0)

10+ Year Member



I saw this effect years ago (2001?) on a popular JavaScript site. I don't have a link.

If you start with the anchor tag as an object, changing the href and text is fairly simple.

Use setTimeout/setInterval to recursively call a function that will:
a) change the text/href when the text is invisible
b) fade/brighten the text slightly every few milliseconds

The fade/brighten is done by adjusting the 'alpha' settings - which are different for different browsers, so you will need to read around that a bit.

Trace

3:57 pm on Dec 3, 2007 (gmt 0)

10+ Year Member



There's a couple scripts over at DynamicDrive that sound just like what you're looking for. Have a look;

[dynamicdrive.com...]

contentmaster

1:33 pm on Dec 4, 2007 (gmt 0)

10+ Year Member



Thanks Trace! I was able to find exactly what I was looking for! And the best part - it was extremely easy to customise!