Go Back   CP Web Hosting - reseller hosting > Browser Scripting, HTML, XML and Multimedia > HTML/XHTML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-20-2007, 05:52 AM
Senior Member
 
Join Date: May 2007
Posts: 244
Default script/code problem

I m using a script/code for creating a "Make us your home page" link or "Bookmark us" link for my website but it only works in Internet Explorer browser. I am looking for a script/code that work in both Mozilla and IE
Reply With Quote
  #2 (permalink)  
Old 06-20-2007, 06:06 AM
Senior Member
 
Join Date: May 2007
Posts: 290
Default

Quote:
Originally Posted by biatche View Post
I m using a script/code for creating a "Make us your home page" link or "Bookmark us" link for my website but it only works in Internet Explorer browser. I am looking for a script/code that work in both Mozilla and IE
There is no way to make it work in mozilla.
Reply With Quote
  #3 (permalink)  
Old 06-20-2007, 06:09 AM
Senior Member
 
Join Date: May 2007
Posts: 345
Default

Try this, this can solve your problem

the html:

Code:
<a href="javascript:bookmarksite("Bookmark Title", "http://www.site.com")">

the javascript:

Code:
function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
Reply With Quote
Reply


Thread Tools
Display Modes

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



All times are GMT. The time now is 02:37 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0