Home arrow JavaScript arrow Page 6 - How to Use the Dojo Tooltip Widget
JAVASCRIPT

How to Use the Dojo Tooltip Widget


Windows uses tooltips; they're also commonly found on web pages. This article shows you how to use dojo to render tooltips with some very useful and unusual effects.

Author Info:
By: Jayaram Krishnaswamy
Rating: 3 stars3 stars3 stars3 stars3 stars / 16
January 23, 2007
TABLE OF CONTENTS:
  1. · How to Use the Dojo Tooltip Widget
  2. · Tooltip in HTML
  3. · Creating a tooltip for objects
  4. · Getting some color into the tooltip
  5. · How about an image in the tooltip?
  6. · The default style of dojoType tooltip
  7. · Creating a tooltip dynamically

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
How to Use the Dojo Tooltip Widget - The default style of dojoType tooltip
(Page 6 of 7 )

As mentioned earlier, this is found in the CSS style document in the templates directory, which can be modified as well.

.dojoTooltip {
border: solid black 1px;
background: beige;
color: black;
position: absolute;
font-size: small;
padding: 2px 2px 2px 2px;
z-index: 10;
display: block;
}

Sliding show

Well this is not a slide show, but a sliding show. This is created with a number of full-sized and thumbnail-sized images with an HTML marquee. Just plug the code into the first listing and you should be able to see the thumbnails marching from right to left and when you hover over one of them, you pop up a full-sized image contained in the <span/> elements..

<!--Button-->
<marquee direction="right" 
width="75%" 
scrolldelay="1" 
scrollamount="5"> <img id="34"src="http://images.devshed.com/
da/stories/../DojoAjax/tn34.JPG">
<img id="35"
src="http://images.devshed.com/da/stories/../DojoAjax/tn35.JPG"> <img id="46" src="http://images.devshed.com/da/stories/
../DojoAjax/tn46.JPG"> <img id="66" src="http://images.devshed.com/da/stories/
../DojoAjax/tn66.JPG"> <img id="87" src="http://images.devshed.com/da/stories/
../DojoAjax/tn87.JPG"> </marquee> <span dojoType="tooltip" connectId="34" toggle="explode">
<img src="http://images.devshed.com/da/stories/
http://localhost/DojoAjax/Photo34.jpg">
</img><br/> Piazza Navona in Rome </span> <span dojoType="tooltip" connectId="35" toggle="explode"> <img src="http://images.devshed.com/da/stories/
http://localhost/DojoAjax/Photo35.jpg"> </img><br/> Bernini's fountain </span> <span dojoType="tooltip" connectId="46" toggle="explode"> <img src="http://images.devshed.com/da/stories/
http://localhost/DojoAjax/Photo46.jpg"> </img><br/> The Pantheon </span> <span dojoType="tooltip" connectId="66" toggle="explode"> <img src="http://images.devshed.com/da/stories/
http://localhost/DojoAjax/Photo66.jpg"> </img><br/> Trevi Fountain in Rome </span> <span dojoType="tooltip" connectId="87" toggle="explode"> <img src="http://images.devshed.com/da/stories/
http://localhost/DojoAjax/Photo87.jpg"> </img><br/> A Vatican Museum piece </span> <!--end button-->

When you point at a thumbnail with the mouse, the full-sized image pops out as shown.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- More Top jQuery Tutorials for Beginners
- More Top jQuery Plugins for Menus
- Top jQuery Tutorials for Beginners
- New UI Framework and SDK for JavaScript Rele...
- JavaScript OpenPGP Tool, Node.js 0.6.3 Avail...
- Yahoo Releases Cocktails Language and Develo...
- Customizing jQuery Slideshows: Dynamic Contr...
- Customizing jQuery Slideshows: the animate()...
- Customizing jQuery Slideshows: slideUp() and...
- Customizing jQuery Slideshows: hide() and sh...
- Web Workers: Performing Calculations in Para...
- More Top JavaScript Frameworks and Libraries
- More Dynamic jQuery Styling Techniques
- The Top JavaScript Libraries
- The Top JavaScript Frameworks

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 6 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials