1 |
dpavlin |
1.1 |
// 1k DHTML API |
2 |
|
|
d=document;l=(d.layers)?1:0;op=navigator.userAgent.toLowerCase().indexOf('opera')!=-1; |
3 |
|
|
function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);} |
4 |
|
|
function sE(e){if(l)e.visibility='show';else e.style.visibility='visible';} |
5 |
|
|
function hE(e){if(l)e.visibility='hide';else e.style.visibility='hidden';} |
6 |
|
|
function sZ(e,z){if(l)e.zIndex=z;else e.style.zIndex=z;} |
7 |
|
|
function sX(e,x){if(l)e.left=x;else if(op)e.style.pixelLeft=x;else e.style.left=x;} |
8 |
|
|
function sY(e,y){if(l)e.top=y;else if(op)e.style.pixelTop=y;else e.style.top=y;} |
9 |
|
|
function sW(e,w){if(l)e.clip.width=w;else if(op)e.style.pixelWidth=w;else e.style.width=w;} |
10 |
|
|
function sH(e,h){if(l)e.clip.height=h;else if(op)e.style.pixelHeight=h;else e.style.height=h;} |
11 |
|
|
function sC(e,t,r,b,x){if(l){X=e.clip;X.top=t;X.right=r;X.bottom=b;X.left=x;}else e.style.clip='rect('+t+' '+r+' '+b+' '+x+')';} |
12 |
|
|
function wH(e,h){if(l){Y=e.document;Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;} |