Results 1 to 4 of 4

Thread: Favicon script

  1. #1
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Favicon script

    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

  2. #2
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    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
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    [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.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  4. #4
    Join Date
    Jun 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Gee, thanks guys, really appreacite it

Bookmarks

Posting Permissions

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