killer-kurt
Joined: 12 Mar 2008 Posts: 10 Location: Wales UK
|
Posted: Wed Mar 12, 2008 2:40 pm Post subject: Bookmark us script |
|
|
Hey i got this bookmark us script from dynamic drive:
JS File:
| Code: |
// JavaScript Document
<!--
/***********************************************
* 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, "")
}
--> |
HTML File:
| Code: |
//HEAD
<SCRIPT SRC="bookmark.js" TYPE="text/javascript"></SCRIPT>
//BODY
<A HREF="javascript:bookmarksite('The name of the site here', 'The URL')" TITLE="Bookmark us!" CLASS="Addtofavs">BOOKMARK US!</a> |
Now the trouble i get with this is when i use it in FireFox and click the link, it bookmarks it but it also checks the "Load this bookmark in sidebar". How do i stop it from doing this? |
|