Hello All,
I recall changing the CSS class assigned to an element dynamically when the mouse scrolls over the element, but now am having problems trying to figure out how to do it again. I've tried several methods, but keep coming up without the correct solution.
Currently:
Can anyone help?
-Ovatvvon :-Q
I recall changing the CSS class assigned to an element dynamically when the mouse scrolls over the element, but now am having problems trying to figure out how to do it again. I've tried several methods, but keep coming up without the correct solution.
Currently:
Code:
<span id="exampleElement" class="sampleClass" onMouseOver="document.getElementById('exampleElement').style='newClass';">Some sample text</span>
Can anyone help?
-Ovatvvon :-Q