Share on Google+Share on Google+

Dojo Tool tips

Complete Java Server Faces (JSF) Tutorial - JSF Tutorials. JSF Tutorials at Rose India covers everything you need to know about JSF, This JSF Tutorial contains readable and interesting content organized in proper and sequential manner. Each concept has been explained by simple examples so that you can understand easily and implement immediately into your java web application. It provides coverage of key JSF concepts such as User Interface(UI) components, Renderers, Backing beans, Validators, Converters, Navigation, Event handling, Expession language, Messages etc...

Dojo Tool tips


In this section, you will learn about the tool tips and how to developed it in dojo. 

Tool tips :  This is a GUI (Graphical User Interface) element that is used in conjunction with a cursor and usually a mouser pointer. If the mouse cursor over an item, without clicking a mouse it appears a small box with supplementary information regarding the items.



Here is the code of program:

<title>Tooltip Demo</title>

  <style type="text/css">
  @import "../resources/dojo.css";
  @import "../dijit/themes/tundra/tundra.css";

  <script type="text/javascript" src="dojo.xd.js" 
djConfig="parseOnLoad: true"></script>

  <script type="text/javascript">

<body class="tundra">
<b>Tooltips:</b> <br><br>
  <span id="site1"></span>
  <div dojoType="dijit.Tooltip" connectId="site1" 
"This is a software developement company!">
  <span id="site2"></span>
  <div dojoType="dijit.Tooltip" connectId="site2" 
"This is a news publishing site!">

 Output of the program:

Whenever your mouse pointer goes on the then you get:

Whenever your mouse pointer goes on the then you get:



Posted on: April 18, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Discuss: Dojo Tool tips  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image