検証・インラインフレーム

[diary:174939]
[beforeExec]
document.title = "";
Page = (Fx.loc.match(/uri=(.+)/) ? RegExp.$1 : "/cgi-bin/footprint.cgi?oid=botanic").replace(/http:\/\/www.eclat.cc/g,"");
User = Page.match(/(oid=|\/home\/)([0-9a-z\-]+)/) ? RegExp.$2 : "botanic";
isIndex = User.match(/\/home\/[a-z0-9\-]+\/?$/);
Fx.body = '<iframe id="userWin" name="main_' + User + '" width="100%" height="100%" frameborder="0" marginWidth="0" marginHeight="6" src="' + Page + '" onload="entry()" ></iframe>';

entry = function(){
var doc = window["main_" + User].document;
document.title = doc.title + " (改)";
var o = doc.getElementsByTagName("a"),a,b;
for(var i = 0; i < o.length; i++){
if(a = o[i].href){
o[i].href = "/home/yadokari/main.html?diary=174939&uri=" + a.replace(/http:\/\/www.eclat.cc/g,"");
o[i].target = "_top";
}
}
if(!document.all){
var a = doc.createElement("style"); a.type = "text/css";
doc.getElementsByTagName("head")[0].appendChild(a);
a.innerHTML = ".C1 { display:block; }\n li.C1 { display:list-item; }";
}
};

[/beforeExec]
[cssText]
body,html { height:100%; margin:0; padding:0; background:none; }
#footerDisp { display:none; }
#mainDisp { margin:0; padding:0; height:100%; }

[/cssText]
[body]
.
[/body]
[exec]

[/exec]
[/diary:174939]
</div>

■仕様書 2010 11/19 23:30 Wrote