View Full Version : Favicon script
Steven
06-27-2007, 07:06 AM
Hi there, I have a question; from http://tools.dynamicdrive.com/favicon/ it seems like the code to insert for favicon would be
<link rel="shortcut icon" href="/favicon.ico" />
but when I View Source on www.dynamicdrive.com the code used was <link rel="shortcut icon" href="favicon.ico" /> ie without the additional /
Can someone please help clarify which to use?
Also, favicon only works with IE 7 and not 6?
Thanks in advance
tech_support
06-27-2007, 08:49 AM
Also, favicon only works with IE 7 and not 6?
Only Internet Explorer 7 supports Favicons. IE6 only shows it when you add the URL to the favorites.
Hi there, I have a question; from http://tools.dynamicdrive.com/favicon/ it seems like the code to insert for favicon would be
<link rel="shortcut icon" href="/favicon.ico" />
but when I View Source on www.dynamicdrive.com the code used was <link rel="shortcut icon" href="favicon.ico" /> ie without the additional /
Can someone please help clarify which to use?
Either. But I like it without the /, cause it's shorter :p
djr33
06-27-2007, 08:50 AM
[EDIT: I was typing this, and tech_support posted during that time. Sorry for repeating, but this may still help some.]
IE 6 can take some time, for some strange reason, to accept the new favicon. Wait around 72 hours, and hope it's up. It's been said to take a while in some cases.
This is nothing specific about the favicon script, but just basic html paths:
File structure:
root:
--dir1:
----current.html
----dir3
--dir2
--favicon.ico
Assuming you are in "current", the following would be true:
"../dir2" would take you up one, then into "dir2", so you would be in the dir2 folder above.
"dir3" would take you into that folder.
"/dir2" would also take you to dir2, since the first slash takes you to the root.
So...
having favicon.ico in the main part of your site would mean that you could use either favicon.ico, or /favicon.ico, since the first is relative to your current location (assuming you are in the site root), and the second selects the root, then chooses favicon.ico in that location.
Steven
06-28-2007, 08:41 AM
Gee, thanks guys, really appreacite it
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.