Results 1 to 3 of 3

Thread: How'd they DO that?

  1. #1
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How'd they DO that?

    recently I have found out that through downloading I am automatically having things added to my favorites.

    For example, I have downloaded the latest yahoo messenger (well latest when I noticed this) and after install I went online and in my favorites folder was a couple links to yahoo things.

    I am assuming it was in the download package. But when ever I do installs I always do custom and read everything that is being installed and I never saw anything about adding to favorites.

    I would like to know how they did it, and more over, HOW I CAN DO IT!

    I would put this script or whatever, in a package of things downloaded from my site (nothing malicious, all agreed on by the user, and only on things from MY site)

    But for the life of me I can't figure it out!

    Any help? Thanks!

  2. #2
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi.. found this:

    Description:
    Use this "bookmark this page" script to add a bookmark to Internet Explorer's Favorites. Unlike most other bookmark scripts, this one automatically grabs the page title and url when creating the bookmark, so there is no need to set variables for these manually for every page.
    .
    Instructions:

    Copy and paste the code directly into the of your page where you wish the bookmark link to appear. Set the variables as shown in the script. To format the appearance of the text, wrap font tags around the whole script, like this:

    <font face="Arial" size="3">
    <b>
    <script>
    .
    .
    .
    </script>
    </b>
    </font>
    .
    The Code:
    <script language="JavaScript">
    <!--
    // ==============================================
    // Copyright 2003 by jsCode.com
    // Source: jsCode.com
    // Author: etLux
    // Free for all; but please leave in the header.
    // ==============================================

    // message to show in non-IE browsers
    var txt = "Bookmark Us!"
    // 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,who);" ');
    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>
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Internet Explorer stores bookmarks as .url files, doesn't it? All you have to do is examine one of those files, work out the format, and write your own in your software package.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •