Webmastersite.net
Register Log In

Bookmark function does not seem to work

Comments on Bookmark function does not seem to work

capitaine
Forum Regular

Usergroup: Customer
Joined: Aug 05, 2005

Total Topics: 94
Total Comments: 272
Posted Oct 09, 2005 - 2:28 AM:

the Bookmark function does not seem to work in Firefox. Can anyone confirm?
peumus
Forum Regular

Usergroup: Customer
Joined: Aug 09, 2004
Location: Chile

Total Topics: 172
Total Comments: 462
peumus
Posted Oct 09, 2005 - 11:25 AM:

I confirm it working at IE,
but doesn't working at Firefox, Opera and Netscape.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 09, 2005 - 6:17 PM:

Yes, it was IE-only. Thought about removing it or checking around for cross-browser bookmarking but haven't bothered.
artwilliams
Beginner

Usergroup: Customer
Joined: Oct 30, 2005

Total Topics: 2
Total Comments: 7
Posted Nov 16, 2005 - 7:34 AM:

<script type="text/javascript">
var IEstring = "<a class='nav2' href='javascript:window.external.AddFavorite"
IEstring += "(location.href,document.title);'>Bookmark this page</a>" ;
var NSstring = "[Ctrl + D] to bookmark this page!";
var othstring = "Bookmark this page!"
var whichString = othstring ;
var agt = navigator.userAgent.toLowerCase();
var app = navigator.appName.toLowerCase();
var ieAgent = agt.indexOf('msie');
var nsAgent = app.indexOf('netscape');

if (ieAgent!= -1) {
whichString = IEstring;
} else if (nsAgent!= -1){
whichString = NSstring;
}
document.write("" + whichString + "")
</script>

This will work.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 17, 2005 - 10:13 PM:

It's rather messy though, not sure it's worth cluttering a default template with.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.