I am trying to create a mouseover (of an image)that generates text within <span> tags.
The text is html formatted and could include images, links etc.
Here is how I tried to code..
<a href="<?PHP echo $image;?>" onmouseover="document.getElementById('myText').firstChild.data = '<?PHP echo stripslashes($r2['description']);?>';return true;" title=""><img alt="<?PHP echo $r2['item_name'];?>" src="<?PHP echo $thumb;?>" height="" width="" class="last" /></a>These links are dynamic and come from a DB.
Unfortunately the content in $r2['description'] is screwing up the mouseover code.
Any help is greatly appreciated.
Thank you.
***EDIT***
I have fixed this issue
Edited by Hooch, 03 November 2010 - 06:26 PM.