Creating Icons in Address Bar

Discussing Html . Code , Software , other

Moderators: egami, macek, gesf

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

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: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

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: 101
Joined: Sun Feb 06, 2005 10:54 am
Contact:

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: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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" />
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

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

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: 1716
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden
Contact:

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".
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

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

Wed Nov 02, 2005 8:29 pm

IE is buggy, won't necessarily show the icon

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

Mon Nov 07, 2005 7:44 pm

That's true... i see it rarely... if i ever saw that :?
Sincerely,
Gonçalo "gesf" Fontoura

gesf.org | sessionstart.com | urlms.com

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 0 guests