PDA

View Full Version : Need to display HTML code in an image ALT tag or similar?



rjshearman
03-09-2007, 03:31 PM
Hi,

I am looking for a way to place HTML code in a popup message when a user hovers over an image.

Basically I want to put "<TABLE><TR><TD>1</TD></TR></TABLE>" inside an image ALT tag and have it displayed as HTML.

I have tried using CHR(9) (tab) and CHR(10) (new line) inside the image ALT tags to space my message but i'm not getting good enough results.

Does anyone know if this is possible?

Failing that is it possible to control which font is used in an Image's ALT tag?

Many thanks,
Richard.

thetestingsite
03-09-2007, 04:03 PM
Simple answer, it can't be done. You could look into using javascript tooltips. In fact, there are a few on this site that you could use.

Hope this helps.

EDIT: Also, please don't double post (talking about your thread in the HTML forum under the same name.)