Creating Icons in Address Bar

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Post Reply
patna_in
New php-forum User
New php-forum User
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am
Contact:

Creating Icons in Address Bar

Post by patna_in » Tue Nov 01, 2005 10:20 am

Hi, I'm creating a web site and I want to view a small bitmap/ICON in addressbar as many websites can provide. Plz tell me how can I do that ..... :help:

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Tue Nov 01, 2005 6:02 pm

make a file named favicon.ico and place it in the directory.

you can see google's http://google.com/favicon.ico

patna_in
New php-forum User
New php-forum User
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am
Contact:

Post by patna_in » Tue Nov 01, 2005 11:44 pm

Just placing it in the directory, that's it , nothing else :o

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Post by gesf » Wed Nov 02, 2005 2:13 am

You also need a link tag in the head of your html document... like this:

Code: Select all

<link rel="icon" href="images/yousite.ico" type="image/x-icon" />

patna_in
New php-forum User
New php-forum User
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am
Contact:

Post by patna_in » Wed Nov 02, 2005 7:21 am

Thanks gesf & redcircle for ur response. Its working in Firefox but not in IE. Can It be done in IE ???

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Post by gesf » Wed Nov 02, 2005 4:37 pm

Oh... Redcircle was right!
For IE should work by just placing the icon in the root folder, but this wont work for other browsers.
Try using the code above and also name your icon as: "favicon.ico".

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

Post by ruturajv » Wed Nov 02, 2005 8:29 pm

IE is buggy, won't necessarily show the icon

User avatar
gesf
Moderator
Moderator
Posts: 1717
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

Post by gesf » Mon Nov 07, 2005 7:44 pm

That's true... i see it rarely... if i ever saw that :?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests