HTML and Scripting Favicons

Discussion in 'Computers' started by Sebastien, Mar 8, 2005.

  1. Sebastien

    Sebastien Guest

    I've always been somewhat curious about those "Favicons". Exactly how do they work? Is anyone familiar with the code used to set them up? Thanks in advance!
     
    #1
  2. BakaMattSu

    BakaMattSu ^__^
    Staff Member

    Joined:
    Feb 16, 2001
    Messages:
    4,871
    Likes Received:
    122
    No code involved. Just drop a 16x16 icon file in the root directory of your website named "favicon.ico".
     
    #2
    1 person likes this.
  3. Jedimdo

    Jedimdo New Member

    Joined:
    Sep 8, 2004
    Messages:
    758
    Likes Received:
    73
    If you have placed the icon file in other directory than the current one or the root directory you have to place the following code:
    Code:
    <link rel="shortcut icon" href="/favicon.gif" type="image/x-icon">
    That way you can put the icon in each page of the website. Also, it seems that the icon does not have to be a .ico file, actually I've seen that .gif is also used.
     
    #3
  4. Zanza

    Zanza .Net-ing & PHP-ing~*
    Staff Member

    Joined:
    Jul 16, 2001
    Messages:
    4,652
    Likes Received:
    117
    What is a favicon?
     
    #4
  5. Suzu

    Suzu 7th Seat Shinigami

    Joined:
    Jul 19, 2001
    Messages:
    1,704
    Likes Received:
    52
    it's an icon that appears next to URL address, I think?
    I've placed a red box around the Boards.jp favicon in the Attachment :)!
     

    Attached Files:

    #5
    1 person likes this.
  6. Kaiyon

    Kaiyon Grim Reaper

    Joined:
    Jun 19, 2004
    Messages:
    920
    Likes Received:
    79
    Thats funny....that doesen't show in my current browser. Maybe I should upgrade.

    -Kaiyon
     
    #6
  7. Slydice

    Slydice ave, Lex, morituri te salutamus

    Joined:
    Apr 4, 2002
    Messages:
    281
    Likes Received:
    16
    #7
    1 person likes this.
  8. BakaMattSu

    BakaMattSu ^__^
    Staff Member

    Joined:
    Feb 16, 2001
    Messages:
    4,871
    Likes Received:
    122
    Yes, the favicon is a feature that not all browsers will support - an upgrade may be necessary.
     
    #8
  9. Kaiyon

    Kaiyon Grim Reaper

    Joined:
    Jun 19, 2004
    Messages:
    920
    Likes Received:
    79
    No wonder...thought that might be it! Im way overdue for one! Thanks for the advice.

    -Kaiyon
     
    #9

Share This Page