Welcome to TalkGraphics.com
Results 1 to 6 of 6
  1. #1

    Default Bookmark this site

    Hi All,
    I wanted to include the functionality to "Bookmark this Site", much like www.xara.com has at the bottom right. I could not find any reference to how to do this in the help file for Web Designer Pro. Is it "out-of-the-box" or needs coding? If the latter, would be nice to get some code... (I am a newbie)

  2. #2
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Bookmark this site

    add this code to the head of your page

    Code:
    <script type="text/javascript">
    
    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);
    }
    </script>
    add this javascript as a link to where you want people to click

    Code:
    <a href="javascript:bookmarksite('My Great Site', 'http://www.mygreatsite.com')">Bookmark this site!</a>
    If someone tried to make me dig my own grave I would say No.
    They're going to kill me anyway and I'd love to die the way I lived:
    Avoiding Manual Labour.

  3. #3

    Default Re: Bookmark this site

    Thank you kindly! Will give it a go!

    Another small request: how to provide a button link for "Back to top" at the bottom of pages? Does not seem to be covered in the links options?

  4. #4
    Join Date
    Dec 2000
    Location
    Hautes Pyrénées, France
    Posts
    5,083

    Default Re: Back to Top code

    put a placeholder image at the top of your document (even overlapping the grey space above the page) and in the html code body enter

    Code:
    <a name ="top">
    at the bottom of the page put your link or link image "Back to Top"
    give it this link (do not autocorrect)

    Code:
    #top
    test in browser
    If someone tried to make me dig my own grave I would say No.
    They're going to kill me anyway and I'd love to die the way I lived:
    Avoiding Manual Labour.

  5. #5
    Join Date
    Apr 2005
    Location
    Regional Victoria (Australia)
    Posts
    109

    Default Re: Bookmark this site

    Quote Originally Posted by Big Frank View Post
    add this code to the head of your page

    Code:
    <script type="text/javascript">
    
    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);
    }
    </script>
    add this javascript as a link to where you want people to click

    Code:
    <a href="javascript:bookmarksite('My Great Site', 'http://www.mygreatsite.com')">Bookmark this site!</a>
    Thanks. Did that but I notice that Google Chrome does not seem to work. Any thoughts please?
    terry

  6. #6

    Default Re: Bookmark this site

    Save the attached *cross-browser-bookmark-tweak.xar file.
    To use it, drag and drop the file into your page and position where the bookmark this page message is to appear.
    Works (and tested) in all browsers.

    (*For Web Designer 7 and 8 or Designer Pro 7 and 8 only)
    Attached Files Attached Files

 

 

Bookmarks

Posting Permissions

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