random web question

For general rambling.
Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

random web question

Post by Jonathan »

hey, you know how some sites have a little icon? what are those things called? how do you specify them? is it html or a server thing or what?

Peijen
Minion to the Exalted Pooh-Bah
Posts: 2790
Joined: Fri Jul 18, 2003 2:28 pm
Location: Irvine, CA

Post by Peijen »

You know I looked it up one time few years ago, but I don't remember anymore. It's similar to cookies, but it's an icon on the address bar/bookmarks instead.

bob
Poser
Posts: 344
Joined: Fri Jul 18, 2003 1:26 am
Location: p-town, pa
Contact:

Post by bob »

It's called the favicon. You can probably see in your server logs that there are a lot of requests for /favicon.ico, which likely doesn't exist. It's an icon file, in standard Windows .ico format, which contains various sized images. You should make sure that, at a minimum, it contains both 16x16 and 32x32 pixel versions of your icon. Ideally, you provide a wide range of sizes and color depths, but I've found that you'll hit nearly everybody in the world with just those two sizes in 24-bit RGB.

Check http://www.telegraphics.com.au/sw/#icoformat, where you can download (Windows, Mac, and GPL source) ICO File Format, which is a Photoshop plugin to handle single-image .ico files. And you can also download ICOBundle from the same page to combine those into multi-image icon files.

By default, a browser will look for /favicon.ico, in your web server's root. But you can have each page specify its own favicon with an html tag in the header, and the browser should use that icon for all pages beneath it in the directory hierarchy.

Code: Select all

<link rel="shortcut icon" href="/favicons/sack.ico">

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

ooh ooh ooh, does this mean that mohtalim is gonna get a favicon?!?!
Have you clicked today? Check status, then: People, Jobs or Roads

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

I just checked my bookmarks and my Mohtalim link shows the CNN icon. I've seen the bookmarks lose icons before, but never spontaneously borrow icons before now.

Anyway, Mohtalim needs its own icon, if only to differentiate itself from my CNN bookmark.
I feel like I just beat a kitten to death... with a bag of puppies.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Yes, Mohtalim has borrowed icons from other sites on my system, too.

Ever since I got this meta refresh up, I've been wanting to be able to tell if there were new posts without clicking on the tab. I thought maybe an icon would do the trick. Now I'm thinking just a simple change in title.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

But, hell, if somebody wants to create an icon, I'll slap one up there. Same rules as the banner image contest.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Dammit, someone post so I can see if my title-changing code worked.

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

Dwindlehop wrote:Dammit, someone post so I can see if my title-changing code worked.
done
I feel like I just beat a kitten to death... with a bag of puppies.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

No dice. Guess I'll poke it tomorrow.

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

at least a few pixels must be deticated to joesucks
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

George
Veteran Doodler
Posts: 1267
Joined: Sun Jul 18, 2004 12:26 am
Location: Arlington, VA

Post by George »

Since I wasn't around, what were the rules? I like Dave's idea; "Joe Sucks" should fit into 16x16 pixels with the proper font choice.
I feel like I just beat a kitten to death... with a bag of puppies.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Rules are I take the first icon sent to me that is SFW .

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

Image
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

okoko, i made one. the best. patriotic. without compromize. and promising a better future

Image
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

nice, but it's not in ico format and thus doesn't qualify as a valid submission.

Dave
Tenth Dan Procrastinator
Posts: 3483
Joined: Fri Jul 18, 2003 3:40 pm

Post by Dave »

lies, .ico is just .bmp renamed you big fat newb.

ok, just a tall newb

http://www.jonathan.pearce.name/dave/joe.ico
It takes 43 muscles to frown and 17 to smile, but it doesn't take any to just sit there with a dumb look on your face.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

you lie. or bob lies. the important thing here is that it's not my fault.

http://www.jonathan.pearce.name/favicon.ico

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

Actually, it does work on my root directory. Huh. That's... interesting.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

So it sorta works for me, now.

Post Reply