Results 1 to 2 of 2

Thread: Need to display HTML code in an image ALT tag or similar?

  1. #1
    Join Date
    Mar 2007
    Thanked 0 Times in 0 Posts

    Default Need to display HTML code in an image ALT tag or similar?


    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,

  2. #2
    Join Date
    Sep 2006
    St. George, UT
    Thanked 157 Times in 155 Posts


    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.)
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts