Announcement

Collapse
No announcement yet.

Bookmark Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bookmark Code

    Hi

    Any idea on what code to use and how to set up a 'Bookmark Us' link in my site (in a fragment) (V8.5)?

    I have tried various samples of code I have found on the internet which said to put code in the page header and then the h ref code in the fragment area or wherever I wanted the link. It looks set up okay (like a link) but in preview it won't bring up the 'add to favourites' pop up in explorer.

    I have searched the forum, but cannot find anything, although I would have thought this a regular question or am I the only thick tart here!

    Any help appreciated.

    Thanks
    Helen
    www.postapresent.co.uk
    Gifts by Post & Giftwrapping Service

    #2
    This is user browser dependant but this is what I use for IE:

    <a href="javascript:addToFavorites()" >Click to bookmark</a>

    If in a fragment just enclose as follows:

    !!<
    <a href="javascript:addToFavorites()" >Click to bookmark</a>
    >!!

    Comment


      #3
      Bookmark code

      Thanks for that, but still can't get it to work. Should I also be putting some code in the page header?
      Helen
      www.postapresent.co.uk
      Gifts by Post & Giftwrapping Service

      Comment


        #4
        Yes, sorry. Put this in the HEAD:

        Code:
        <script language="JavaScript" type="Text/Javascript">
        <!--//  Hide script from older browsers 
        var urlAddress = "http://www.xxxxxxxx.co.uk/acatalog/index.htm";
        var pageName = "xxxxxxxxxx";
        function addToFavorites()
        {
        if (window.external)
        {
        window.external.AddFavorite(urlAddress,pageName)
        }
        else
        { 
        alert("Sorry! Your browser doesn't support this function.");
        }
        }
        // -->
        </script>

        Comment


          #5
          http://www.addthis.com/

          Them peeps do a fashionable style button.
          Football Heaven

          For all kinds of football souvenirs and memorabilia.

          Comment


            #6
            Smashing it works at last! Easy when you know how eh.

            Many thanks. Over and out!

            Helen
            www.postapresent.co.uk
            Gifts by Post & Giftwrapping Service

            Comment

            Working...
            X