Posted by The Eclectic Electric on 09/25/06 17:37
"VS" <vs@nospam.blueyonder.invalid> wrote in message
news:wUARg.44421$wg.31542@fe1.news.blueyonder.co.uk...
> Just the following 2 lines in the header generation section of my PHP
> based site seem to work in both IE 6 and Firefox for me:
>
> echo "<link REL=\"shortcut icon\" HREF=\"/favicon.ico\"
> TYPE=\"image/x-icon\">\n";
> echo "<link REL=\"icon\" HREF=\"/favicon.gif\" TYPE=\"image/gif\">\n";
>
That was my initial approach. I assumed that IE6 would pick up the first
link and ignore the second one and that Firefox would do the opposite.
What appears to happen, on my installation at least is this:
IE6 - looks for favicon.ico in the root directory of the site and uses that
whatever you write in your link
Opera 8.5 - looks for favicon.ico in the root directory; if a link rel
points elsewhere it displays nothing in the favicon area
Firefox - displays whatever you throw at it as per spec
A good site for testing this is http://www.radiotimes.com/. Their site
contains a LINK REL to an animated gif on the most pages and they also have
a favicon.ico in the root directory. The individual programme pages don't
contain this LINK REL, so default to favicon.ico, e.g.
http://www.radiotimes.com/ListingsServlet?event=10&channelId=92&programmeId=49013397&jspLocation=/jsp/prog_details.jsp
+e
[Back to original message]
|