eva21 Posted May 21, 2009 Share Posted May 21, 2009 Is this possible? <option alt='Hello There Sir'> Hello </option> What Im looking for is a way I can put my mouse over the word "Hello" and have a little thing come up the says "Hello There Sir". Does anyone know how to do this? I need some serouis help!!! I would really appreciate it Link to comment https://forums.phpfreaks.com/topic/159083-list-boxes-and-alt/ Share on other sites More sharing options...
bananababe Posted May 21, 2009 Share Posted May 21, 2009 you can't use alt with <option>. even if it worked, you wouldn't get a mouseover because that's not how it works with the <img> tag, unless your browser preferences were set up to show the alts. You are trying to have rollover effects on a dropdown list? Link to comment https://forums.phpfreaks.com/topic/159083-list-boxes-and-alt/#findComment-838998 Share on other sites More sharing options...
Axeia Posted May 21, 2009 Share Posted May 21, 2009 If you're doing this on images for that reason.. stop doing that. Most browser display the title attribute as a tooltip, so <option title="Hello There Sir">Hello</option> (And that's what you should use on images as well if the tooltip is the only purpose) Link to comment https://forums.phpfreaks.com/topic/159083-list-boxes-and-alt/#findComment-839144 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.