How do I get a little icon to appear in favourites?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Darkhorse
Forum Newbie
Posts: 4
Joined: Sat Dec 13, 2003 7:13 am

How do I get a little icon to appear in favourites?

Post by Darkhorse »

how do I make a little logo appear in the favourites when visitors want to save my site? This site has it and I was wondering how you do it?
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

just place
Favicon.ico (your icon name should be this)
in directory
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

I also add

Code: Select all

<link rel="SHORTCUT ICON" href="favicon.ico" />
into the head section
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

It's better to use..

Code: Select all

<head>

<link href="favicon.ico" type="image/x-icon" rel="icon" />
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon" />

</head>
..for browser compatibility.
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

Oh, and by the way to will need to try and hunt down a program that will let you create and save .ICO files. You can't just rename a .gif or .jpeg to .ico because it won't work.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

dont forget it needs to be 16x16 :wink:
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to client-side forum - not a PHP question.

Mac
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Gen-ik wrote:Oh, and by the way to will need to try and hunt down a program that will let you create and save .ICO files. You can't just rename a .gif or .jpeg to .ico because it won't work.
I found irfanView very useful for that purpose: http://www.irfanview.com/

Fantastically easy to change graphic-formats.

It doesn't handle transparency, though - if I recall correctly, I downloaded a demo of a commercial program called something like "MicroAngelo" or the like to do that.
User avatar
vigge89
Forum Regular
Posts: 875
Joined: Wed Jul 30, 2003 3:29 am
Location: Sweden

Post by vigge89 »

else, use IconWorkshop (from Axialis)
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

I like a programme called bmp2ico (I forget the address, search for it if you want). You can create a graphic in whichever programme you like/are used to, then save it as a bmp and convert.
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

There's also a free plug-in for Photoshop which lets you save .ico files. I use it myself and it's very handy.

For Windows
http://www.telegraphics.com.au/sw/dl.ph ... -1.6b2.zip

For Power Mac
http://www.telegraphics.com.au/sw/dl.ph ... -1.6b2.sit

Don't forget to create a 16x16 image with no more than 256 colours in it.

The best way is to create a gif file first (they can't have more than 256 colours) save it.. then load it back into Photoshop and save it out as a .ico file. Nice 'n easy.
Post Reply