PDA

View Full Version : Conditional formatting in js



JohnK
02-11-2005, 02:50 PM
Hi

Working on an html doc.

I have some "key words" in my menu that are anchors with targets that jump to the position of the key words in my document. When this happens I want to be able to dynamically change the color/background-color of the target (span with id). I understand I'll need to use javascript (onclick command?) as css cannot dynamically interrogate and apply style to the target.

Any help would be greatly appreciated!

Thanks

John

cr3ative
02-11-2005, 03:09 PM
I modified this script a while back, and it fades when used in Internet Explorer.

www.afpsupport.r8.org/FadingLinks.htm

cr3ative