memo.xight.org

01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

2003-02-18 Tue

diff と patch の覚書

- diff

$ diff -urN test1.c test2.c > test1_to_2.patch

- patch

$ patch -p1 < test1_to_2.patch

カテゴリ: [UNIX]

CSS 切り替えスクリプト

- Summary
  スタイルシートを動的に切り替え可能なタブを追加

- 設置方法
  - style1.js を変更

cssfolder = "http://www.fromdfj.net/css/";
styleFiles = new Array("No_StyleSheet","simple","green","orenge");


  - HTML に埋め込む
<link rel="StyleSheet" href="http://www.example.com/css/normal.css" type="text/css" id="css1">
<script type="text/javascript" src="http://www.example.com/js/style1.js"></script>


  - HTML にタブを埋め込む
<script type="text/javascript" src="http://www.example.com/js/style2.js"></script>


- Reference
  from DFJ - CSS切り替えスクリプト
  http://www.fromdfj.net/html/changestyle.html
  スクリプトのダウンロード
  http://www.fromdfj.net/html/sample/style001.zip

カテゴリ: [HTML]
2003-02 / 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28

Color Reference

ChangeLogを検索
携帯電話からアクセス!

カテゴリ

最近の話題

リンク

過去ログ

Google

QR Code

Since
2002-11-28
Update
2008-02-20 21:23
Copyright © 2005 xight.org All Rights Reserved.