Thread: Bookmark script

+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    A1 Business Forum Regular A1 Member
    Join Date
    May 2008
    Location
    North East Scotland
    Posts
    60
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default Bookmark script

    Hello

    Can anyone recommend a javascript or similar for bookmarking a page on a website that is multi-browser compatible?

    So there would be a simple graphic saying "bookmark this page" and when clicked the viewer can add to their fav's.

    Thanks
    Joanne
    Joanne


    www.poppy-design.co.uk - Bespoke Web, Ecommerce & Graphic Design

    www.funkycanvas.co.uk - Contemporary Canvas Art

  2. #2
    I'm Getting to Know A1
    Join Date
    Apr 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    check out my site i have a bookmark link at the top if you click it there is instructions how to get the link at the bottom of the pop up.

    www dot caltechelectrical dot co dot uk

  3. #3
    A1 Business Forum Regular A1 Member
    Join Date
    May 2008
    Location
    North East Scotland
    Posts
    60
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Hello Caltech

    Thanks for that - that looks good and may well work for my client

    Joanne
    Joanne


    www.poppy-design.co.uk - Bespoke Web, Ecommerce & Graphic Design

    www.funkycanvas.co.uk - Contemporary Canvas Art

  4. #4
    A1 Business Forum Regular A1 Member
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    0
    Thanked 7 Times in 6 Posts

    Default

    function bookmarksite(title,url){
    if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
    }
    else if(document.all)// ie
    window.external.AddFavorite(url, title);
    }



    <a href="javascript:bookmarksite('this site', 'http://www.thissite.com')">Add this site to your favourites</a>
    Lime Dezign
    Add a little zest!
    www.limedezign.co.uk

  5. #5
    A1 is my Second Home! A1 Regular
    Join Date
    Mar 2008
    Location
    North East
    Posts
    230
    Thanks
    60
    Thanked 28 Times in 26 Posts

    Default

    Quote Originally Posted by forums View Post
    Sorry to be negative, but why do it? It seems so "90's".
    My opinion is that customers are busy and wouldn't necessarily think to bookmark a site so being presented with a button to click might just grab the attention of someone who wouldn't have thought to do it other wise.

    It's so little extra effort to provide the option and if it means that you get people coming back to your site then great.

    We are having to be creative at the moment to pull sales in as customers just aren't parting with their hard earned cash so every little helps

  6. #6
    A1 Business Forum Regular A1 Member
    Join Date
    May 2008
    Location
    North East Scotland
    Posts
    60
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Quote Originally Posted by forums View Post
    Sorry to be negative, but why do it? It seems so "90's".

    As a user, if I want to bookmark something I'll just use the button on my toolbar, thanks. Much like having a link to close the browser window ... your job is to show me content - the browser or operating system helps me close windows.

    Also - the script may not work if your users store their bookmark in deliciious or another social book-marking service.

    Just my 2 cents!
    What the client wants (what the client pays for!) the client gets!

    Personally I do not have feelings either way on the bookmark button though I would not say "it was very 90's" at all!

    It's just a little button that makes it easier for some people that are not aware of the "add to favourites" option in the browser tool bar - believe me there are people out there.

    The site also uses a "addthis" bookmark widget button thing that covers all the main social networking sites etc.

    Joanne
    Joanne


    www.poppy-design.co.uk - Bespoke Web, Ecommerce & Graphic Design

    www.funkycanvas.co.uk - Contemporary Canvas Art

  7. #7
    A1 Business Forum Regular A1 Member
    Join Date
    May 2008
    Location
    North East Scotland
    Posts
    60
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    Thanks for the below Dave

    Will try that out later!

    Joanne

    Quote Originally Posted by dave_n View Post
    function bookmarksite(title,url){
    if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
    }
    else if(document.all)// ie
    window.external.AddFavorite(url, title);
    }



    <a href="javascript:bookmarksite('this site', 'http://www.thissite.com')">Add this site to your favourites</a>
    Joanne


    www.poppy-design.co.uk - Bespoke Web, Ecommerce & Graphic Design

    www.funkycanvas.co.uk - Contemporary Canvas Art

  8. #8
    A1 Business Forum Regular A1 Member
    Join Date
    May 2008
    Location
    North East Scotland
    Posts
    60
    Thanks
    1
    Thanked 6 Times in 6 Posts

    Default

    [quote=dave_n;46926]function bookmarksite(title,url){
    if (window.sidebar) // firefox
    window.sidebar.addPanel(title, url, "");
    else if(window.opera && window.print){ // opera
    var elem = document.createElement('a');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
    }
    else if(document.all)// ie
    window.external.AddFavorite(url, title);
    }

    [quote]

    Does that code go in the head brackets or the body?

    Doet it need a <javascipt> prefix?

    I tried adding to the body but it did not work.

    Thanks
    Joanne
    Joanne


    www.poppy-design.co.uk - Bespoke Web, Ecommerce & Graphic Design

    www.funkycanvas.co.uk - Contemporary Canvas Art

  9. #9
    A1 Business Forum Regular A1 Member
    Join Date
    Mar 2008
    Posts
    55
    Thanks
    0
    Thanked 7 Times in 6 Posts

    Default

    stick it in the head section and make sure you put in opening and closing script tags
    Lime Dezign
    Add a little zest!
    www.limedezign.co.uk

  10. #10
    I'm Getting to Know A1
    Join Date
    May 2008
    Posts
    13
    Thanks
    2
    Thanked 7 Times in 3 Posts

    Default

    one other idea to throw in...I've used addthis.com which has been around for some time. It's a useful little gadget for easily adding bookmark & social network share buttons to web pages.

    You can easily configure it to only show a "bookmark" icon if you wanted to.

  11. The Following User Says Thank You to yorkshiresource For This Useful Post:

    Sue (21-05-2008)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Member Controls

Our Advertisers




Side Column
Text
Text
Text
Text
-->