Aus OPwiki
(Unterschied zwischen Versionen)
|
|
Zeile 1: |
Zeile 1: |
| function BGscroll(i) | | function BGscroll(i) |
| { | | { |
- | if(!i)i=0; | + | if(!i){ i=0; doneOnloadHook = true;} |
| i=i+1; | | i=i+1; |
| if(i>1601) i=1; | | if(i>1601) i=1; |
Zeile 9: |
Zeile 9: |
| } | | } |
| | | |
- | BGscroll(0);
| + | addOnloadHook (BGscroll); |
Version vom 13:40, 7. Mär. 2009
function BGscroll(i)
{
if(!i){ i=0; doneOnloadHook = true;}
i=i+1;
if(i>1601) i=1;
var val=""+i+"px 0px"
document.body.style.backgroundPosition=val;
setTimeout("BGscroll("+i+")",100);
}
addOnloadHook (BGscroll);