Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Bookmark us script



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> JavaScript Forum
View previous topic :: View next topic  
Author Message
killer-kurt



Joined: 12 Mar 2008
Posts: 10
Location: Wales UK

PostPosted: Wed Mar 12, 2008 2:40 pm    Post subject: Bookmark us script Reply with quote

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?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> JavaScript Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap