Results 1 to 9 of 9

Thread: Image on the URL Bar

  1. #1
    why wub woo Moderator
    Moderator
    Heald's Avatar
    Join Date
    Jun 2000
    Location
    cloudsdale, equestria
    Posts
    9,031

    Default Image on the URL Bar

    Yo.

    Some schoolfriends and I are making a new website. I was wondering what the code was for the image that appears in the URL bar on the left of the URL. For example, at the moment, the image I'm seeing there is the TPM logo (a black P and M in a white hexagon with a black outline). Can you help me please?
    Quote Originally Posted by Lady Vulpix
    You have turned my vacation thread into a discussion about Heald's balls. You should be ashamed of yourselves.




  2. #2
    Advanced Trainer
    Advanced Trainer

    Join Date
    Feb 2001
    Posts
    2,269

    Default Image on the URL Bar

    I've been wondering this as well.



    I think it could be in this line, i saw it in the sourcecode of imageshack.us

    <link rel="stylesheet" href="img/style-def.css" type="text/css">
    <LINK REL="SHORTCUT ICON" HREF="http://www.imageshack.us/favicon.ico">

    It seems to be above the rest of the source code (apart from the title), so it seems to make enough sense. But I'm kinda rough on html and everything else to do with web design, so if Kainashi or someone can help me verify this?

    Ask on the firefox forums as well, they might be able to help.
    For terrible Pokésex: 2148-4736-7219

  3. #3
    Administrator
    Administrator

    Join Date
    Apr 2001
    Posts
    19,363

    Default Image on the URL Bar

    That's called a favicon.

    Firstly you'll need to make a 16 pixel-square icon and save it as an .ico file (you could use software like IconEdit Pro to create the icon) - be sure to use less than 256 colours though.

    Upload your new .ico file as favicon.ico in the root directory of your web server (in binary mode if you're using FTP). Then add the following HTML in the <head> portion of your code:

    Code:
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    Where /favicon.ico is the path to your the favicon.ico file that you uploaded earlier. The icon will then be visible in the URL bar and in the Bookmarks list of all modern browsers.
    n/t

  4. #4
    Advanced Trainer
    Advanced Trainer

    Join Date
    Feb 2001
    Posts
    2,269

    Default Image on the URL Bar

    Yay, i was right about it ^__^
    For terrible Pokésex: 2148-4736-7219

  5. #5
    why wub woo Moderator
    Moderator
    Heald's Avatar
    Join Date
    Jun 2000
    Location
    cloudsdale, equestria
    Posts
    9,031

    Default Image on the URL Bar

    Ah! Worked like a charm! Thanks guys!
    Quote Originally Posted by Lady Vulpix
    You have turned my vacation thread into a discussion about Heald's balls. You should be ashamed of yourselves.




  6. #6
    Elite Trainer
    Elite Trainer

    Join Date
    Sep 2001
    Posts
    3,866

    Default Image on the URL Bar

    Just wondering, but why is it that sometimes the favicon of a site decides to transfer itself to another url too? I thought it might have something to do with a site with no favicon being accessed straight after being at one which does have one (hope I didn't make that sound too confusing) but given the sporadic cloning of them I wasn't so sure.

    For example, Tsuyoi's Lair has decided to claim TPMs favicon as its own (TPM still has the favicon, though). And my AC/CC/ASB page has also decided to use my LJ favicon. Just wondering if there was any reason for that.

  7. #7
    Moderator
    Moderator
    kainashi's Avatar
    Join Date
    Apr 2000
    Location
    Detroit, MI
    Posts
    21,260

    Default Image on the URL Bar

    Quote Originally Posted by Cheesey
    Just wondering, but why is it that sometimes the favicon of a site decides to transfer itself to another url too? I thought it might have something to do with a site with no favicon being accessed straight after being at one which does have one (hope I didn't make that sound too confusing) but given the sporadic cloning of them I wasn't so sure.

    For example, Tsuyoi's Lair has decided to claim TPMs favicon as its own (TPM still has the favicon, though). And my AC/CC/ASB page has also decided to use my LJ favicon. Just wondering if there was any reason for that.
    using firefox by any chance? if so, i think that's a small bug, if i remember correctly.

  8. #8
    Elite Trainer
    Elite Trainer

    Join Date
    Sep 2001
    Posts
    3,866

    Default Image on the URL Bar

    Yeah, I'm using Firefox. It's good to know it's just a bug, though, and not my computer screwing up. Does it just randomly copy favicons, then?

  9. #9

    Default Image on the URL Bar

    lol, happens to me all the time. Like, I'd go to TPM and then some site on my link bar thing has the TPM icon...

Posting Permissions

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