Forum Moderators: open

Message Too Old, No Replies

how to do "add to favorites"

         

flashman

6:19 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



subject.

moltar

6:25 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



javascript:

function addBookmark(title,url) {
if ( window.sidebar ) {
window.sidebar.addPanel(title, url,"");
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

html:

<a href="#" onclick="addBookmark('Your Page Title', 'http://www.your_address.com')">add to favorites</a>

claus

6:25 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ehrm.. IE only stuff... well, here's a script for you anyway and it does something for other browsers also:

<script type="text/javascript">
var IEstring = "<a href='javascript:window.external.AddFavorite"
IEstring += "(location.href,document.title);'>Click here to bookmark the page!<\/a>" ;
var NSstring = "Click [Ctrl + D] to bookmark the page!";
var OTHstring = "Remember to bookmark the 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>

/claus

Reflection

6:41 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



Do alot of people use this method of having a link to bookmark site? Seems to me if people were interested in bookmarking your site they would do it themselves.

moltar

6:52 pm on Aug 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Reflection: that is what I am thinking too. Recently I've implemented little tracking system. When user adds my website to favs using javascript method, the URL is actually the current page's URL plus ?f=b (from bookmarks) at the end. When user visits my page later, I will see that he/she comes from favs. I don't have that many visitors yet, but I will see in a month or so if anyone ever came back with that string attached to the url. I will report here on WW.

Superfrappe

6:54 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



I'd have to agree w/ Reflection. I'd be interested to hear your results in a month or so, moltar.

Reflection

6:59 pm on Aug 15, 2003 (gmt 0)

10+ Year Member



When I see a link like that it kinda makes me think "oh please bookmark my page PLEASE!" :)

But thats just me ;)

flashman

10:20 am on Aug 16, 2003 (gmt 0)

10+ Year Member



Thanx all.

No, need no links such as "please bookmark me:)))".
Just i must know how to do it.

Commonly visitor no need know about it:)
So 2nd example is not fit. Sorry claus.

claus

2:15 pm on Aug 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok, so you're just popping up the add favorites without a user request... well, that's not what i thought you would anyway, i thought you wanted a link - anyway, problem solved and that's good :)
/claus

moltar

6:49 pm on Aug 30, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here are my stats:

I had 1880 visits since Aug 15. (that's when I added the "add to bookmarks" link)

This whole month I had 3207 visits.

AwStats claims that 317 / 2449 visitors added my site to favorites. (I don't understand why out of 2449 if I had 3207 all together... weird)

I checked my logs and found 4 different visitors came to my site with?f=b string attached to the URL. That means at least 4 people used "add to bookmarks" link on my website.

While writing this I came up with something. I think "add to bookmarks" sounds cheesy and a little spammy. I was thinking to write something different - less trivial. Something like "remember this website" or "save this website" or something similar. Maybe then users would be more willing to click it.

Also I have to disagree with Reflection. It might look funny to someone very experiences online. But some people still type URLs into search engines and double click links. Someone might not know how to add to favourites. Or just lazy to go to the menu and click the menu option.

Reflection

6:54 pm on Sep 2, 2003 (gmt 0)

10+ Year Member



Also I have to disagree with Reflection. It might look funny to someone very experiences online. But some people still type URLs into search engines and double click links. Someone might not know how to add to favourites.

If they dont know how to add a site to favorites chances are they will not know how to find the site in their favorites after its bookmarked. After all it says "add to favorites" first thing in the favorites menu :)

creative craig

7:43 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Last month 4700 page views and 148 people added me to their favorites through the link on my home page.

Craig

moltar

7:57 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Craig, how did you track that down?

creative craig

10:24 am on Sep 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My webhost does it all for me, not sure how. But it puts it into a pretty little chart for me :)

Craig