Avatar billede fredand Forsker
20. april 2010 - 19:57 Der er 2 kommentarer og
1 løsning

How to create a url-icon in the browser?

Hello!

I got a task where I need to create the html-code to show an icon in the adress-field in the browser.

The browser we use is IE 6 (yes old I know).

I have tried
<link REL="SHORTCUT ICON" href="/images/a_icon.ico">

...and also just put a favicon.ico in the web-root.

How ever this works fine with fire fox, but the browser target for me is IE 6.

In IE 6 I just get the IE-icon both on a shortcut and in the adress-field.

How ever I'm pretty sure that IE 6 support this beacuse when I access my localhost jboss I get the jboss icon in the adress-feild and if I save it as a shortcut.

I just guess I do something wrong.

If any got any ideas please let me know!

Best regards
Fredrik
Avatar billede The_Buzz Novice
20. april 2010 - 20:43 #1
I think it will only work after adding an bookmark - press CTRL+D and add it to your favorites and then see if it shows an icon - possible after an restart of the browser.

Optional try to link to the icon like:
<link REL="SHORTCUT ICON" HREF="http://lottostat.dk/favicon.ico">

and name it favicon.ico - I beleive the native browsers only accept an file named favicon.ico in the root part of your webserver. - ie: www.yourdomain.com/favicon.ico
Avatar billede The_Buzz Novice
20. april 2010 - 20:44 #2
This thread might also reveal some info for you:
http://bytes.com/topic/html-css/answers/155056-ie-6-favicons
Avatar billede trissebasse Nybegynder
21. april 2010 - 16:46 #3
Hi

No, you aren´t doing anything wrong.

... Your browser is just remembering the "old" icon.
When somebody, who has never visited the site before, visits it your icon will be shown.

So... No worries ;-)
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester