Jump to content

img tags in onmouseover parameter


squiblo

Recommended Posts

Currently I have something like this..

onmouseover="showTooltip(event,'TEXT GOES HERE');return false"

 

I would like to put an "img" tag where the text goes, like this...

onmouseover="showTooltip(event,'<img src='image'');return false"

 

But that is obviously not going to work, I have also tried the following, but these also do not work, please help :)

 

onmouseover="showTooltip(event,\"<img src='image'\");return false"

 

onmouseover="showTooltip(event,"<img src='image'");return false"

 

Link to comment
https://forums.phpfreaks.com/topic/203914-img-tags-in-onmouseover-parameter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.