Script to describe something - new lines appear below if mouseover

Discussion in 'JavaScript' started by NAZAM.COM, Apr 17, 2006.

  1. #1
    I've seen some sites where, if you move your mouse over a bit of text or click on the text, a few lines appear below it in which the webmaster can provide details about the text. I don't know what this functionality is called, so can't find it any of the script sites.

    Alternative would be a script which described the text in a TITLE or ALT tag format, but with larger text and scope for longer text.

    Thanks very much.
     
    NAZAM.COM, Apr 17, 2006 IP
  2. torunforever

    torunforever Peon

    Messages:
    414
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Google for tooltip javascript
     
    torunforever, Apr 17, 2006 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    It's pretty easy... just make a hidden element then an onmouseover trigger toggles the display of the div between "block" and "none". You can see an example of it by going to the thing in this forum to rate a post. If you toggle between approve/disapprove you can see it in action.
     
    digitalpoint, Apr 17, 2006 IP
  4. Chios

    Chios Well-Known Member

    Messages:
    1,740
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    195
    #4
    you might be looking for
    http:// www. dynamicdrive.com/dynamicindex17/tabcontent.htm
    or
    http:// dynamicdrive.com/dynamicindex5/linkinfo.htm
     
    Chios, Apr 19, 2006 IP