Starting to look interesting!

Would that overwrite the "display:none" or just add it?

At least I got something to go on now, has anyone ever tried this?

Cheers Ben..

-----Original Message-----
From: Ben Bishop [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 19 November 2003 9:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [WSG] Modify class



Hi Taco,

Off the top of my head (and untested) I'd try something like:

<style>
.help {
    display:none;
    font-weight: bold;
    font-size: 14px;
    color: red;
    cursor: help;
    }
</style>

<a href="#" 
onmouseover='document.styleSheets[1].addRule("help","display:inline")'>...</a>

Regards,
Ben


Taco Fleur wrote:

> Is it possible to modify the attribuites of a CLASS dynamically?
> In other words, I now have a page with 200 objects on it, 20 of them 
> are of CLASS:helpHidden, when help is clicked I now loop over all 
> objects in the page and see if the object is of CLASS:helpHidden, if 
> so then change the class to helpDisplay, obviously this takes a while 
> and to me it looks like there should be a better way of doing it. Like 
> for example change the properties of the class itself, for example;
>


*****************************************************
The discussion list for http://webstandardsgroup.org/
***************************************************** 

*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************

Reply via email to