[thelist] put special chars in a tooltip?

Tom Dell'Aringa pixelmech at yahoo.com
Wed Jul 10 15:08:01 CDT 2002


Perfect Craig! Thanks, and your tool ROCKS, I bookmarked it. I love
stuff like that...

Tom

"...your mind plays tricks on you...you play tricks back.." -- Pee
Wee Herman..


--- "Saila, Craig" <Craig.Saila at bgminteractive.com> wrote:
> > -----Original Message-----
> > From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
> > Sent: July 10, 2002 3:36 PM
>
> > which does not work, JS rightly thinks that is some kind of
> > variable or somesuch. Putting in quotes gives you the string
> > of course...how else could I do it?
>
> Use the Unicode values. I built a (W3C) DOM-based converter which
> will
> show the character, the decimal and named entities, as while as the
> Unicode value.
> <http://www.saila.com/usage/tips/examples/special_characters.html>
>
> In your case, try replacing &ordm; with "\u00BA", this should work:
>  document.getElementById(thisId).title = someNumber + "\u00BA"
>
> --
> Cheers,
>
> Craig Saila
> ------------------------------------------
> craig at saila.com : http://www.saila.com/
> ------------------------------------------
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !


=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/

__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



More information about the thelist mailing list