html - (Drupal) Trying to set mouseover images, yet Drupal mangles it with garbage code. How can I resolve this? -
good morning, stackoverflow! simple question - i'm trying set mouseover images on drupal, , provide again, simple image tag:
<img src="http://www.gameaether.com/images/stream_n3cril.png" onmouseover=""http://www.gameaether.com/images/stream_n3cril_hover.png" onmouseout="http://www.gameaether.com/images/stream_n3cril.png">
however, when submit changes, drupal mangles this:
<img onmouseout="this.src=''http://www.gameaether.com/images/stream_nanakis.png" onmouseover="this.src=''http://www.gameaether.com/images/stream_nanakis_hover.png" src="http://www.gameaether.com/images/stream_n3cril.png" />
note: 'nanakis' image i'm trying same to. same results across board.
any appreciated!
you can create 2 function called on respective mouse events , change image on there!
Comments
Post a Comment