need help with basic -- tooltip --

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
giliat
Forum Commoner
Posts: 28
Joined: Sun May 20, 2007 2:00 pm

need help with basic -- tooltip --

Post by giliat »

pickle | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


the basic window tooltip in html look like this

[syntax="html"]<A HREF="www.somesite.com" TITLE="tooltip text">somesite</A>
i need to put the TITLE inside my echo that look like that

Code: Select all

echo "<a href=\"location_page.php?location=",$location,"&location_code="'$code,"\" onClick=\"return popitup(this.href);return false;\" >",$filed'"</a>";

where can i put the TITLE="tooltip text" ????


thanks
gil




pickle | Please use[/syntax]

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Anywhere inside the <a> element. Make sure you escape the double quotes, however.
Post Reply