Add to favourites

Soldato
Joined
24 Nov 2002
Posts
16,378
Location
38.744281°N 104.846806°W
Is there a generic "add to favourites" script that works on ALL browsers?

The only ones I've found work on IE and Opera on firefox they add to sidebar and on safari do nothing!
 
It's a messy thing to do, and there is no one solution for all browsers. Just tell the user to bookmark the page manually; using ctrl+d is, AFAIK, a universal shortcut.
 
why bother at all? if your site is of any interest to them, people will bookmark it. people aren't idiots (hehe can't believe i said that :o)
 
Code:
<script>
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script>

Code:
<a href="#" onmousedown="addBookmark('My Site','http://mysite.net/')" onmouseover="return overlib('Bookmark us.')" onmouseout="return  overlib('www.mysite.net',DELAY, 1000);">Bookmark Us</a>

Turned up from a Google search. Haven't tested it, but give it a go ;)
 
GeForce said:
Code:
<script>
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
</script>

Code:
<a href="#" onmousedown="addBookmark('My Site','http://mysite.net/')" onmouseover="return overlib('Bookmark us.')" onmouseout="return  overlib('www.mysite.net',DELAY, 1000);">Bookmark Us</a>

Turned up from a Google search. Haven't tested it, but give it a go ;)
Without testing it (which I will do) I think that'll sidebar not favourite things and won't work in Safari (nothing does!)
 
Back
Top Bottom