delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

prog365.com/images/sites/banghead.gif  http://bbs.prog365.com/images/sites/shocked.gif
many thanks in advance!
j


Hi, I have been looking on the net for hours and cannot find any script which is cross browser compatible where I can click on a link to add site to favourites and make this page my homepage for the following browsers:
IE
Mozilla
Chrome
Safari
I can get it to work on IE but I cannot find anything to solve this with the other browsers!! Is there anyone that knows how this is done?? Please!!    
many thanks in advance!
j

TOP

According to this article, there's not a lot you can do about safari.
http://javascript.about.com/library/blufav.htm
It apparently provides some code that lets you add to favourites in opera, but I tested it in 9.64 and no luck.
It does, however, work on firefox, and here's a simple reworking of it for Firefox:
Code:
  1. window.onload = function() {
  2. var s = document.getElementById('nav');
  3. if (window.sidebar) {
  4. s.style.cursor = 'pointer';
  5. s.onclick = function() {window.sidebar.addPanel(document.title,self.location,'')};
  6. }
  7. }
Copy Code
Look at the article anyway.

TOP

Many thanks for your input, very much appreciated. Looks like it's what i'll have to use in this case! Thanks again!
Originally Posted by loonychune
According to this article, there's not a lot you can do about safari.
http://javascript.about.com/library/blufav.htm
It apparently provides some code that lets you add to favourites in opera, but I tested it in 9.64 and no luck.
It does, however, work on firefox, and here's a simple reworking of it for Firefox:
Code:
  1. window.onload = function() {
  2. var s = document.getElementById('nav');
  3. if (window.sidebar) {
  4. s.style.cursor = 'pointer';
  5. s.onclick = function() {window.sidebar.addPanel(document.title,self.location,'')};
  6. }
  7. }
Copy Code
Look at the article anyway.

TOP

Be nice if someone else chips in, someone who's already had to go and work this out. Suppose you have a good deal of the market share with IE and FF though



prog365.com/images/sites/banghead.gif  http://bbs.prog365.com/images/sites/shocked.gif
many thanks in advance!
j

TOP

Back Forum