This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "tooltip in jsp" Watch "tooltip in jsp" New topic

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

Joined: Jan 10, 2002
Posts: 63208

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
Have you checked out Aspose?
subject: tooltip in jsp
jQuery in Action, 3rd edition