Anyone got a working bookmarking code for both IE and FF? I expect Smokey the Bear to come up with the solution soon...
JavaScript code for Bookmarking for FF
Collapse
X
-
-
I see this used sometimes. Seems to work:
Code:<script type="text/javascript"> function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } </script>Code:<a href="javascript:bookmarksite('Domain Name', 'http://www.domainname.com')">Bookmark Link</a>Comment
-
i have both but to be honest i prefer the "addthis" button from www.addthis.com
they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and suchhatisblack at yahoo.comComment
-
heres a basic add to favourites for ie and firefox and "set as homepage" in ie
Code:<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>hello world</title> <script language="JavaScript1.2" type="text/javascript"> function CreateBookmarkLink() { title = "gfy kicks ass"; url = "http://www.gfy.com/"; if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(title, url,""); } else if( window.external ) { // IE Favorite window.external.AddFavorite( url, title); } else if(window.opera && window.print) { // Opera Hotlist return true; } } </script> </head> <body bgcolor="#ffffff"> <a href="javascript:CreateBookmarkLink();">Add to Favorites</a> <br><br> <a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Set homepage </a> </body> </html>hatisblack at yahoo.comComment
-
Anyone ever Digg your page?i have both but to be honest i prefer the "addthis" button from www.addthis.com
they give you a small bookmark button and it lets users add to favourites in both firefox and ie , and lets users add your page to many social bookmark sites like "digg" and such
I wonder how many FF users don't realize the Favorites is the Bookmarks for them... and how many end up not bookmarking because it all just seems to complicated and web 1.5Comment
-
Code:<script language="JavaScript1.2"> function addbookmark() { url="http://www.sitenamehere.com"; title="Site Name Here"; if (window.sidebar) { window.sidebar.addPanel(title, url, ""); } else if(window.external) { window.external.AddFavorite(url, title) ; } } </script>Code:<a href="javascript:addbookmark()">

Custom Cartoon Mascots - ICQ: 243355699, Email: [email protected] or Click Sig - 15% referrals. Send me clients, make money!
Comment
-
<script type="text/javascript">
/***********************************************
* Bookmark site script- ? Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
</script>
<a href="javascript:bookmarksite('title', 'http://www.yourdomain.com')">Bookmark Us!</a>TchauComment
-
yup lots , they include a sweet tool to record how many people are clicking the "addthis" button and what bookmarking site they chosehatisblack at yahoo.comComment


Comment