Change font of script

W

Wayne-I-M

Hi

I have this script (from Jim Buyens - FrontPage MVP - ) that adds a page to
favorites. Works really well but is it possible to change the font within
this -

<script>
if (navigator.appName.substring(0,9) == "Microsoft")
{
document.write("<a href='" +
"javascript:window.external.addFavorite" +
"(document.location, document.title)'>" +
"Add to favorites.</a>")
}
</script>

I have tried to add "stuff" to this but each time I get errors.
I want to make it Arial - font 10 - without the underscore.

Is this even possible?

I have used this script as it is the only one I can get to work - this is as
I'm really not good at this "stuff" - but it's fun to learn :)

http://www.folgarida.co.uk/test.htm

Thank you
 
R

Ronx

Put the script inside a paragraph or other HTML element, and style the
paragraph:
Example:

<p style="font-family:arial, sans-serif;">
<script type="text/javascript>
if (navigator.appName.substring(0,9) == "Microsoft")
{
document.write("<a href='" +
"javascript:window.external.addFavorite" +
"(document.location, document.title)'>" +
"Add to favorites.</a>")
}
</script>
</p>
 
W

Wayne-I-M

Thank you

Have a great New Year


--
Wayne
Manchester, England.



Ronx said:
Put the script inside a paragraph or other HTML element, and style the
paragraph:
Example:

<p style="font-family:arial, sans-serif;">
<script type="text/javascript>
if (navigator.appName.substring(0,9) == "Microsoft")
{
document.write("<a href='" +
"javascript:window.external.addFavorite" +
"(document.location, document.title)'>" +
"Add to favorites.</a>")
}
</script>
</p>
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top