HighDots Forums  

DYNAMICALLY simulate disabled links appearance with CSS?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss DYNAMICALLY simulate disabled links appearance with CSS? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Csaba Gabor
 
Posts: n/a

Default DYNAMICALLY simulate disabled links appearance with CSS? - 05-11-2004 , 05:03 PM






There was a post in this newsgroup about a month
back titled "DYNAMICALLY diable links with CSS", so I
added two new words (plus a d) to reflect my interest...

So I have a bunch of links (comprising a class) with a certain
onClick behaviour (they are Edit links). If the user clicks
one, the others should be REALLY disabled. Turns out I can't
simply loop through all the links and (excepting the clicked on
link) do aLink[i].disabled = true (in IE 6 on Win 2K anyway)
because the onClick behaviour is not disabled. This isn't a big
problem though because I set a variable to indicate when a link
had been clicked and then return right away if another is clicked.
The thing is I'd still like the color to show disabled for all the
other links. Well, that's straightforward because I already gave
the solution above (to disable them).

And yet...since I just want the visual portion of that disabled
behaviour (how funny is that?), isn't there a simple css way to
do the same thing, rather than disable the link? Plus, since I'd
apply it to the class, I wouldn't have to loop through all the links.

Thanks,
Csaba Gabor



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.