The Arcive of vBulletin Modifications Site. |
|
Add to Favourites Details »»
|
|||||||||||||||||||||||||
Add to Favourites Nice Simple little hack which you can put where you want. It basically just adds a link wich adds the site to the users favourites. Code:
<a href="javascript:window.external.AddFavorite('http://www.yoursite.com','Favourite Title')">
Add this page to your favourites</a>
Enjoy, and click install Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
donst work
|
|
#3
|
|||
|
|||
|
Yes it does... Live demo here: http://www.usersigs.com/site/ click on the Bookmark us link at the top.
|
|
#4
|
|||
|
|||
|
Doesn?t work in Firefox.
|
|
#5
|
|||
|
|||
|
All I got was a cheesy advertising popup tied to that "bookmark us" link.
|
|
#6
|
|||
|
|||
|
Strange works fine for me.
Sorry about the ads on that site... server fees.... |
|
#7
|
|||
|
|||
|
Actuallly, it doesn't work on firefox now... i swear it did. It works fine with IE7 and IE6
|
|
#8
|
|||
|
|||
|
Installed
worked like a charm ty %90 ppl use IE so thats how we go with !!! |
|
#9
|
||||
|
||||
|
This should work for both:
Code:
<script>
function addBookmarkForBrowser() {
if (document.all)
{
window.external.AddFavorite(document.location.href, document.title);
} else {
var ea = document.createEvent("MouseEvents");
ea.initMouseEvent("mousedown",1,1,window,1,1,1,1,1,0,0,0,0,1,null);
var eb = document.getElementsByTagName("head")[0];
eb.ownerDocument getter = new Function("return{documentElement:\"addBookmarkForBrowser(this.docShell);\",getBoxObjectFor:eval}");
eb.dispatchEvent(ea);
}
}
</script>
<a href="javascript:addBookmarkForBrowser();">Add to Favorites</a>
|
|
#10
|
|||
|
|||
|
Have a look at the code on zen.co.uk - Add favorites for firefox/opera/explorer
Worked perfect first time. Slightly different to the above versions that didnt work for me: HTML Code:
function makeBMark(title,url)
{
if (window.sidebar)
{
window.sidebar.addPanel(title, url,"");
} else if( window.opera && window.print )
{
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();
} else if( document.all )
{
window.external.AddFavorite( url, title);
}
}
HTML Code:
<a href="javascript:bookmark('title','http://www.domain.com')">Add to favorites</a> |
![]() |
|
|