View Full Version : Add to favorites framed page problem
tunayx
04-09-2007, 05:09 PM
Hi, I have a script works with opera, firefox and ie but my site contains frames so when I click Add to favorites in internet explorer it adds main.html adress not index.html
I need a code modification so the script can add pre-defined adress, can you help me?
<!--webbot bot="HTMLMarkup" startspan --><a href="http://www.freewebtown.com/aymavisi" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite(location.href, document.title);return false; }else{ this.title = document.title; }" title="bookmark this page">Favorilere Ekle</a><!--webbot
BetaWar
04-09-2007, 07:04 PM
Try this:
<!--webbot bot="HTMLMarkup" startspan -->
<a href="http://www.freewebtown.com/aymavisi" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite('http://www.yourdomain.com/file.extension', 'Page Title');return false; }else{ this.title = 'Page title'; }" title="bookmark this page">Favorilere Ekle</a>
<!--webbot
tunayx
04-10-2007, 10:24 AM
It worked, thank you very much. I also want to turn text link to a button (standart button would be good). How can I add this to my code or can you add it for me?
<!--webbot bot="HTMLMarkup" startspan -->
<a href="http://www.freewebtown.com/aymavisi" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite('http://www.yourdomain.com/file.extension', 'Page Title');return false; }else{ this.title = 'Page title'; }" title="bookmark this page">Favorilere Ekle</a>
<!--webbot
BetaWar
04-10-2007, 05:56 PM
Okay so your code would look like this:
<!--webbot bot="HTMLMarkup" startspan -->
<button onclick="http://www.freewebtown.com/aymavisi" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite('http://www.yourdomain.com/file.extension', 'Page Title');return false; }else{ this.title = 'Page title'; }" title="bookmark this page">Favorilere Ekle</button>
<!--webbot
If that doesn't work (for an odd reason or something to that extent, try this:
<!--webbot bot="HTMLMarkup" startspan -->
<input type="button" onclick="http://www.freewebtown.com/aymavisi" rel="sidebar" onclick="if(document.all && !window.opera){ window.external.AddFavorite('http://www.yourdomain.com/file.extension', 'Page Title');return false; }else{ this.title = 'Page title'; }" title="bookmark this page" value="Favorilere Ekle">
<!--webbot
tunayx
04-11-2007, 09:19 AM
Sorry but both didn't worked. Button is visible but not functional in internet explorer and frontpage gives syntax error.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.