<SCRIPT language='JavaScript1.2'>

 

/*

 

Cross browser cursor trailer script

 

By Brian Caputo (brian.caputo@dynamic-depot.com)

 

Visit Dynamic Depot @ www.dynamic-depot.com

 

*/

 

V5=document.getElementById;B=document.all;C=document.layers;D=document.all&&window.print;E=V5&&!document.all;c

C=new Array();

 

CHHThick=1;

 

CHVThick=1;

 

CHHColor="red";

 

CHVColor="teal";

 

if (document.layers)document.captureEvents(Event.MOUSEMOVE);

 

document.onmousemove=CHTrack;

 

if(document.all)document.body.onscroll=CHTrack;

 

createCell( "CHHorizon" , 0 , 0 , getWidth() , CHHThick ,"");

 

if (document.all)

 

clipCell("CHHorizon" , 0 , getWidth() , CHHThick , 0 );

 

createCell( "CHVertical" , 0 , 0 , CHVThick , getHeight() ,"");

 

setBG( "CHHorizon" , CHHColor );

 

setBG( "CHVertical" , CHVColor );

 

function CHTrack(e)

 

{

moveCell( "CHHorizon" , 0 , 4 + ( document.all ) ? event.clientY + document.body.scrollTop : e.pageY );

 

moveCell( "CHVertical" , 4 + ( document.all ) ? event.clientX + document.body.scrollLeft : e.pageX , 0 );

 

}

 

function createCell(N, Xp, Yp,W,H,Ht,O){if(B||C||D||E){

 

with(document){

 

if(C)

 

 

write("<layer name='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H);

 

else write("<div id='"+N+"' style='position:absolute; left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H);

 

write((C)?">":"'>");

 

write(Ht)}if(!O)closeCell();

 

cC[cC.length]=N

 

}

 

};

 

function moveCell(N,Xp,Yp){

 

D=getCell(N);

 

D.left=Xp;

 

D.top=Yp

 

};

 

function closeCell(){document.write((!C)?"</div>":"</layer>")};

 

function setBG(N,BG){

 

XX=getCell(N);

 

if(BG.indexOf(".")==-1)(!C)?XX.backgroundColor=BG:XX.bgColor=BG;

 

else(!C)?XX.backgroundImage="url('"+BG+"')":XX.background.src=BG;

 

};

 

function getCell(N){

 

if(C)XX=C[N];

 

if(document.getElementById)XX=document.getElementById(N).style;

 

if(B)XX=B[N].style;

 

 

 

if(XX==null&&C){

 

rr=C.length;

 

for (i=0;i<rr;i++)

 

{

 

XX=C[i].document.layers;

 

if(XX)XX=XX[N];

 

if(XX)return XX

 

}

 

 

}

 

return XX

 

};

 

function clipCell(N,T,R,Bo,L){

 

XX=getCell(N);

 

if(!C)

 

XX.clip="rect("+T+" "+R+" "+Bo+" "+L+")";

 

else{

 

with(XX.clip){

 

top=T;

 

 

right=R;

 

bottom=Bo;

 

left=L

 

}

 

}

 

};

 

function getWidth(N){

 

 

if (!N)return (B||D)?document.body.clientWidth:innerWidth;

 

else if (N=="page"||N=="document") return ((!C)?parseInt(document.body.offsetWidth):document.width)

 

XX=getObject2(N);

 

return((!C)?parseInt(XX.offsetWidth):XX.clip.width)

 

};

 

function getHeight(N){

 

if (!N)return (B||D)?document.body.clientHeight:innerHeight;

 

else if (N=="page"||N=="document") return ((!C)?parseInt(document.body.offsetHeight):document.height)

 

XX=getObject2(N);

 

return((!C)?parseInt(XX.offsetHeight):XX.clip.height)

 

};

 

</SCRIPT>