469,277 Members | 2,076 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

Need help with onMouseover

What I would like to do is create 2 rows. Row1 by default will show a div that currently works fine. Row2 will contain 3 pictures (so I guess there can be 3 columns in Row2). When you hover over pic1, the div in Row1 changes to a description of pic1, when you hover over pic2, the div changes to its description, etc. I currently have tried javascript using a script with "onmouseover="CngTxt,..." which works fine but, as far as I can tell, doesn't allow me to alter the font or provide any formatting (centering text, including a thumbnail, etc). Is there a better way to accomplish what I'm looking to do?
Sep 6 '11 #1
1 1080
16,027 Expert Mod 8TB
You can use the div element's JavaScript Style object (see the link for details/properties).

Alternatively, if you want to have it set from the beginning, use CSS (set the style rules in a class and then set the div to that class).
Sep 9 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by Ben | last post: by
reply views Thread by saravanan_article | last post: by
3 posts views Thread by Vear | last post: by
2 posts views Thread by m9817232 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.