sakooL
<SCRIPT LANGUAGE="JavaScript">
<!--
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
function HOffset()
{
var window_width = window.innerWidth ? window.innerWidth :
(document.body.clientWidth ? document.body.clientWidth : 0);
return Math.max( 0, Math.floor( (window_width - 609) / 2 ) - 204 ).toString();
}
document.write( "<DIV ID='IDAlignPage' style='position:absolute;top:0px;left:" +
HOffset() + "px;'> " );
function DoReposition()
{
var o='IDAlignPage';
if(document.getElementById(o)){
var e=document.getElementById(o);
e.style.left=HOffset()+'px';
}else if(ie4up){
var e=eval('document.all.'+o);
e.style.left=HOffset()+'px';
}else if (ns4up){
var e=eval('document.'+o);
e.left=HOffset();}
}
window.onresize=DoReposition;
window.onload=DoReposition;
//-->
</SCRIPT>
------------------------------------------------------------------------
Jest sobie stronka www. Prosta stronka, jakies logo, trzy przyciski i to wszystko. Ale w zrodle znalazlem cos takiego. Za co ten skrypt odpowiada, jesli ktos wie to bede wdzieczny, bo mnie to nurtuje niesamowicie :)
<!--
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
function HOffset()
{
var window_width = window.innerWidth ? window.innerWidth :
(document.body.clientWidth ? document.body.clientWidth : 0);
return Math.max( 0, Math.floor( (window_width - 609) / 2 ) - 204 ).toString();
}
document.write( "<DIV ID='IDAlignPage' style='position:absolute;top:0px;left:" +
HOffset() + "px;'> " );
function DoReposition()
{
var o='IDAlignPage';
if(document.getElementById(o)){
var e=document.getElementById(o);
e.style.left=HOffset()+'px';
}else if(ie4up){
var e=eval('document.all.'+o);
e.style.left=HOffset()+'px';
}else if (ns4up){
var e=eval('document.'+o);
e.left=HOffset();}
}
window.onresize=DoReposition;
window.onload=DoReposition;
//-->
</SCRIPT>
------------------------------------------------------------------------
Jest sobie stronka www. Prosta stronka, jakies logo, trzy przyciski i to wszystko. Ale w zrodle znalazlem cos takiego. Za co ten skrypt odpowiada, jesli ktos wie to bede wdzieczny, bo mnie to nurtuje niesamowicie :)
