Click to See Complete Forum and Search --> : How do I change font color and size for netscape


ClayBoy
12-21-2002, 05:39 PM
In this script how would I change font size and color for the Nescape browser?

<!-- Begin
// If it's Internet Explorer, use automatic link
// Be sure to change the "http://www.YourHomePage.com\"
// to the URL you want them to bookmark.
if (document.all){
document.write('<A HREF="javascript:history.go(0);" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.yourhomepage.com\');">');
document.write('<font size="1" color=22222VV face=arial><B>Make yourhomepage.com Your Homepage</B></font></a>');
}

// If it's Netscape 6, tell user to drag link onto Home button
// Be sure to change the "http://www.yourhomepage.com\"
// to the URL you want them to bookmark.
else if (document.getElementById){
document.write('<a href="http://www.yourhomepage.com">Drag this link onto your Home button to make this your Home Page.</a>');
}

// If it's Netscape 4 or lower, give instructions to set Home Page
else if (document.layers){
document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}

// If it's any other browser, for which I don't know the specifications of home paging, display instructions
else {
document.write('<b>Make this site your home page:</b><br>- Go to <b>Preferences</b> in the <B>Edit</B> Menu.<br>- Choose <b>Navigator</b> from the list on the left.<br>- Click on the <b>"Use Current Page"</b> button.');
}
// End -->
</script>

gil davis
12-21-2002, 08:16 PM
See http://developer.netscape.com/docs/manuals/htmlguid/tags6.htm#1288938

<FONT
COLOR="color"
FACE="fontlist"
POINT-SIZE="pointSize"
SIZE="number"
WEIGHT="boldness"
>
...
</FONT>