Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML HTML Basics

Creating Icons in Address Bar

Discussing Html . Code , Software , other

Moderators: macek, egami, gesf

Creating Icons in Address Bar

Postby 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:
patna_in
New php-forum User
New php-forum User
 
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am

Postby 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
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby patna_in » Tue Nov 01, 2005 11:44 pm

Just placing it in the directory, that's it , nothing else :o
patna_in
New php-forum User
New php-forum User
 
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am

Postby 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" />
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby 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 ???
patna_in
New php-forum User
New php-forum User
 
Posts: 103
Joined: Sun Feb 06, 2005 10:54 am

Postby 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
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden

Postby ruturajv » Wed Nov 02, 2005 8:29 pm

IE is buggy, won't necessarily show the icon
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby gesf » Mon Nov 07, 2005 7:44 pm

That's true... i see it rarely... if i ever saw that :?
User avatar
gesf
Moderator
Moderator
 
Posts: 1718
Joined: Sun Dec 29, 2002 5:03 am
Location: Portugal / Sweden


Return to HTML Basics

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.