1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

image hover text?

Discussion in 'JavaScript' started by killaklown, Dec 19, 2007.

  1. #1
    I know alt= and title=, But I've seen other hover text which is more advanced, and quicker to show up. How can I do that?

    Ill try to find an example sometime, cant find one right now.



    Heres an example:
    http://wow.allakhazam.com/dyn/items/i24.html

    If you put your mouse over the Names, it has the hover text.
     
    killaklown, Dec 19, 2007 IP
  2. mkda

    mkda Active Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    http://www.dyn-web.com/dhtml/tooltips/hover-tip.html

    That should help.
     
    mkda, Dec 19, 2007 IP
  3. killaklown

    killaklown Well-Known Member

    Messages:
    2,666
    Likes Received:
    87
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Doesnt let me put into php code.

    Ie I want to do:

    echo 'onmouseover="<a doTooltip(event,'.$description.')" src="site.com">Text</a>';

    But it seems like it doesnt like it. It needs to have the hover text for all items in my database.
     
    killaklown, Dec 19, 2007 IP
  4. mkda

    mkda Active Member

    Messages:
    139
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #4
    If you're using quotes, put a \ before it.

    So if it's

    echo 'onmouseover="<a doTooltip(event,'.$description.')" src="site.com">Text</a>';

    Change it to:

    echo 'onmouseover="<a doTooltip(event,\'.$description.\')" src="site.com">Text</a>';
     
    mkda, Dec 19, 2007 IP