Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alt Tag Formatting

Status
Not open for further replies.

mhamilton3

Programmer
Oct 31, 2001
129
Is there a way to format the text in an Alt Tag. My simple experiments tell me no, but I figure it could not hurt to ask if anyone else has tried this. Thanks.
 
It's just text. That's all it's supposed to be. If you want something fancy to pop up when your mouseover a button, use a bit of JavaScript to open a new window which can then contain anything you want. But the ALT tag -- that's essentially, and by design, sacrosanct.

Blind people prefer it that way and I tend to defer to them vis-a-vis ALT tags, as that's all their browser can "see".

Cheers,
[monkey] Edward [monkey]

"Cut a hole in the door. Hang a flap. Criminy, why didn't I think of this earlier?!" -- inventor of the cat door
 
I did write an alternative (pun!) alt text using layers that follow the mouse, but I don't think you can change the original alt text itself. If you want the code for mine, post back and I'll post it here. Hope I helped / Thanks for helping
if ((Math.abs(x)<10&&Math.abs(y)<10) && (((parseInt(Math.abs(x).toString()+Math.abs(y).toString())-Math.abs(x)-Math.abs(y))%9)!=0)) {alert(&quot;I'm a monkey's uncle&quot;);}
 
Thank you both, I didn't think there was a way to use the Alt Tags with formatting, but I had to try. Thanks again.
 
About the only formatting you can get is deciding where the line breaks appear.

<img src=&quot;test.gif&quot; alt=&quot;This is line one
This is line two.&quot;>

Hope this helps Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top