Log in

View Full Version : How'd they DO that?



insertnamehere
02-10-2006, 03:13 PM
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!

simonf
02-15-2006, 02:59 PM
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>

Twey
02-15-2006, 03:35 PM
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.