View Full Version : Icon of a webpage.....
Niv Hamagniv
07-21-2008, 11:39 AM
Hi,
Background:
when u add a webpage to your favorites, some of the pages have icons.
I'm using this script :
onclick="window.external.AddFavorite('http://www.WEBSITE.com','The Best Ever...');
How do i add an Icon to my web page?
thanx
Niv
Niv Hamagniv
07-21-2008, 11:40 AM
Hi,
Background:
when u add a webpage to your favorites, some of the pages have icons.
I'm using this script :
onclick="window.external.AddFavorite('http://www.WEBSITE.com','The Best Ever...');
How do i add an Icon to my web page?
thanx
Niv
codeexploiter
07-21-2008, 11:47 AM
You need to add the icon image (Favicon) in your site so when the user views or adds the site url then that icon will be perpended before the URL/title.
Below I've mentioned some URLs through you can learn about adding a favicon to your website
http://www.digitalsurvivors.com/archives/000434.php
http://www.w3.org/2005/10/howto-favicon
http://en.wikipedia.org/wiki/Favicon
GarethMc
07-21-2008, 11:48 AM
You need to create an icon called favicon.ico...
The following instructions were taken off http://www.hypergurl.com/favicon.html:
To make your own favicon, first make a graphic 16x16 pixels in no more than 16 colors. Save it as a bmp.
You will then need a graphics program which can change a bmp into an icon. I recommend Irfanview.
It should only take a couple of minutes to download!
Use this program to change your bmp image into an icon. Name it favicon.ico then upload it to your server.
You then need to add the following code to the <head> tag of your html :
<link rel="SHORTCUT ICON" href="http://www.yoursite.com/favicon.ico">
codeexploiter
07-21-2008, 12:22 PM
http://tools.dynamicdrive.com/favicon/
You need to have the following in the head section of your page:
<link rel="shortcut icon" href="file.ico" />
or you can just put a file named favicon.ico into the root directory of your site, in which case most(?) browsers will detect it automatically.
TheJoshMan
07-21-2008, 10:10 PM
Another note to keep in your noggin is that your favicon more than likely won't show up right away. It can take up to a month (not likely) before it starts showing up when you and/or other people start viewing your site.
So don't think you did something wrong, just give it some time.
Niv Hamagniv
07-22-2008, 06:50 AM
you've been very helpfull.
niv
Medyman
07-22-2008, 03:33 PM
It can take up to a month (not likely) before it starts showing up when you and/or other people start viewing your site.
That's only with IE (especially pre-IE7), of course. Firefox should cache the icon right away. IE7 is much better with handling favicons than it's predecessors, but expect for it to take a while (probably closer to 14 days than a month).
FYI: Firefox 3 (not sure this was supported pre Fx3), now supports any image type for the favicon.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.