//初期設定 var parDir,nowFile; function getNowFile() { var path = location.pathname; var pathArray = new Array(); if (location.protocol == "file:" && IE) pathArray = path.split("\\"); else pathArray = path.split("/"); var fileName = pathArray[pathArray.length-1]; var periodPos = fileName.indexOf("."); parDir = pathArray[pathArray.length-2]; nowFile = fileName.substring(0,periodPos); } getNowFile(); //オンロード var menuObj3,menuObj4,setObjTmr; function mainLoad(page) { clearTimeout(setObjTmr); setStatus(" < siteCTS / Top / ゆきこのおへや / PrettyJavaScript / " + nowPage + " > Ready."); //以下フレームオブジェクト用 if (!TFL || !GTS) return; top.document.title = document.title; if (document.all) { menuObj3 = parent.menu.document.all("dirLv3ID"); menuObj4 = parent.menu.document.all("dirLv4ID"); } else if (document.getElementById) { menuObj3 = parent.menu.document.getElementById("dirLv3ID"); menuObj4 = parent.menu.document.getElementById("dirLv4ID"); } if (menuObj3 && menuObj4) { if (nowFile == "pjs") { menuObj3.innerHTML = "/ PrettyJavaScript "; menuObj4.innerHTML = ""; } else { menuObj3.innerHTML = "/ PrettyJavaScript "; menuObj4.innerHTML = "/ " + nowPage + " "; } } else setObjTmr = setTimeout("mainLoad()",1000); } //ディレクトリバー function dirBarWri() { if (!TFL) { if (nowFile == "pjs") { var dirLv = 2; var dirLv3text = "/ PrettyJavaScript "; var dirLv4text = ""; } else { var dirLv = 3; var dirLv3text = "/ PrettyJavaScript "; var dirLv4text = "/ " + nowPage + " "; } var s = "
"+ "
"+ " < "+ "siteCTS / "+ "Top / "+ "ゆきこのおへや "+ dirLv3text + dirLv4text + "> "; wri(s); conselbox(dirLv,"ysr"); wri("
"); } } //フレームチェンジ function frmCng(linkThis) { setName("pjsSwapDir",parDir); setName("pjsSwapFile",nowFile); return true; } //リターン function backtoRtn(backPage) { if (location.local || location.hostname == "pine.zero.ad.jp") return true; var res = confirm("ローカルに保存した場合、インターネット側のページにジャンプします。\nいいですか?\n\n※わかる人は、_pjs.jsにある backtoRtn( )関数でこの制御を外せます。"); if (!res) return false; if (!TFL) { if (backPage == "top") backPage = "psc&anc=ysr"; else if (backPage == "ysr") backPage = "ysr&frm=0"; } top.location.href = siteCTSurl + "index.html?dir=" + backPage; return false; } //インデックスサーチ生成 function makeIndexSearch() { var indSchWin = window.open("","indSch","width=640,height=400,titlebar=1,scrollbars=1"); indSchWin.document.write( "siteCTSインデックスサーチ機能を使ってこのページにリンクを張る"+ "※これは暫定機能です。PrettyJavaScriptはまだ作成途中なので、かなりの確率でリンクが切れます。今は使わない方が無難。



"+ "リンク先のURLに以下のアドレスを指定してください。

"+ "http://pine.zero.ad.jp/cts/index.html?dir=pjs&parDir=" + parDir + "&file=" + nowFile + "

"+ "一番最後に &anc=アンカー名 を加えると、各ページへのアンカーも設定できます。
アンカー名は、各ページのソースを参照してください。

"+ "また、&frm=0 を加えると、ノンフレーム版になります。

"+ "ちゅうい:
範囲選択してコピーする時、一番最後に半角の空白が混じることがあります。混じると正常に動かないので、ご注意ください。
"+ "動作確認もちゃんとやってね。(うまくいかない時はお問い合わせあれ)



"+ "インデックスサーチとは:
siteCTSの入り口ページである index.html へページ情報(?以降の不可解な文字列)を渡すと、目的のページへ自動で飛ばしてくれる機能です。

"+ "利点:
http://pine.zero.ad.jp/cts/index.html がある限り、リンクが切れない。

"+ "弱点:
JavaScriptをOFFにされると(当然ながら)動かない。
IE3など、あんまり古いブラウザだと動作が保障されない。
将来的にはCGIの使用で解消されるかも。"+ ""); } //ページヘッダ function pageHeader() { if (!TFL) dirBarWri(); wri("
最終更新日:" + makeLud(0,1) + "   
"); if (!TFL) { wri(""+ "
"); orderWri(); wri(""+ "
  
"); } } //ページフッタ function pageFooter() { wri("

▲一番上へ


"); if (!TFL) { wri("
"); dirBarWri(); } } //目次リンク function orderWri() { if (nowFile == "pjsSub" || nowFile == "pjs") var headText = "pjs "+ headText + "basic/' target='_blank'>basic
"+ headText + "pjs.html' title='入り口'>PrettyJavaScript
"+ "
"+ "余裕編
 "+ headText + "basic/preface.html' title='はじめに'>前口上
 "+ headText + "basic/warmup.html' title='スクリプトを始める前に'>用意するもの
 "+ headText + "basic/format.html' title='絶対憶えないといけない「書きかた」'>基本的な書式
 "+ headText + "basic/var1.html' title='変数について'>変数の基本
 "+ headText + "basic/var2.html' title='もっと詳しい変数'>変数の詳細
 "+ headText + "basic/func.html' title='関数について'>関数と引数
 "+ headText + "basic/forbid.html' title='エラーの原因や迷惑千万な使い方など'>やっちゃいけないこと
"; s += "
以下未開通

".fontcolor("#ff0000"); s += "小難しい編
 "+ headText + "apply/.html' title=''>if else(もし〜ならば1)
 "+ headText + "apply/.html' title=''>switch(もし〜ならば2)
 "+ headText + "apply/.html' title=''>for(〜回くり返す)
 "+ headText + "apply/.html' title=''>for in(すべてにくり返す)
 "+ headText + "apply/.html' title=''>while(〜の間くり返す1)
 "+ headText + "apply/.html' title=''>do(〜の間くり返す2)
 "+ headText + "apply/.html' title=''>演算子(記号系)
 "+ headText + "apply/.html' title=''>配列
 "+ headText + "apply/.html' title=''>メソッド
 "+ headText + "apply/.html' title=''>プロパティ
 "+ headText + "apply/.html' title=''>親分オブジェクト
 "+ headText + "apply/.html' title=''>子分オブジェクト
 "+ headText + "apply/.html' title=''>イベント
 "+ headText + "apply/.html' title=''>ステートメント
"; s += "
"+ "いろいろ編
 "+ headText + "apply/.html' title=''>ブラウザを識別する
 "+ headText + "apply/.html' title=''>フォームと組み合わせる
 "+ headText + "apply/.html' title=''>ウィンドウを開く
 "+ headText + "apply/.html' title=''>リンクを張る
 "+ headText + "apply/.html' title=''>フレームを操る
 "+ headText + "apply/.html' title=''>タイマーを仕掛ける
 "+ headText + "apply/.html' title=''>画像を取りかえる
 "+ headText + "apply/.html' title=''>文字列を加工する
 "+ headText + "apply/.html' title=''>日付や時間をゲット
 "+ headText + "apply/.html' title=''>数字を計算する
"; s += "
"+ "頑張れ編
 "+ headText + "apply/.html' title=''>記述を簡潔にする
 "+ headText + "apply/.html' title=''>他ページへの引数のパス
 "+ headText + "apply/.html' title=''>JavaScriptとCSS
"; s += "


"+ "siteCTSの
    馬鹿スクリプト編

 "+ "
 "virus"のコアスクリプト
  "+ headText + "cts/brwMarking.html' title='ブラウザ識別装置'>brwMarking
  "+ headText + "cts/setAndGet.html' title='cookieとウィンドウネームとロケーションサーチの総合スクリプト'>set&get
  "+ headText + "cts/conlnk.html' title='中央リンク制御装置'>conlnk
  "+ headText + "cts/consel.html' title='コンセンツセレクトボックス生成装置'>consel
  "+ headText + "cts/setBASEFONT.html' title='ベースフォント設定装置'>setBASEFONT
  "+ headText + "cts/setBASEFONT.html' title='いろいろこまごま'>その他
 "+ headText + "cts/top.html' title=''>トップページ
 "+ headText + "cts/sui.html' title=''>"siteCTS"
 "+ headText + "cts/snd.html' title=''>Scrawl Notes
 "+ headText + "cts/psn.html' title=''>パチョ奮闘記
"+ " ゆきこのおへや
  "+ headText + "cts/pjs.html' title=''>PrettyJavaScript
  "+ headText + "cts/osp.html' title=''>オンラインソフトPreview
 "+ headText + "cts/wmp.html' title=''>俺紹介++
 "+ headText + "cts/scg.html' title=''>Scribble Garden
 "+ headText + "cts/bbs.html' title=''>けいじばん
 "+ headText + "cts/cha.html' title=''>Chains
 "+ headText + "cts/siteMap.html' title=''>サイトマップ
 "+ ""; document.write(s); }