Need help with onMouseover

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ergibbs
    New Member
    • Sep 2011
    • 1

    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="C ngTxt,..." 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?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    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).

    Comment

    Working...