change color of link

Results 1 to 2 of 2

Thread: change color of link

  1. #1
    Join Date
    Dec 1969

    Default change color of link

    i want to write a javascript/css to disable the hover property of link if background color of that link is white or when bgcolor of that link is white it should not be clickable.<BR>thanks in advance

  2. #2
    Join Date
    Dec 1969

    Default Didn't I give you enough...

    ...of a start when I showed how you could change style/class?<BR><BR>It&#039;s just basic JavaScript coding.<BR><BR>Do you really mean that *YOU* want to write this? Or that you want somebody to write it for you?<BR><BR>Just for example, think of something like this:<BR> onClick="if (;white&#039; ) return false;"<BR><BR>You might need to look for &#039;#FFFFFF&#039; instead of color name, depending on how the style was built.<BR><BR>As for "disable the hover property": There&#039;s no such thing as a hover property. You have to write JS code to enable the appropriate events, so just have you JS code do nothing at all if the bg is white.<BR><BR><BR><BR>

Posting Permissions

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