Unstoppable Domains — AI Assistant

Bookmark Site script

SpaceshipSpaceship
Watch

blackwizard

Account Closed
Impact
12
Step 1: Add the below code to the <head> section of your page:

<script type="text/javascript">

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
***********************************************/

/* Modified to support Opera */
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>

Step 2: Create either an image or text link that will be used as the Bookmark Site link. For the href attribute, use the following code:

javascript:bookmarksite('title_of_site', 'url_of_site')

Here's an example:
<a href="javascript:bookmarksite('FlickArcade', 'http://www.flickarcade.com')">Bookmark this site!</a>

Remember, if your site's title contains apostrophes, they need to be backslashed when entered:

<a href="javascript:bookmarksite('Mike\'s Place', 'http://www.google.com')">Bookmark this site!</a>

Source: www.dynamicdrive.com
If you Like this Script, Rep. is always Appreciated, For sharing this Script.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
It works well.
Thanks for sharing.
 
0
•••
Thats a LOT of Javascript in the head tag that really is not needed. This should work just as well, tested in IE6+7, Opera, FF and worked fine.

http://neville.tk/bookmarkcreation.php

Example:
Code:
<a href="http://namepros.com" rel=sidebar name="Favourite us" title="NamePros Homepage" onClick="javascript:window.external.AddFavorite('http://namepros.com','NamePros Homepage');return false">Bookmark us!</a>
 
Last edited:
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Spaceship
Domain Recover
CatchDoms
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back