IEやFirefoxなどのブラウザーでアドレス欄およびお気に入り(ブックマーク)で表示される小さなアイコンを favicon という。Webサイトのルートフォルダーに保存して、ブラウザでアクセスしたときにそのWebのアイコンを表示させることができる。詳しい説明が http://www.rw-designer.com/favicon にある。
![]()
« 任意に選択したテキストの表示 | MAIN | Smartyテンプレートエンジン »
IEやFirefoxなどのブラウザーでアドレス欄およびお気に入り(ブックマーク)で表示される小さなアイコンを favicon という。Webサイトのルートフォルダーに保存して、ブラウザでアクセスしたときにそのWebのアイコンを表示させることができる。詳しい説明が http://www.rw-designer.com/favicon にある。
![]()
Comments (1)
Favicon is just an ordinary icon with 16x16 pixels images. For best compatibility, there should be an image with 16 colors or 256 colors. Browsers are also able to use the smooth 32bit image with alpha channel. Images with larger sizes are not neccessary and would only make the icon file larger (that means it will take longer to download), so leave them out.
You can create a favicon in any icon editor. Use either RealWorld Icon Editor, or pick up one of the other icon editors (there is a list of icon editors in our directory). If you want to create favicon without installing anything, use an online icon maker. It only supports 16 colors, but will do the job just fine. Once you have the icon, rename it to favicon.ico and upload it on your web server.
Assigning favicon to a page
To activate your favicon, you must modify the source of your web page. Add this line to the <head> section of your page:
<link rel="shortcut icon" href="/favicon.ico">
Posted by Dalma
|
November 5, 2006 1:39 PM
Posted on November 5, 2006 13:39