By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

DYNAMICALLY simulate disabled links appearance with CSS?

P: n/a
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
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.