English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories








Bookmark this site!




I'm trying to make it an external code so that my code will be cleaner please help me!

2007-09-18 00:52:01 · 1 answers · asked by Patrick M 1 in Computers & Internet Programming & Design

1 answers

Place this code in note pad

/*****************************...
* 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
******************************...

/* 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',titl...
elem.setAttribute('rel','sideb...
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(ur... title);
}

Now save it in a folder named script that is in your root directory.
Set the Save As type on notepad to all files *.* and enter the file name as something.js
Now Change this tag