ブラウザ配慮がなんじゃいバージョン
IEでしか動作しません。
ToHEAD
<SCRIPT>
Flag=false;
winx=winy=my=mx=0;
document.onmousemove=Mmv;
function Mmv(e){
mx=event.x+document.body.scrollLeft;my=event.y+document.body.scrollTop
if(Flag)main();
}
function Init(){
winx=document.body.clientWidth;winy=document.body.clientHeight;
with(iLud.style){left=mx;height=winy}
with(iLlr.style){top=my;width=winx}
Flag=true
}
function main(){
iLud.style.left=mx;iLlr.style.top=my
}
</SCRIPT>
<STYLE>
.Style1{
font-size:1px;
position:absolute;
top:-1px;
left:-1px;
width:1px;
height:1px;
background-color: ;
}
</STYLE>
ToBODY
<BODY onLoad="Init() ">
<DIV CLASS=Style1 ID=iLud></DIV>
<DIV CLASS=Style1 ID=iLlr></DIV>
RESERVED
winx,winy,my,mx,Flag
ブラウザ配慮なバージョン
ToFILE
IE=document.all;
NN4=document.layers;
N6=document.getElementById&&!IE;
Col=' ';
Flag=false;
winx=winy=my=mx=0;
if(NN4)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=Mmv;
function Mmv(e){
if(IE){mx=event.x+document.body.scrollLeft;my=event.y+document.body.scrollTop}
if(NN4||N6){mx=e.pageX;my=e.pageY}
if(Flag)main();
}
function Init(){
if(IE){
winx=document.body.clientWidth;winy=document.body.clientHeight;
with(iLud.style){left=mx;height=winy}
with(iLlr.style){top=my;width=winx}
}
if(NN4||N6){winx=innerWidth;winy=innerHeight}
if(NN4){with(document){
with(iLud){bgColor=Col;clip.top=0;clip.right=1;clip.bottom=winy;clip.left=0}
with(iLlr){bgColor=Col;clip.top=0;clip.right=winx;clip.bottom=1;clip.left=0}
}}
if(N6){with(document){
with(getElementById('iLud').style){left=mx;height=winy}
with(getElementById('iLlr').style){top=my;width=winx}
}}
Flag=true
}
function main(){
if(IE){iLud.style.left=mx;iLud.style.top=document.body.scrollTop;iLlr.style.left=document.body.scrollLeft;iLlr.style.top=my}
if(NN4){with(document){iLud.moveTo(mx,pageYOffset);iLlr.moveTo(pageXOffset,my)}}
if(N6){with(document){
with(getElementById('iLud').style){left=mx;top=pageYOffset}
with(getElementById('iLlr').style){top=my;left=pageXOffset}
}}
}
ToHEAD
<STYLE TYPE="text/css"><!--
.Style1{
font-size:1px;
position:absolute;
top:-1px;
left:-1px;
width:1px;
height:1px;
background-color: ;
z-index:100
}
--></STYLE>
<SCRIPT SRC="c-d.js" LANGUAGE="JavaScript" TYPE="text/javascript"></SCRIPT>
ToBODY
<BODY onLoad="Init() ">
<DIV CLASS=Style1 ID=iLud></DIV>
<DIV CLASS=Style1 ID=iLlr></DIV>
RESERVED
IE,NN4,N6,Col,winx,winy,my,mx,Flag |