PDA

View Full Version : Book Mark ...Favorite Icon


brainfart
08-10-2002, 06:18 PM
I made a book mark code and I would like when someones surfs the website and book marks my site
and then when that person clicks on their Internet Favorites
A Icon of an image will appear on the left of the name of the link
Like now when I look in my favorites it shows all IE Icons

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 550</title>
<SCRIPT language="JavaScript1.2">
var bookmarkurl = "http://fjvollmer.com"
var bookmarktitle = document.title
function addfav(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}
</SCRIPT>
</head>

<body>

<A href="javascript:addfav()" title="Add this to your Favorites!">
Bookmark My Site</A>

</body>

</html>


Gary

duniyadnd
08-10-2002, 06:48 PM
what you probably looking for is what favicon is offering:

favicon.com (http://www.favicon.com)

What you have to do is that you have to make a 16x16 pixel image;

I forget the bit of the image, but any icon making software will do (in fact, you can download some from the link above)

save it, and put the following code within your <head> tags

<LINK REL="SHORTCUT ICON" HREF="http://www.your_host.com/your_file.ico">

Please note the ico (not jpeg or gif)

Hope it helps..

Later
Duniyadnd

alaios
08-12-2002, 05:07 PM
this only works for IE!!!!
Dou know where i can find something likee that but for all the browsers?

Roy Sinclair
08-12-2002, 07:20 PM
Originally posted by alaios
this only works for IE!!!!
Dou know where i can find something likee that but for all the browsers?

Considering it's a MS extension.... Netscape 6 and Mozilla 1.0 also implement this extension but there's no way you'll ever get this for an antique like Netscape 4.

redhead
08-12-2002, 08:34 PM
check out this tutorial from JSK on the favicon stuff....

http://www.javascriptkit.com/howto/customicon.shtml