How do I add an apostrophe in my menu tooltip?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
kree777
Advanced
Advanced
Posts: 13
Joined: Tue Jan 25, 2005 1:48 pm

How do I add an apostrophe in my menu tooltip?

Post by kree777 »

This probably has a really simple solution. :D
I am trying to build a menu tooltip with an apostrophe included in it.
e.g. Cat's whiskers
This is what the code looks like...

aI("text=Cat's Whiskers;url=http://www.test.co.za;target=newWindow;onfunction=showtip('Please read for full details of Cat's privacy policies');");

Some help please ;)
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

It's not as easy as it perhaps should be to add apostrophes to the onfunction.

However, you can use the ISO Standard Character Code of & #039; like this:

aI("text=Cat's Whiskers;url=http://www.test.co.za;target=newWindow;onfunction=showtip('Please read for full details of Cat& #039;s privacy policies');");

PS - don't forget to remove the space between the & and #

Hope this helps
Andy
kree777
Advanced
Advanced
Posts: 13
Joined: Tue Jan 25, 2005 1:48 pm

Post by kree777 »

Ah! I see :D
Works like a charm!
Post Reply