<html lang="en">
<head>
<script> var totalCount = 10; function ChangeIt() { window.setTimeout( "ChangeIt()", 2000); var num = Math.floor( Math.random() * totalCount ); document.body.background = 'images/'+num+'.png'; document.body.style.backgroundRepeat = "repeat"; } </script> </head> <body onload="ChangeIt();"></body> </html>
<script> var totalCount = 10; function ChangeIt() { window.setTimeout( "ChangeIt()", 2000); var num = Math.floor( Math.random() * totalCount ); document.body.background = 'images/'+num+'.png'; document.body.style.backgroundRepeat = "repeat"; } </script> </head> <body onload="ChangeIt();"></body> </html>
0 Comments
if you have any doubts , please let me know