LoveToCode
MIS
- Jan 11, 2007
- 51
I have a div that looks like this:
I want to swap classes on mouseover event. I tried this:
but it did not work. I also tried this.classname and this.class, to no avail. Any suggestions?
Code:
<div class="plistTitle"
onmouseover="this.style.classname='plistTitle_hover'">- <img src="[URL unfurl="true"]http://earthlingsoft.net/ssp/playlists/images/playlist.gif">[/URL] Shawn's Rad Playlist o' Death</div>
I want to swap classes on mouseover event. I tried this:
Code:
onmouseover="this.style.classname='plistTitle_hover'"
but it did not work. I also tried this.classname and this.class, to no avail. Any suggestions?