Fx.e() : ファイル入出力関数
Fx.e = function(d1,d2,d3){
 if(typeof(d1) == "object") d1 = d1.join("");
 var a = new XMLHttpRequest();
 if(typeof(d2) == "boolean" && d2 == false){
  a.open(&...[続きを読む]
entry from

insertBox() : 飾り枠雛形関数
insertBox = function(title, info, body, underMenu){
 return (
  "\x3cdiv class='colum wp1'\x3e\x3cdiv class='wp1_wp_con'\x3e" +
   "\x3cdiv class='wp1_wp_top'...[続きを読む]
entry from

addStyle() : 外部CSSファイルの追加
addStyle = function(str){
 var obj = Fap(Ftag(document, "head")[0], Fce("link"));
 obj.rel = "stylesheet";
 obj.href = "http://www.nancyan.net/nancyan/css/" ...[続きを読む]
entry from

Fx.frameReload() : フレームのリロード
Fx.frameReload = function(frame){
 if(self != top && window.name.replace(/_.+$/,"") == "main"){
  top.frames[frame + "_" + Vis.def].location.reload(true);
 }
}...[続きを読む]
entry from

diaryEditor() : コメント編集の送信データ
diaryEditor = function(num,txt){
 return ["mode=update&oid=",Vis.oid,"&type=comments&id=",num,"&text=",enc(txt)];
};

■カレン
■eDisp
entry from

スタイルシートのクラスの仕様

#mainDisp (div)
#footerDisp (div)

#mainDisp #main (div) { width:30%; float:right; }

#mainDisp #menu (div) { margin-right:30%; }
 ※中の領域は必ず div に入れること。modeDispの仕様.menu_box {
  margin:1em...[続きを読む]
entry from

document_elements メインページの構成


#mainDisp

#footerDisp

#footerDisp {
  text-align:right; font-size:10pt; color:#808080;
  font-family:Verdana; clear:both; white-space:nowrap;
}
#footerDi...[続きを読む]
entry from

func-hack 初期関数の再定義
function checkFrame(){}
function eitherOwnerOrGuest(){}

■カレン
■eDisp
entry from

var error 変数宣言,エラー定義
var Fx = new Object();
var Re = new Object();
var Lo = new Object();
var Po = new Object();
var Vis = new Object();

Fx.loc = document.URL;
Fx.err = function(){};

■カレン
■eDisp
entry from

Po.dateByDay() : 日付関数
Po.dateByDay = function(date, type){
 var c = (new Date(date.replace(/(^\d{4})\s/, "$1/"))).getDay();
 var d = type ? ["日","月","火","水","木"...[続きを読む]
entry from

key(),key2() : 文字列取得関数
key = function(a,b){
var n, s = a, len = b.length;
 if((n = s.indexOf("[" + b + "]")) == -1) return "";
 s = s.substring(n + len + 2);
 if((n = s.indexOf("[/"...[続きを読む]
entry from

miho : 文字置換復元関数
encodeMiho = function(s){ return s.replace(/</g, "美").replace(/>/g,"穂"); };
decodeMiho = function(s){ return s.replace(/美/g, "<").replace(/穂/g, ">...[続きを読む]
entry from

Fx.dec 文字復元関数
Fx.dec = function(s){
 var e = "_";
 s = s.replace(/\[\[(.+?)\]\]/gm, function(e0,e1){
  return e1.replace(/\x3cbr \/>/g, "\/\/\/");
 });
 s = s.replace(/(\&)amp;/g, &quo...[続きを読む]
entry from

diaryForm() : 日記編集の送信データ
diaryForm = function(num,title,msg,open,cate,newcate){
 open = (open == undefined || open != 1 || !open) ? 0 : 1;
 if(cate == undefined || cate == "") cate = 1;
 if(newcate == undefined )...[続きを読む]
entry from

docReplace() : ドキュメント生成ルーチン
docReplace = function(txt){
 var doc = txt.replace(/\[op:(\d)\,(\w+)\,(\w+)\,([\w\,]+)\]/g, function(e0,e1,e2,e3,e4){
  return '<select id="' + e2 + '" onchange=eDispSelCh...[続きを読む]
entry from

Fx.cssText() : CSS組み込み関数
Fx.cssText = function(s){
 var str = s.replace(/\r?\n/g, " ");
 str = str.replace(/\/\*.*?\*\//g, "");
 str = str.replace(/[^\}]+\{\s*\}/g, "");
 var o = document.styl...[続きを読む]
entry from

置換関数群
Fx.t2n = function(s){ if(typeof(s) == "number") s = String(s); return s.replace(/\t/g, "\n") };
res = function(o){ return o.responseText.replace(/\r?\n/g, "\t") };
enc...[続きを読む]
entry from

汎用エイリアス関数群
Fid = function(o){ return typeof(o) == "object" ? o : document.getElementById(o); };
Fce = function(s){ return document.createElement(s); };
Fctn = function(s){ return document.createText...[続きを読む]
entry from

cVis() : Cookieの書き込み関数
cVis = function(s){
 if(Vis[s] != null){
  document.cookie =
  s.toUpperCase() + "=" + escape(Vis[s]) + "; path=/" +
  (s == "sid" ? "" : "home/yadokar...[続きを読む]
entry from

imgTrueSize() : 画像の実サイズ取得関数
imgTrueSize = function(img){
 var w = img.width, h = img.height;
 if(typeof img.naturalWidth !== "undefined"){
  w = img.naturalWidth;
  h = img.naturalHeight;
 } else if(typeof img.runti...[続きを読む]
entry from