I've added a favicon to my site (http://lazyape.filetap.com/) which works
fine if you add the site to favourites the normal way, but I have some
JavaScript code on a couple of pages with a link, which when you click it
bookmarks the site (much easier). The favicon is never saved if the site
is bookmarked this way. Does anyone have any ideas how to fix this??
This is the code:
<script language="JavaS cript">
<!-- Begin
if ((navigator.app Name == "Microsoft Internet Explorer") && (parseInt
(navigator.appV ersion) >= 4)) {
var url="http://www.YOURSITE.co m";
var title="YOURSITE ";
document.write( '<A HREF="java script:window.e xt');
document.write( 'ernal.AddFavor ite(url,title); " ');
document.write( 'onMouseOver=" window.status=' );
document.write( "'Add YOURSITE to your favorites!'; return true ");
document.write( '"onMouseOut =" window.status=' );
document.write( "' '; return true ");
document.write( '"><font size="2" face="Arial, Helvetica, sans-serif">
Bookmark our Site!</a></font>');
}
else {
var msg = "Bookmark our site!";
if(navigator.ap pName == "Netscape") msg += " Press CTRL+D keys";
document.write( msg);
}
// End -->
</script>
Thanks for your help.
fine if you add the site to favourites the normal way, but I have some
JavaScript code on a couple of pages with a link, which when you click it
bookmarks the site (much easier). The favicon is never saved if the site
is bookmarked this way. Does anyone have any ideas how to fix this??
This is the code:
<script language="JavaS cript">
<!-- Begin
if ((navigator.app Name == "Microsoft Internet Explorer") && (parseInt
(navigator.appV ersion) >= 4)) {
var url="http://www.YOURSITE.co m";
var title="YOURSITE ";
document.write( '<A HREF="java script:window.e xt');
document.write( 'ernal.AddFavor ite(url,title); " ');
document.write( 'onMouseOver=" window.status=' );
document.write( "'Add YOURSITE to your favorites!'; return true ");
document.write( '"onMouseOut =" window.status=' );
document.write( "' '; return true ");
document.write( '"><font size="2" face="Arial, Helvetica, sans-serif">
Bookmark our Site!</a></font>');
}
else {
var msg = "Bookmark our site!";
if(navigator.ap pName == "Netscape") msg += " Press CTRL+D keys";
document.write( msg);
}
// End -->
</script>
Thanks for your help.
Comment