Alternate image onmouseover not working
Permalink
Hello, I have tried to add an image with an alternate image using the content block. My html code (when viewed in edit mode) looks like this:
When I open the page source in published mode, all the image links are the same (instead of beeing two different images). The corresponding page source looks like this:
How can I avoid this happening? I want to have an alternate image when moving the mouse over the image.
<img onmouseover="this.src='/index.php/download_file/view_inline/99/';" onmouseout="this.src='/index.php/download_file/view_inline/98/';" src="/index.php/download_file/view_inline/98/" alt="stisykkel_farge.jpg" width="250" />
When I open the page source in published mode, all the image links are the same (instead of beeing two different images). The corresponding page source looks like this:
<img onmouseover="this.src='/files/cache/4752e30268183749fc17ee492e219697.jpg';" onmouseout="this.src='/files/cache/4752e30268183749fc17ee492e219697.jpg';" src="/files/cache/4752e30268183749fc17ee492e219697.jpg" alt="stisykkel_farge.jpg" width="250" />
How can I avoid this happening? I want to have an alternate image when moving the mouse over the image.
-Vernon