This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes tooltip in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "tooltip in jsp" Watch "tooltip in jsp" New topic
Author

tooltip in jsp

Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
i have a jsp file in which there is a small image. the code for it is: <img src="english flag.jpeg"/> assume it. now when i point over the flag image i should see a textual short information or what you call it tooltip . should i include alt in the code. but it didn't work: <img src="english flag.jpeg alt=" some text""/>
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61451
    
  67

The title attribute is what you seek.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mohan Mehra
Ranch Hand

Joined: Jul 28, 2011
Posts: 72
Bear Bibeault wrote:The title attribute is what you seek.

ya right. thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: tooltip in jsp