Change font of script
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
--
Wayne
Manchester, England.
RE: Change font of script
It OK - I worked it out
Thanks
Happy New Year
--
Wayne
Manchester, England.
"Wayne-I-M" wrote:
> 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
>
>
>
> --
> Wayne
> Manchester, England.
>
Re: Change font of script
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
"Wayne-I-M" <WayneIM [at] discussions.microsoft.com> wrote in message
news:9DE7CA35-9E06-40F9-962F-9FAFC9461C00 [at] microsoft.com:
> 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
>
>
>
> --
> Wayne
> Manchester, England.
Re: Change font of script
Thank you
Have a great New Year
--
Wayne
Manchester, England.
"Ronx" wrote:
> 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
>
>
>
>
> "Wayne-I-M" <WayneIM [at] discussions.microsoft.com> wrote in message
> news:9DE7CA35-9E06-40F9-962F-9FAFC9461C00 [at] microsoft.com:
>
> > 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
> >
> >
> >
> > --
> > Wayne
> > Manchester, England.
>
>