Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 01:39:20 AM

Pages: [1]   Go Down
  Print  
Author Topic: Bookmark me button that works with IE and firefox?  (Read 2492 times)
Lightjaw
Newbie
*
Offline Offline

Posts: 5


« on: September 05, 2010, 12:47:12 AM »

Morning all   Hiya

I'm trying to add a small "bookmark me button" to my website..

It works fine for Internet Explorer.  

But when I try to use it viewing the site using firefox, "computer says no"! (in fact, it doesn't say anything ... just doesn't do anything).   Crying or Very sad

Does anybody know a bit of code that would work for both browsers?  I'm not having much luck with codes found via google searches  Sad

At the moment, i'm using ....

Code:

<CENTER><img src="http://www.mywebsite.com/images/bookmark.png" onclick="window.external.AddFavorite(location.href, document.title);"></CENTER>


Thanks



« Last Edit: September 05, 2010, 12:49:15 AM by Lightjaw » Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #1 on: September 05, 2010, 09:35:28 AM »

If you google for bookmark code firefox you will find that the code you're using applies only to IE. There are many suggestions given for alternate code that works across at least IE and FF (better check Chrome too, these days) and possibly other browsers. Since this function is browser-specific and involves the browser's updating files on the PC (a potential security exposure -- imagine a website erasing bookmarks to competitors' sites!), it's going to be a bit complicated.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Lightjaw
Newbie
*
Offline Offline

Posts: 5


« Reply #2 on: September 05, 2010, 12:14:46 PM »

Many thanks for the reply  Thumbs Up

I found a script here which seems to work ... http://www.dynamicdrive.com/dynamicindex9/addbook.htm

I'm a bit worried about using anything with the words "javascript" just after the <head> section within my site pages ..... will it have any effect on getting my pages indexed by google and other search engines?  I'm sure I read somewhere that it's best to call in javascript from an external file.  No idea what that means or how to do it!

As you can tell ..... I am a site owner of Very Little Brain !!!!


So any advice / reassurance would be appreciated.
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #3 on: September 05, 2010, 01:11:31 PM »

There's no problem with putting Javascript <script...  </script> in the <head> ... </head> section, and where needed within <body> ... </body>. I've never heard of that hurting search engine indexing. If you use the same code on multiple pages, and it's fairly large, it may be to your advantage to use an external .js file instead of in-line code, as the .js file only has to be downloaded once, which improves performance slightly. If it's only a small amount of code, go ahead and embed it in the page.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Lightjaw
Newbie
*
Offline Offline

Posts: 5


« Reply #4 on: September 06, 2010, 04:45:47 AM »

Many thanks again for your reply.

You have put my mind at rest !   Thumbs Up

I'm going to hunt around the internet tomorrow to try to learn how to call in javascript  from an external file into an html page.  I would just be interested to learn for future reference.

I normally learn by making horrendous mistakes and making my pages look like they have been on the beer!!!  Good way to learn though!

My best ever "learn" was to make backups before I start playing around  Grinning

Logged
MNM
Galactic Royalty
*****
Offline Offline

Posts: 261


Hosted on server: TYR


WWW
« Reply #5 on: September 08, 2010, 07:52:35 PM »

I hate to say this but a bookmark button is so 1990's

I don't think I have ever used one, and why should I when my browser has a perfectly good bookmarking button. My policy on websites is to focus on the content and to strip away frivolous items. I want my client focused on my content, if they like it they will automatically bookmark the site.

I'm not criticizing your site but just letting you know that items like bookmark buttons on a website are totally useless when they are already on the readers browser.
Logged

MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #6 on: September 09, 2010, 08:48:12 AM »

True enough that any browser worthy of the name has a simple way to bookmark a site. However, I can see something on the page that reminds visitors to bookmark this site could be useful. Even simple text "Don't forget to bookmark this site!" would be helpful.

I don't know if any browser can do this, but it might be good for a "bookmark button" to save not this specific page, but a more generic address (e.g., the site Home Page). Being able to specify the URL would be open to abuse, I'll concede, so such a capability might be restricted to the current domain (i.e., give only the URI, to be attached to the current domain).
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Lightjaw
Newbie
*
Offline Offline

Posts: 5


« Reply #7 on: September 09, 2010, 02:05:36 PM »

I'm not criticizing your site but just letting you know that items like bookmark buttons on a website are totally useless when they are already on the readers browser.


Agreed.  But I can tell you have never met my mother-in-law.   Smile

Besides, I'm very retro and kinda stuck in the eighties .... so 1990's eh!?  That's soooo totally radical !!  Grinning

Anyway, I got it all working.  And learnt how to call in external js files.  Which is kinda good considering how dumb I am.  I'm learning slowly.  As a great man once said ..... "wax on, wax off".


Thanks to all that have replied.  Appreciated  Thumbs Up

 



Logged
Pages: [1]   Go Up
  Print  
 
Jump to: