Click to See Complete Forum and Search --> : Icons


lar00357
12-16-2002, 10:35 AM
I am trying to fgure out how to attach an Icon to our site, if anyone can clue me in as to how to go about this that would be great!

Robert Wellock
12-16-2002, 10:52 AM
Are you referring to an icon within the URL address bar…

Basically you create an *.ico file 16x16 pixels in dimension with 4-bit colour, and add the following:
<link rel="shortcut icon" href="http://www.yoursite.com/youricon.ico" type="image/x-icon" />
If you are using a technically superior browser like Mozilla you also have the option of using:
<link rel="icon" href="http://www.yoursite.com/youricon.png" type="image/png">

Micro$oft has bugs regarding displaying the icon when cache is cleared.

Stefan
12-16-2002, 12:35 PM
Originally posted by Robert Wellock
type="image/x-icon"

:confused:

Where did you pick that up?

I can't find that as a valid mimetype in the official list.
ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types

Just curious :)

Robert Wellock
12-17-2002, 04:52 AM
I picked that up from the 'Frobozz Magic Mime Type Company'. No actually I cannot remember, but it would be the correct mime value for a Micro$oft icon file, but then again I'd use the Mozilla methodology.

Although I've never found the CORRECT mime for PHP with regards to XHTML and scripting, like with "text/javascript", "application/x-php" doesn't quite seem right, perhaps it is though :confused:.