Archive for 2007年4月10日

QA3: ブラウザで表示されるアイコン(favicon.ico)の変更方法を教えてください。



【質問】

Sun Java System Web Server 7.0で

ブラウザで表示されるアイコン(favicon.ico)(御参考:下記イメージ)の

変更方法を教えてください。







【回答】

ブラウザで表示されるアイコン(favicon.ico)の変更方法は下記の手順に

従い変更してください。※:Sun Java System Web Server 6.1と同様です。



1.デフォルトで設定されているfaviconの無効化



仮想サーバの設定ファイル(/sun/webserver7/https-jse8-078/config/magnus.conf)

ファイルに下記の1行を追加してください。

※magnus.configを編集した後、pull-config,deploy-configを行ってください。



デフォルトのfavicon.icoの無効化:

magnus.conf


# Copyright 2006 Sun Microsystems, Inc. All rights reserved.

# Use is subject to license terms.

#



Init fn=”load-modules” shlib=”libj2eeplugin.so” shlib_flags=”(global|now)”

Init fn=”load-modules” shlib=”libdavplugin.so” funcs=”init-dav,ntrans-dav,pcheck-dav,service-dav” shlib_flags=”(global|now)”

Init fn=”init-dav” LateInit=”yes”

Favicon off




2.新しいアイコンの作成



16ピクセル×16ピクセルのiconファイルを作成してください。



例:アイコンの作成例(tera.ico)







3.HTMLファイルの修正



最後に、アイコンを表示させるHTMLのヘッダタグ中に下記の<LINK>タグを

記入してください。




<HTML>

<HEAD>

<LINK REL=”SHORTCUT ICON” HREF=”/tera.ico”>

……

……

</HEAD>





4.動作確認



最後に、再度ブラウザ経由で対象のHTMLコンテンツにアクセスしてください。







以上でアイコンの変更が確認できたかと思います。






参考:

http://www.webdevelopersjournal.com/articles/favicon.html


Favicon


2007年4月10日 at 4:48 午前


Java Champion & Evangelist

Translate

ご注意

このエントリは個人の見解であり、所属する会社の公式見解ではありません

カレンダー

2007年4月
 1
2345678
9101112131415
16171819202122
23242526272829
30  

カテゴリー

Twitter

  • RT @satyanadella: GitHub Copilot is the first at-scale developer tool, and today we're going further—bringing the power of Copilot past the… 7 hours ago
  • RT @seanjmullan: JDK 20 was released yesterday! Highlights of this release include further improvements that strengthen the default securit… 13 hours ago
  • RT @mkheck: Can’t get enough Spring content? Neither can I! That’s why I'm presenting "Build Better, Deploy Faster: Spring Boot + Spring C… 13 hours ago
  • RT @yuhattor: やばいのきました これからはエディターの外でも開発者の効率を爆上げします。まずはウェイトリスト登録! GitHub Copilot X👇 ●GPT4を採用 ●チャット/音声サポートでエディタでもChatGPTに似た体験 ●プルリクエストの文章自動生… 23 hours ago
  • RT @github: GitHub Copilot is already helping developers code faster in their IDEs. But what’s next? Our answer is GitHub Copilot X. It’s… 23 hours ago

clustermap

ブログ統計情報

  • 1,263,275 hits

RSSフィード

アーカイブ