Results 1 to 7 of 7

Thread: How do you add an 'add to favourites' button?
      
   

  1. #1
    pdyeeydv is offline Staff Sergeant
    Join Date
    Aug 2006
    Location
    Northumberland, UK
    Posts
    45

    Talking How do you add an 'add to favourites' button?

    Anyone know how you add an 'add to favourites' button to your website? The easier the better.

    Many thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Earth
    Posts
    8,721

    Default Re: How do you add an 'add to favourites' button?

    Its not a button, but you can change the text on this one. Just change the part in the code that says!
    Book mark us to your favourites we would like see you again!
    If you want somthing eles.
    Then just paste all the code below into a HTML box. Remember to stretch the html box horizontally if the words get on top of each other. If its not compatable with a browser it will say press ctrl D to bookmark us to your visitors. But it works fine with most.

    Good luck


    Chris.
    PS. Will only work when published & not in preview.





    <font face="Arial" size="3">
    <b>
    <script>
    </script>
    </b>
    </font>

    <script language="JavaScript">
    <!--
    // message to show in non-IE browsers
    var txt = "Book mark us to your favourites we would like see you again!"
    // do not edit below this line
    // ===========================

    var url = this.location;
    var who = document.title;
    var ver = navigator.appName
    var num = parseInt(navigator.appVersion)
    if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    document.write('<A HREF="javascript:window.external.AddFavorite(url,w ho);" ');
    document.write('onMouseOver=" window.status=')
    document.write("txt; return true ")
    document.write('"onMouseOut=" window.status=')
    document.write("' '; return true ")
    document.write('">'+ txt + '</a>')
    }else{
    txt += " (Ctrl+D)"
    document.write(txt)
    }

    //-->
    </script>

  3. #3
    zigzag's Avatar
    zigzag is offline Captain
    Join Date
    Apr 2006
    Location
    Durban, South Africa
    Posts
    206

    Default Re: How do you add an 'add to favourites' button?

    This method was posted by Pablo on 22June2005. I used an image of a book, so I will refer to "Image"

    In the Page HTML - Between Head Tag - paste this, after changing the "Harrow" url and title to suit your page ...
    <SCRIPT LANGUAGE="JavaScript">
    function addbookmark()
    {
    bookmarkurl="http://www.harrow-art.com"
    bookmarktitle="Harrow Candle holders & Lamps"
    if (document.all)
    window.external.AddFavorite(bookmarkurl,bookmarkti tle)
    }
    </SCRIPT>

    In the Image Properties (Link), set Link Type to http:
    In Image Properties(Link), paste this in the URL box ...
    javascript:addbookmark()

    In the Image Properties(General), type "Add to Favourites", or similar in the Alternate Text box

  4. #4
    davehurst is offline Second Lieutenant
    Join Date
    Feb 2006
    Location
    wigan, uk
    Posts
    112

    Default Re: How do you add an 'add to favourites' button?

    i just tried this and all i am getting on the website is error on page. any ideas????

  5. #5
    AWS's Avatar
    AWS
    AWS is offline First Lieutenant
    Join Date
    Jan 2006
    Posts
    172

    Question Re: How do you add an 'add to favourites' button?

    Quote Originally Posted by Collectors-info
    Its not a button, but you can change the text on this one. Just change the part in the code that says!
    Book mark us to your favourites we would like see you again!
    If you want somthing eles.
    Then just paste all the code below into a HTML box. Remember to stretch the html box horizontally if the words get on top of each other. If its not compatable with a browser it will say press ctrl D to bookmark us to your visitors. But it works fine with most.

    Good luck


    Chris.
    PS. Will only work when published & not in preview.





    <font face="Arial" size="3">
    <b>
    <script>
    </script>
    </b>
    </font>

    <script language="JavaScript">
    <!--
    // message to show in non-IE browsers
    var txt = "Book mark us to your favourites we would like see you again!"
    // do not edit below this line
    // ===========================

    var url = this.location;
    var who = document.title;
    var ver = navigator.appName
    var num = parseInt(navigator.appVersion)
    if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    document.write('<A HREF="javascript:window.external.AddFavorite(url,w ho);" ');
    document.write('onMouseOver=" window.status=')
    document.write("txt; return true ")
    document.write('"onMouseOut=" window.status=')
    document.write("' '; return true ")
    document.write('">'+ txt + '</a>')
    }else{
    txt += " (Ctrl+D)"
    document.write(txt)
    }

    //-->
    </script>
    Hi,

    I tried all the above....placed in a html box within my website at http://www.irishpowerlifting.org/home.html and published but on clicking on the bookmark text I keep getting a page error message.

    Can anyone help?????

  6. #6
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

    Default Re: How do you add an 'add to favourites' button?

    This is an example of bookmark button. A BV advanced button is used.
    Please copy the following code in the "Between Head" Tag of your page HTML:
    <script type="text/javascript">
    /***********************************************
    * Bookmark site script- &#169; Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/
    function bookmarksite(title, url){
    if (document.all)
    window.external.AddFavorite(url, title);
    else if (window.sidebar)
    window.sidebar.addPanel(title, url, "")
    }

    For the button properties, select the following:
    Button Type: OnClick
    OnClick Action : Execute Javascript function
    In the OnClick value field type in
    javascript:bookmarksite('site_title', 'site_URL')
    Replace "site_title" with the actual title of your site, f.e. 'Studio Navaldesign'.
    Replace 'site_URL' with the actual URL of your site (or that of the specific page), f.e. 'http://www.navaldesign.info'

    Please test the script in www.navaldesign.info/Tips/bookmarkbutton.html

    This script was found, as you can see, in Dynamic Drive at http://www.dynamicdrive.com

    Oh, it also works in preview.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  7. #7
    AWS's Avatar
    AWS
    AWS is offline First Lieutenant
    Join Date
    Jan 2006
    Posts
    172

    Default Re: How do you add an 'add to favourites' button?

    Thanks Naveldesign, I knew you would have the solution.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49