How can I display trademark symbol in status bar?

I have a javascript routine that displays scrolling text in the status bar of the web browser. I feed the routine a text string in the form of a variable. How can I get it to display a registered trademark symbol (an R inside a circle)?
m204984Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

knightEknightCommented:
Try this:

<SCRIPT language='javascript'>
 top.status="&reg; me 2000";
</script>
0
m204984Author Commented:
I've tried this already. It will render the symbol properly in an html string within the page but this displays '&reg; me 2000' when you try to display it in the status bar.
0
knightEknightCommented:
What browser are you using?  I got this to work in IE4 and NS4, but I am unable to try it with any other version.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Michel PlungjanIT ExpertCommented:
top.status="\xAE me 2000";

Michel
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Michel PlungjanIT ExpertCommented:
And are you sure you do not mean copyright? ©
top.status="\xA9 me 2000"

Michel
0
m204984Author Commented:
\xAE worked great, Thanks. Is this a hex equivalent? Do you know of any place I can get a chart that shows all of these special characters? I had tried \&reg;, &reg;, \&#174; and &#174 with no luck. I've never seen characters like \xAE in any documentation.

BTW: I've been testing in IE5, should have specified that earlier.

Thanks again.
0
m204984Author Commented:
\xAE worked great, Thanks. Is this a hex equivalent? Do you know of any place I can get a chart that shows all of these special characters? I had tried \&reg;, &reg;, \&#174; and &#174 with no luck. I've never seen characters like \xAE in any documentation.

BTW: I've been testing in IE5, should have specified that earlier.

Thanks again.
0
Michel PlungjanIT ExpertCommented:
It is the hex equivalent, yes.

I do not have a chart, but I guess I could find/write a script that made one...

Let me have a look

Michel
0
Michel PlungjanIT ExpertCommented:
<SCRIPT LANGUAGE="JavaScript">
/* Javascript generated character chart © 2000 Michel Plungjan */
var str='', istr='', j=1, Across=10, Spanned=(Across*3)+1; // Netscape does not like the +1 in a string concatenation
document.write('<TABLE>');
document.write('<TR><TD ALIGN="CENTER" COLSPAN=' + Spanned + '><H3>Have a JS generated table of characters:</H3>(each character can be written as &#038;&#035;nnn&#059; where nnn is the number in the table)</TD></TR>');
document.write('<TR ALIGN="RIGHT">');
for (i=33;i<=255;i++,j++) {
   str = '';
   istr = '' + i;
   if      (istr.length == 1) str += '<TD>|</TD><TD>00' + i + '</TD><TD>' + '&#00' + i + ';</TD><TD>|</TD><TD>'+i.toString(16)+'</TD>';
   else if (istr.length == 2) str += '<TD>|</TD><TD> 0' + i + '</TD><TD>' + '&#0'  + i + ';</TD><TD>|</TD><TD>'+i.toString(16)+'</TD>';
   else if (istr.length == 3) str += '<TD>|</TD><TD>  ' + i + '</TD><TD>' + '&#'   + i + ';</TD><TD>|</TD><TD>'+i.toString(16)+'</TD>';
   if (j%Across == 0) str += '<TD>|</TD></TR>\n<TR ALIGN="RIGHT">';
   document.write(str);
}
document.write('<TD>|</TD></TR></TABLE>');
</SCRIPT>

Michel
0
Michel PlungjanIT ExpertCommented:
I apologise for the wrapping... perhaps this will help
______________________________________________________________________________________________________________________________________________________________________________________________________________

Michel
0
Michel PlungjanIT ExpertCommented:
It did ;-)

Michel
0
m204984Author Commented:
Thank you very much for your help. You definatley know what you're doing!!
0
Michel PlungjanIT ExpertCommented:
Hehe - found a script that was showing decimal values I wrote some 3 years ago and added the toString(16)  -

Michel
0
knightEknightCommented:
Cool Michelle!  That's a useful table.
I also recently discovered the underline trick -- I have used it in most of my posts this millenium.
_______________________________________________________________________________________________
0
Michel PlungjanIT ExpertCommented:
Kurt - I am a guy, not a girl :(
Yes, I saw your attempt and made mine longer ;-)

Michel
0
knightEknightCommented:
I hope you don't mind a little cosmetic enhancements:


<HTML>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
/* Javascript generated character chart © 2000 Michel Plungjan */
 var str='', istr='', j=1, Across=8, Spanned=(Across*4)+1; // Netscape does not like the +1 in a string concatenation
 document.writeln('<TABLE border=1>');
 document.writeln('<TR><TD ALIGN="CENTER" COLSPAN=' + Spanned + '><H3>Have a JS generated table of characters:</H3>(each character can be written as &#038;&#035;nnn&#059; where nnn is the number in the table)</TD></TR>');
 document.writeln('<TR ALIGN="CENTER"><TD></TD>');

 for (i=0;i<Across;i++)
    document.writeln('<TD><B>Dec</b></td><TD><B>Char</b></td><TD><B>Hex</b></td><TD></td>');

 document.writeln('</tr><TR ALIGN="CENTER"><TD></TD>');

 for (i=33;i<=255;i++,j++)
 {
    str = '';
    istr = '' + i;
    if      (istr.length == 1) str += '<TD>00' + i + '</TD><TD align="center">' + '&#00' + i + ';</TD><TD>'+i.toString(16)+'</TD><TD></td>';
    else if (istr.length == 2) str += '<TD> 0' + i + '</TD><TD align="center">' + '&#0'  + i + ';</TD><TD>'+i.toString(16)+'</TD><TD></td>';
    else if (istr.length == 3) str += '<TD>  ' + i + '</TD><TD align="center">' + '&#'   + i + ';</TD><TD>'+i.toString(16)+'</TD><TD></td>';
    if (j%Across == 0) str += '</TR>\n<TR ALIGN="CENTER"><TD></TD>';
    document.writeln(str);
 }
 document.writeln('</TR></TABLE>');
</SCRIPT>
</body>
</html>
0
knightEknightCommented:
better is:

    for (i=0;i<Across;i++)
     document.writeln('<TD><B>dec</b></td><TD><B>chr</b></td><TD><B>hex</b></td><TD></td>');
0
Michel PlungjanIT ExpertCommented:
Right - thanks... I dod not look hard at this code - just enough to add the hex...

Michel
0
knightEknightCommented:

>> Kurt - I am a guy, not a girl :(

"Not that there's anything wrong with that."  (being a girl)
(The quote is from Seinfeld)

Sorry MICHEL
I have a friend named Michelle and I am so used to writing her name.  Still, you know I know better than that.

BTW, my name is Ralph.  I am a guy also.  :)
0
knightEknightCommented:
>>  I did not look hard at this code - just enough to add the hex...

The header stuff is just fluf.  The table looks much cleaner this way.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.