Results 1 to 2 of 2

Thread: Cool DHTML Tooltip

  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Cool DHTML Tooltip

    1) Script Title:
    Cool DHTML Tooltip
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...tmltooltip.htm
    3) Describe problem:
    I like this, but got two questions
    here is my site, using this code:

    trks2day.com/jukebox.html

    Question 1: is there anyway to use carriage returns

    Question 2: When using MS IE9, the regular tooltip shows, any work around for this,

    I answered Question 2,

    I got rid of the ALT tag
    Last edited by jscheuer1; 12-13-2012 at 03:20 AM. Reason: merge posts

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,030
    Thanks
    44
    Thanked 3,211 Times in 3,173 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by whobet View Post
    I answered Question 2,

    I got rid of the ALT tag
    Or you could use (add) an empty title attribute. Or better yet, you could use a standards invoking DOCTYPE for the page. Either will take care of this issue in IE 9. For earlier IE you may still need to also use the empty title attribute, which is preferable to removing the alt attribute, because an img tag without an alt is invalid.

    One other valid solution is to use an empty alt attribute.

    BTW - Technically speaking there is no ALT 'tag'. It's called an attribute.

    About your first question, carriage returns can generally be used almost anywhere. But they generally have no effect other than (if used in the wrong places) of introducing unwanted spaces, or even sometimes breaking the code. If what your asking is how to get a line break in a tooltip, that should be possible. You could try just putting a <br> tag in the tip text. That probably will work OK. However, and if you look closely you will see this being done on the demo page, simply setting a width for the tip that's narrower than that required for its text will cause the text to wrap.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •