WebsiteGear Logo Log In
New User? Sign Up
About | Contact | FAQ
  Home Content Site Development Website Design Saturday, July 04, 2009 
POPULAR ARTICLES
Nav Subdomain Configuration - How To Setup A Sub Domain
Nav Website Layout - Tips & Tricks
Nav Round Robin DNS Load Balancing
Nav Domain Configuration - How To Setup A Domain Name
Nav Introduction To Server Load Balancing
Nav Server Load Balancing Methods
Nav Tips On Using SubDomain
Nav Breadcrumb Navigation
FEATURED NEWS | POPULAR NEWS
View More News View More News
SPONSORED LINKS
Print| Email| Save| Discuss| Feeds


Favicon - Branding A Favorites Link
Published: Monday, February 23, 2004


What is a favicon?
Favicon (also known as a shortcut icon or favorites icon) is a small Windows icon image file that is displayed next to a website shortcut or next to the website address in Internet Explorer 5 or later, Netscape 7 or later and Opera 7 or later versions. Favicon allows a website shortcut stored in favorites menu or links menu to standout from the rest of the websites on a user's computer by showing a logo next to the link.



How to create a favicon?
A favicon can be created from an existing image or it can be created from scratch using an icon editor. The image size of the favicon has to be exactly 16x16 pixels. The name of the image file has to end with .ico extension. The default name of the icon file is favicon.ico, however, the file can be named anything else as well.

Renaming an existing image file (.jpg or .gif) to favicon.ico will not serve as a windows icon file. The icon file has to be created using an icon editor or similar tool. However, an existing image file can be used as a starting point for creating the icon image. Among the few free icon editors available, PixelToolbox from AxiomX is one of the best. Start with a windows icon image of 16x16 pixel size. The tool editor has a lot of formatting choices. It can also import an existing image of bmp, jpg, png, tga or tif formats. The output is a windows icon with an extension of .ico.

Associate a favicon to a webpage
After creating the icon, you must associate it with your Web page. One way is to save the icon with the default file name of favicon.ico in the root directory of your domain — for example, http://www.websitegear.com/favicon.ico. Each time your web page is added to a user's favorites, the browser automatically searches for this file and places the icon next to all the favorites and quick links originating from your site.

If you choose to name the icon file other than the default or have multiple icons for different portions of your website, you can also associate the icon with your Web page by saving the icon with a file name other than favicon.ico and adding a line of HTML code in the head section of your Web document. The line of code includes a link tag that specifies the location and name of the file. You can include this link tag on a per-page basis.

<head>
<link rel="shortcut icon"
href="http://www.domain.com/iconfile.ico">
</head>


Add a favorites link to a webpage
The favicon appears on a user's browser when the user adds the page to the favorites list, adds the page to the links list, or even drags the icon in the address bar of Internet Explorer outside and releases it. In all these events, the browser displays the favicon if one is available instead of the default IE icon.

You can display a link on your web page to allow the user to add it to the favorites menu by clicking on the link. Use the code below.

<script language="JavaScript" type="text/javascript">
function addBookmark()
{
if (document.all) {
window.external.AddFavorite(location.href, document.title);
}else if (window.sidebar){
window.sidebar.addPanel(document.title, location.href, "");}
}
</script>
<a href="JavaScript:addBookmark();"
onclick="addBookmark();">Add to your favorites</a>

Print| Email| Save| Discuss| Feeds
RELATED ARTICLES
Nav Website Navigation Tips
An effective website navigation is very important for your website. Learn tips and tricks.
Nav Server Side Includes - Centralize Common Content
Use server side includes to centralize the common web site content.
Nav Planning For Your Website
Before you start building your website, planning for it is very essential. This articles discusses the two basic planning criteria - choosing the website topic and researching the competition.
Nav How To Sell A Website
If you have an existing website or domain name you no longer need and wish to sell, this article will explain the steps you need to take to ensure a quick, easy, profitable sale.
Nav Researching A Website
Profiling a website is required for competitive analysis, partnership prospects or simply knowing about its business. This article specifies some of the easiest and inexpensive techniques.
RELATED NEWS
News Post Nokia #1 Choice for Mobile Navigation in Europe and Russia
ESPOO, Finland , July 3 /PRNewswire-FirstCall/ -- According to the study conducted by Frost & Sullivan amongst European a...
News Post The Mobile Email 'Long-Tail' Explored in Free Webinar
KIRKLAND, Washington , July 3 /PRNewswire/ -- Embracing the 'long-tail' is the best way for mobile network operator...
News Post USC Annenberg Report Details Growing Philanthropic Support for Journalism
LOS ANGELES , July 3 , /PRNewswire-USNewswire/ -- Philanthropic foundations are taking unprecedented steps to address the cri...
News Post TROY Awarded 2009 Outstanding Partner Award From HP
COSTA MESA, Calif. , July 3 /PRNewswire-FirstCall/ -- TROY Group, Inc. (Pink Sheets: TROY), a worldwide leader in secure on-d...
News Post Capital Gold Group's 'The Gold Show' Podcast Featured in iTunes 'New and Notable'
LOS ANGELES , July 3 /PRNewswire/ -- Of the thousands of podcasts available on iTunes, "The Gold Show" radio progra...
Submit News | View More NewsView more news
RELATED CLASSIFIED ADS
Classified Ad For sale Brand New Sidekick LX for $130
T-Mobile Sidekick LX (T-Mobile) Item Specifics - Cell Phones Carrier: T-Mobile Technology: ...
Classified Ad Brand new Apple Macbook Air!!!!
The Apple Macbook Air is Brand new,sealed and it also comes with the original complete accessories i ...
Classified Ad we sell brand new product
Samsung HP-S4253 42"......................$ Samsung HP-S4273 42" ................... ...
Classified Ad Brand NEW in box: IBM Laptop Lenovo ThinkPad R61
City: Seattle State/Province: WAshington Price: $850 Item Description: ACCEPTING TRADES: CANON ...
Classified Ad Brand new Dell Inspiron 15 for sale, EMI available
Introducing the new Inspiron 15inch laptop that gives everyday features you need including Wi-Fi and ...
Post Free Ad | View More View more classifieds
RELATED FORUM POSTS
Forum Post Website Development-Website Design
I want to start website development & website design company in banglore. Any one tell me what I nee ...
Forum Post How do I promote my website?
hi, Please tell me or guide me how to promote my website in different classifieds? How do I make ...
Forum Post what website/software would be best for me?
Hello, my name is Kevin and I'm really new to website building. I have an idea that I want to creat ...
Forum Post How to find out what code is used in website?
Hi, How to find out what code (eg:.net/java/ etc..) used in a website... ...
Forum Post Website design in VA/DC area
Hello, Can anybody tell me of a good website design and development company in Virginia/DC Metro ...
Add New Post | View More View more forum posts


Copyright © 2003-2009 WebsiteGear Inc. All rights reserved.
About | Advertise | Submit Content | Privacy | Agreement | Contact