Changing the icon in the address bar

M

Mark Rae

Hi group,

Apologies if this is the wrong group, but I thought I'd start here first...

A client has asked me how to change the icon immediately to the left of the
text in the browser address bar.

E.g., if you go here http://www.microsoft.com, the "standard" Internet icon
appears at the very beginning of the address bar, at least it does in IE6.

However, if you go here: http://www.caragan.co.uk, a different symbol (two
red triangles) appears. If you add the site to your favourites, the icon is
carried over to there too.

Does anyone know how to do this? I did a View Source on their homepage and
couldn't find anything obvious.

Is this done through a meta tag, JavaScript, or maybe a CSS setting...?

Any assistance gratefully received, as always.

Mark
 
N

Niraj Ranka

Hello,

This can be done by some placing the .ico file in the root directory.
Also you need to add one meta tag in the page... something like..
url-ico=filename or something.
 
J

Juan T. Llibre

That article is missing the image type.

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

That works, as long as the .ico file conforms to the .ico format but,
you're right, IE screws up -royally- favicon.ico displays.

Firefox and Opera display favicon.ico without problems.
 
J

Juan T. Llibre

More properly, it's not that "this doesn't work with IE",
but that "IE doesn't work with this".

;-)

Hopefully, IE7 will fix this.
 
M

Mark Rae

Juan T. Llibre said:
That article is missing the image type.

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />

That works, as long as the .ico file conforms to the .ico format but,
you're right, IE screws up -royally- favicon.ico displays.

Firefox and Opera display favicon.ico without problems.

Thanks for that.

Strange that http://www.caragan.co.uk seems to work OK in IE6, for me at
least...
 
J

Jevon

That's probably why it's working for you then. I've found (in IE) that the
icons only tend to show once you've added them to your favourites. Even then
though they have a tendancy to stop working, seemingly at random.

Jevon
 
H

Hans Kesting

That's probably why it's working for you then. I've found (in IE) that the
icons only tend to show once you've added them to your favourites. Even then
though they have a tendancy to stop working, seemingly at random.

Jevon

It seems that IE stores the icons in the browser cache - when you empty
it, the icon is gone. There is no built-in method to re-read the icons,
apart from deleting and re-adding the favorite.
There is a utility FavOrg that *can* re-read those icons.
http://www.softpedia.com/get/Internet/Bookmark-Managers/favorg.shtml

Hans Kesting
 
J

Juan T. Llibre

FavOrg works great...but you have to run it at regular intervals,
because IE mucks up the icons again at unpredictable times.

It's interesting to check out the included source-code for it, too.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top