Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-04-2006, 04:37 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,097
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Thumbs down "Add to Favourites" button

I know the code used to make an "add to favourites" button is this:
Code:
<a href="javascript:window.external.AddFavorite('URL goes here','URL title goes here')">Add me to your favourites.</a>
However, this works for IE. Is there a way to make it cross-browser compatible?
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote

  #2 (permalink)  
Old 04-04-2006, 08:02 PM
curtiss's Avatar
Moderator
 
Join Date: May 2003
Posts: 1,367
This is the code we are currently using on our site, and it works just fine in Firefox 1.0.7:
Code:
<a href="#" onmousedown="addBookmark('DCEvolution','http://dcevolution.net/')" onmouseover="return overlib('Bookmark us.')" onmouseout="return  overlib('www.dcevolution.net - www.dcevo.com',DELAY, 1000);"><img  src="./images/bookmark.gif" alt="Bookmark" width="10" height="28" border="0" /></a>
and this is the js code for that function:
Code:
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
I think that's all there is to it on our site (I'm not sure, as that code is legacy code from our last programmer - before my time).
__________________
I hate Internet Explorer! Anyone with me?
Reply With Quote
  #3 (permalink)  
Old 04-05-2006, 05:38 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,097
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Thumbs up

Thanks, Curtiss!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #4 (permalink)  
Old 04-08-2006, 02:59 PM
cssiscool's Avatar
Registered User
 
Join Date: Apr 2006
Posts: 6
even with all the problems internet explorer creates for html and css coders it is still used by the majority and you don't have to install a dhtml plugin. i love it
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for using the Back button and the Close button mdgibson Programming and Scripting 1 09-27-2005 03:13 PM
Firefox and gradient button backgrounds. joel0903 Programming and Scripting 2 08-22-2005 03:22 PM
Submit Button Redirect Moxy_Fruvous Programming and Scripting 3 05-06-2005 05:10 PM
Radio Button Label Placement javaguy Usability and Accessability 3 03-23-2005 07:10 PM
CSS Radio Button Text Placement javaguy Programming and Scripting 0 03-01-2005 07:02 AM


All times are GMT -5. The time now is 08:34 PM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter