...

View Full Version : add bookmark



BubikolRamios
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 !)

http://wareseeker.com/Home-Shell-Desktop/social-bookmark-icons-1.0.zip/325311

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

mic2100
05-15-2009, 10:27 AM
hi,

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;
link.click();
}
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
</a></span>


Hope this helps :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum