Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/navi.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 44

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 51

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side2.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 52

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/side1.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 53

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include() [function.include]: Unable to access /home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include(/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php) [function.include]: failed to open stream: No such file or directory in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

Warning: include() [function.include]: Failed opening '/home/sites/lolipop.jp/users/chu.jp-mokyu/web/blog/pc/togaq.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 54

TopMTカスタマイズ

« エントリー時に絵文字表示 | メイン | 今まで行ったカスタマイズ関連UR... »

≪エントリー時に絵文字表示 | MTカスタマイズ | 今まで行ったカスタマイズ関連...≫

スタイルシートを切り替える

日記のブログを性懲りも無く立ち上げました…

そちらで使ったスクリプトが、小粋空間様で見かけた
スタイルシート切り替え
スタイルシート切り替え(プルダウンメニュー版)

どうしても見て欲しいフォントがあったもので、とても感激しました。

以下いつものように、覚え書♪


1.まず、表示させたいスタイルシートを用意(私の場合はフォントを変えたものを2種類)
仮に 通常のものを original.css  変更させたいものを henkou.css とします。

2.styleswitcher.js のダウンロード・アップロード
A List ApartAlternative Style: Working With Alternate Style Sheets
記事の下の方の「download」または「Download styleswitcher.js」というリンクから、ダウンロード。
そしてダウンロードした styleswitcher.js をそのままローカル・サイト・パス(index.html と同じディレクトリ)にアップロード。

3.変更したいテンプレートへ以下を記載
<head >~<head />内
<link rel="stylesheet" href="<$MTBlogURL$>styles-site.css" type="text/css" />

<link rel="alternate stylesheet" href="<$MTBlogURL$>original.css" type="text/css" title="original" />
<link rel="alternate stylesheet" href="<$MTBlogURL$>henkou.css" type="text/css" title="henkou" />
に変更

<script type="text/javascript" src="<$MTBlogURL$>styleswitcher.js"></script>を追記


4.サイドバーなど、好きなところへ以下を追加
<div class="module-style module">
<h2 class="module-header">Stylesheet</h2>
<div class="module-content">
<form id="stylesheet">
<select name="select" onchange="setActiveStyleSheet(this.form.select.value);">
<option value="original">original</option>
<option value="henkou">henkou</option>
</select>
</form>
</div>
</div>

<script type="text/javascript">
<!--
var style = readCookie('style');
var nodes = document.getElementById('stylesheet').getElementsByTagName("option");
for (var i = 0; i < nodes.length; i++) {
    if(nodes[i].value == style){
        nodes[i].selected = true;
    }
}
//-->
</script>

::注意:: 太字の所は同じ名前に!

私のページはフォント設定しなければ見る事が出来ないのですが
いろいろできそうですよねぇ003.gif

コメントを投稿

よろしければ、コメントを。。。
(重複投稿は、削除させて頂きますのでご連絡は不要です♪)


Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 221

Warning: include(http://mokyu.chu.jp/blog/pc/footer.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 221

Warning: include() [function.include]: Failed opening 'http://mokyu.chu.jp/blog/pc/footer.php' for inclusion (include_path='.:/usr/local/php/5.2/lib/php') in /home/users/1/chu.jp-mokyu/web/blog/pc/archives/2005/entry_111210.php on line 221