5,781,349 members and growing! (75 online)
Email Password   helpLost your password?
Web Development » HTML / CSS » General     Intermediate License: The Code Project Open License (CPOL)

Customising your website's Icon in IE5

By Chris Maunder

Replace the boring IE logo in your readers browser with an icon customised for your site.
HTMLIE, IE 6.0, IE 5.5, Dev

Posted: 27 Nov 2000
Updated: 27 Nov 2000
Views: 130,491
Bookmarked: 65 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
59 votes for this Article.
Popularity: 8.12 Rating: 4.58 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
3 votes, 20.0%
3
2 votes, 13.3%
4
10 votes, 66.7%
5

Introduction

It's always nice to differentiate your site from others, and there a couple of places in particular that allow you to make your site stand out from the crowd.

Dragging a URL from the address bar of Internet Explorer onto your desktop creates a shortcut with the familiar blue and white IE shortcut icon:

Adding a site to your favorites brings a similar result.

If your readers are viewing your site through Internet Explorer 5.0 or above then you can make your site stand out for them by simply creating a 16 x 16 pixel bitmap called favicon.ico (using the Visual Studio icon editor, for example) and placing this icon in your web site's root directory.

As soon as the user adds the site to their favorites then IE will scan that website for the favicon.ico and use it instead of the standard IE icon for desktop shortcuts, the address bar, the 'Favorites' drop down menu in IE, the shortcut bar in the taskbar (Win 98+ and Windows 2000), and in the Office Shortcut bar.

You can associate a different icon with a specific page by adding a LINK statement to the HEAD of your page:

<HEAD>
  <LINK REL="SHORTCUT ICON" HREF="http://www.mydomain.com/myicon.ico">
  <TITLE>My Title</TITLE>
</HEAD>

Click here to see the icon for Code Project.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Chris Maunder


Sitebuilder, Editor, Staff, Admin
Chris is the Co-founder, Administrator, Architect, Chief Editor and Shameless Hack who wrote and runs The Code Project. He's been programming since 1988 while pretending to be, in various guises, an astrophysicist, mathematician, physicist, hydrologist, geomorphologist, defence intelligence researcher and then, when all that got a bit rough on the nerves, a web developer. He is a Microsoft Visual C++ MVP both globally and for Canada locally.

His programming experience includes C/C++, C#, SQL, MFC, ASP, ASP.NET, and far, far too much FORTRAN. He has worked on PocketPCs, AIX mainframes, Sun workstations, and a CRAY YMP C90 behemoth but finds notebooks take up less desk space.

He dodges, he weaves, and he never gets enough sleep. He is kind to small animals.

Chris was born and bred in Australia but splits his time between Toronto and Melbourne, depending on the weather. For relaxation he is into road cycling, snowboarding, rock climbing, and storm chasing.
Occupation: Founder
Company: The Code Project
Location: Canada Canada

Other popular HTML / CSS articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 19 of 19 (Total in Forum: 19) (Refresh)FirstPrevNext
GeneralFavicon.ico not working for asp.net page?!memberjgilbert10:28 5 May '05  
GeneralRe: Favicon.ico not working for asp.net page?!memberMaxim Langman4:58 1 Jul '07  
GeneralRe: Favicon.ico not working for asp.net page?!membertbetz6:43 18 Oct '07  
GeneralOther browsersmemberyorgato15:46 3 May '05  
GeneralAuto RefreshsussAnonymous11:59 19 Mar '05  
General.ICOsuss[FHD]Grey_fox1:44 18 Sep '04  
GeneralHELP ME!!!sussAnonymous19:15 8 Apr '04  
Generalsimple but usefulsussAnonymous1:13 15 Dec '03  
GeneralWrapper for Refresh ButtonmemberAnonymous14:39 6 Jun '02  
GeneralRe: Wrapper for Refresh ButtonsussAnonymous5:05 9 Mar '03  
GeneralRe: Wrapper for Refresh Buttonsussmonicb20031:14 4 Jul '05  
Generalhelp!memberAnonymous18:20 14 Feb '02  
GeneralRe: help!memberThomas Freudenberg0:46 18 Feb '02  
GeneralCool!!!memberNish [BusterBoy]22:01 11 Jan '02  
GeneralBlehmemberShaitu8:40 7 Oct '01  
GeneralIts differentmemberRaghu Ram23:20 25 Jun '01  
Generalthis websitememberAnonymous5:02 15 May '01  
GeneralGreat tip!memberAnonymous13:34 21 Apr '01  
General32x32 for shortcuts(large icons view)memberSteve Dunn0:39 5 Dec '00  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 27 Nov 2000
Editor: Chris Maunder
Copyright 2000 by Chris Maunder
Everything else Copyright © CodeProject, 1999-2009
Java | Advertise on the Code Project