[thelist] Need some JS help - unobtrusive popup - based onCLASS not id.
Jon Hughes
hughesj at firemtn.com
Fri Jun 15 13:19:20 CDT 2007
Are all the divs within #content of class 'detpopupcont' and are you
actually going to have inline styles?
You can target the class attributes with getAttribute('class') on the
children of #content and then change the style of the divs.
Kind Regards
--
Chris Price
----------
<style type="text/css">
.cont {
Visibility:hidden;
}
</style>
<div id="content">
<div class="cont">content</div>
<div class="cont">content</div>
<div class="cont">content</div>
</div>
That's the basic structure I'm working with.
Can you give me an example of what I would need to do to set their
visibility to "visible" through javascript? If I have that, I can make
the onMouseOver stuff myself.
More information about the thelist
mailing list