index.js

トップページ(indexやwbench)を見る者はほとんどいない。見たところでせいぜいチンピラネタだけである。
こういう状況では画面表示に凝ったところで意味はない。シンプルなもので十分である。
ただ、画面表示に凝ったものはどこか別のページでそれを使えばよいだけのことである。


function kn(dat)
{
    var dt=dat.split('*');
    var str=dt.join("/");
    var file=str+".html";
    window.open(file,"_self");
}

function knb(dat)
{
    var dt=dat.split('*');
    var str=dt.join("/");
    var file=str+".html";
    window.open(file);
}

function show(id)
{
    var obj=document.getElementById(id);
    obj.style.visibility='visible';
}

function hide(id)
{
    var obj=document.getElementById(id);
    obj.style.visibility='hidden';
}

//使い方 : 
//使い方 : 
function today()
{
    var now=new Date();
    var week=new Array("日","月","火","水","木","金","土");
    var mm = now.getMonth()+1; 
    var dd = now.getDate(); 
    var heisei=now.getFullYear()-1988;
    var strRet = now.getFullYear() + "/H" + heisei + "年" + mm + "月" + dd + "日(" + week[now.getDay()] + ")";
    return strRet;
}

//ローカルでの設定
function crypt(num)
{
    if(num=="") return;
    if(num==undefined) return;
    var field=new Array("venus/news","library/book/book","library/book/mz1/items",
        "library/card/card","library/card/cd1/items","library/pdic/pd1/items");
    var cmd=field[num] + ".html";
    window.open(cmd,"_self");
}


function crypt(num)
{
    var cmd= "error.html?crypt=" + num;
    window.open(cmd,"_self");
}

index.css



@charset "Shift_JIS";
body {color:#000000;font-family:MS ゴシック,Osaka;font-size:9pt;background-color:#ffffff;margin:0px;}
table {width:100%;border-width:0;border-spacing:1px;color:#000099;font-family:MS ゴシック,Osaka;
       font-size:9pt;background-color:#ffffff;line-height:140%;}
img {border:none;}
a:link {color:#0000ff;text-decoration:underline;}
a:visited {color:#0000ff;text-decoration:underline;}
a:hover {color:#ff0000;text-decoration:underline;}
td {padding:2px;}
td.w25 {width:25%;}
td.w50 {width:50%;}
td.w70 {width:70%;}
td.p80 {width:80px;}
td.p460 {width:460px;}
td.p180 {width:180px;}
td.p50 {width:50px;}
td.p140 {width:140px;}
.vt {vertical-align:top;text-align:left;}
.tc {text-align:center;}
.rt {text-align:right;}
.left {float:left;margin-right:0.5em;margin-bottom:0.2em;margin-top:0.1em;}
.clr {clear:both;}
.top_m {vertical-align:middle;text-align:center;background-color:#ffffe0;border:1px solid #ff9933;}
/* background-image:url(img/bgyellow.gif) */
.top_r {vertical-align:bottom;text-align:right;}
.rd {color:#ff0000;}
.bum {color:#336600;font-family:MS 明朝,Osaka;font-size:9pt;line-height:120%;}
.enc {font-family:Times New Roman;font-size:10pt;}
.eng {color:#990066;font-family:Times New Roman;font-size:10pt;}
.win {position:absolute;color:navy;font-family:MS 明朝,Osaka;font-size:1em;line-height:130%;
      background-color:#ffffdd;padding:0.3em;border:1px solid #ff9933;visibility:hidden;border-radius:0.5em;}
.enr {color:#ff0033;font-family:Times New Roman;}
.ref {position:absolute;width:180px;color:navy;font-family:MS 明朝,Osaka;font-size:9pt;line-height:130%;
      background-color:#ffffe0;padding:3px;border:1px solid #339933;visibility:hidden;}
.ref a:link {color:#0000ff;text-decoration:none;}
.ref a:visited {color:#0000ff;text-decoration:none;}
.ref a:hover {color:#ff0000;text-decoration:underline;}