View Full Version : add bookmark

05-14-2009, 12:43 PM
on this site (at the vertical center of page) they have a yellow star that works in both IE and FF(no side bar !)


can't dig the code out .....if anyone can

05-15-2009, 10:27 AM

i had a dig around in the JS file on that site

function addBookmark(link)
var title = 'WareSeeker Free Download';
var url = 'http://wareseeker.com';

if(window.opera) {
link.rel = 'sidebar';
link.href = url;
link.title = title;
else if(window.sidebar) window.sidebar.addPanel(title, url, '');
else window.external.AddFavorite(url, title);

the function is called like this on that site

<span onclick="return addBookmark(this);" class="bg_icon favorites"><a alt="Favorites" title="Favorites" href="javascript:void(0)">Favorites

Hope this helps :)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum