eHow launches Android app: Get the best of eHow on the go.

How To

How to Use the Spry Tooltip Widget in Dreamweaver CS4

Contributor
By Virginia DeBolt
eHow Contributing Writer
(3 Ratings)

One of the new Spry tools in Adobe Dreamweaver CS4 is the tooltip widget. The Adobe Spry framework uses a combination of CSS and JavaScript to enhance web page features. The tooltip widget is similar to what happens when you use a title attribute in a tag, except this Spry tooltip has a style sheet and a JavaScript file attached to it that you can customize. Here is how to work with it.

Difficulty: Moderately Easy
Instructions

Things You'll Need:

  • Adobe Dreamweaver CS4 software
  1. Step 1
    Select the text
     
    Select the text

    Create the text in Dreamweaver where you want to add the tooltip. In this example I highlighted the acronym STEM.

  2. Step 2
    The tooltip icon
     
    The tooltip icon

    In the Spry category of the Insert bar, select the Spry Tooltip icon. In the classic workspace layout of the Insert bar it's the last Spry icon on the right.

  3. Step 3
    Type the tooltip text
     
    Type the tooltip text

    The term gets wrapped in a span tag in the code that will trigger the tooltip. A div containing the tooltip contents (hidden by the CSS until needed) is also added to the page. In Design view you see a blue box with the Spry Tooltip label where you type the content that you want to appear in the tooltip. Note that the box for the tooltip contents would normally appear at the very bottom of the page, which you might have to scroll to find. It's near the example sentence here because that's the entire content of the example page.

  4. Step 4
    Save the dependent files
     
    Save the dependent files

    Save the page. Dreamweaver will notify you that there are two dependent files needed. Click OK and the files will be added to a folder called SpryAssets at the site root level. Remember to upload this folder to the server.

  5. Step 5
    Properties
     
    Properties

    You can set some properties for the tooltip using the Properties. Click on the blue tooltip label to see the tooltip Property inspector. For example, you can set horizontal offset and mouse behavior in the Properties.

  6. Step 6

    You'll see a new CSS file in your CSS panel called SpryTooltip.css. Use this stylesheet to set colors and background color and other properties related to the appearance of the tooltip.

Tips & Warnings
  • If you look at Code view, you'll see a JavaScript operator that Dreamweaver inserts at the end of the page. This is in addition to the JavaScript file that is saved to the SpryAssets folder.

Comments  

Veesites said

Flag This Comment

on 4/2/2009 Zahzel, I've been using Dreamweaver since the first version came out in the 1990s. I've written about it for a long time, in books and on my own blog as well as here. Let me know what you want to know and I'll write a how to for you.

zahzel said

Flag This Comment

on 4/1/2009 I have a site and used Dreamweaver and have tried for hours and days to put pics on it and to no avail. I will try your tips.TY!

zahzel said

Flag This Comment

on 4/1/2009 How did you learn so much?'How long have you been using Dreamweaver?Did you take a class or watch the videos they supply?Really appreciate your sharing and knowledge5Stars!

Subscribe

Post a Comment

Post a Comment

Related Ads

  • Have you done this? Click here to let us know.
I Did This
Get Free Computers Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

eHow Computers
eHow_eHow Technology and Electronics