How would you create a little text bar that pops up when you hold your mouse over a 'hotspot' Just like when you hold your mouse over a user names 'green bars' and it says " 'Bob jones' is a jewel in the rough "or somthing like that. I know you just add a javascript behavior to a hotspot, but which one?
Do you just mean a tool tip? If so you can use the title attribute. Or if you want a more complex version you can use DHTML. If this forum would let me post a link I would give you some links but hey.
For an image: <img src="http://www.somedomain.tld/img/image.gif" alt="Text goes here"> For a hyperlink: <a href="http://www.somedomain.tld/" title="Text goes here">
Try the title tag like this in your link: <A href="http://www.yahoo.com/" title="Go to Yahoo">Yahoo</A> Edit: NetMidWest has it as well, posted it while I was writing it out. Thanks.
NO! Use the TITLE attribute even in images. The ALT attribute has a specific, and entirely different purpose. Getting a tooltip of ALT text is something that happens in IE only, and really shouldn't happen at all.
Yep the alt attribute is just to display the text alternative for when images are not showen. Tile is what should be used unless you want a more complex tool tip the you can use DHTML. Type in tool tip in Google and there are a few tuts on how to do this. I would post a direct link to one but I still carnt yet as I am a newbie here.