www.webdeveloper.com
Results 1 to 4 of 4

Thread: Icons

  1. #1
    Join Date
    Dec 2002
    Location
    Michigan
    Posts
    1

    Question Icons

    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!
    Last edited by lar00357; 12-16-2002 at 10:39 AM.

  2. #2
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    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:
    Code:
    <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:
    Code:
    <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.

  3. #3
    Join Date
    Nov 2002
    Posts
    984
    Originally posted by Robert Wellock
    type="image/x-icon"


    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/assi...es/media-types

    Just curious
    // Stefan Huszics

  4. #4
    Join Date
    Nov 2002
    Location
    XYZZY - UK
    Posts
    1,760
    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 .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles