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

Need help with onMouseover

P: 1
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
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
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.