Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

5. Creating Custom Tooltips

5. Creating Custom Tooltips

Chapter 5. Creating Custom Tooltips Now that we've seen how powerful plugins are and how easy they make advanced functionality, let's see how we can take advantage of another plugin to make custom tooltips. Browsers automatically create tooltips when you include the title attribute—usually on a link or an image. When your site visitor hovers their mouse cursor over the item or moves focus to the item by tabbing to it, the tooltip will appear—usually as a small yellow box that appears to be floating over the page. Tooltips are a great way to add a little additional information to your page. Screen reader software reads out tooltip text for site visitors with disabilities who are using assistive technology, making them useful for enhancing accessibility. Furthermore, title attributes on images and links can help search engines index your content more effectively. In this chapter, we'll learn: How to use Craig Thompson's qTip plugin to replace the browser's default tooltipsHow to customize the appearance of the qTip tooltipsHow to enhance a navigation bar with custom tooltipsHow to display Ajax content in custom tooltips

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint