pop-up window for extra information when clicking over a text?

  • Unknown's avatar

    I need help to make a pop-up text when a we click on a short text. For example in a list of names, when we click on a name, the pop-up will give short description about that person – with options to close the pop-up window. Can anybody help me with this? Thanks

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    I don’t believe this is possible with WP.com

  • Unknown's avatar

    @ alepri99
    You can do it:

    <a style="cursor:help;" title="DESCRIPTION_HERE">NAME_ON_A_LIST</a>1

    Or add a color if your theme inserts a link color:
    <a style="cursor:help;color:#HEX_HERE;" title="DESCRIPTION_HERE">NAME_ON_A_LIST</a>

  • Unknown's avatar

    oops. Now I think the “color hex number” is not necessary.

  • <abbr title="Always Be Closing">ABC</abbr> is a good way to do this in many cases. Most browsers will show the title when you hover the mouse cursor, and it works well with screen readers.

    ALA has more:

    http://www.alistapart.com/articles/hattrick/

  • Unknown's avatar

    @tellyworth

    <abbr title="DESCRIPTION_HERE">NAME_ON_THE_LIST</abbr>

    I’m not familiar with abbr. Interesting. yes. simple/elegant. thanks. will look at…

    My first thought for the OP was just simple links where the title would show, but that ain’t elegant, so I wondered off into unexplored regions like “cursor:help”…

    I have not used any of this myself, but it could be interesting.

    Tess

  • The topic ‘pop-up window for extra information when clicking over a text?’ is closed to new replies.