JavaScript
  Home arrow JavaScript arrow Page 6 - How to Use the Dojo Tooltip Widget
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

How to Use the Dojo Tooltip Widget
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 12
    2007-01-23

    Table of Contents:
  • How to Use the Dojo Tooltip Widget
  • Tooltip in HTML
  • Creating a tooltip for objects
  • Getting some color into the tooltip
  • How about an image in the tooltip?
  • The default style of dojoType tooltip
  • Creating a tooltip dynamically

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    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.

    More JavaScript Articles
    More By Jayaram Krishnaswamy


       · That is correct. No more drab looking tooltip. You can put anything you want,...
       · Thanx for writing this, I really needed an explanation of how to use it. But...
     

    JAVASCRIPT ARTICLES

    - More on JavaScript Array Objects
    - Methods of the DOM Location Object
    - The DOM Location Object Properties
    - Handling Remote Files with JavaScript Click ...
    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...


     
    Best Practices for Windows Vista Migration Presentation
    Dell and Microsoft recently held a series of face-to-face seminars entitled, &qu....

     
    Creating a Culture for Code Reuse
    If you oversee development teams you know that like it or not proprietary and ex....

     
    Keys to Web Application Acceleration: Advances in Delivery Systems
    Accelerate Web apps by up to 5x. Ensure significantly faster access to the Web a....

     
    Optimizing Application Monitoring
    Tired of finding out from your customers that you're offline? This white paper e....

     
    Solaris to Solaris Migration -- Migrating applications from Sun SPARC to Dell PowerEdge R900
    This comprehensive Migration Guide reviews the approach that Principled Technolo....

     





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
    Stay green...Green IT