Results 1 to 2 of 2

Thread: Conditional formatting in js

  1. #1
    Join Date
    Feb 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Conditional formatting in js

    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

  2. #2
    Join Date
    Aug 2004
    Location
    Brighton
    Posts
    1,563
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I modified this script a while back, and it fades when used in Internet Explorer.

    www.afpsupport.r8.org/FadingLinks.htm

    cr3ative
    A retired member, drop me a line through my site if you'd like to find me!
    cr3ative media | read the stickies

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •