<script type="text/javascript"><!--
bgimg=new Array("01.jpg","02.jpg"); //入れ替える画像を増やすことも出来ます
chsec=3000; //入れ替えスピード
bgtop=20; //表示位置高さ0〜100(%)
bgleft=50; //表示位置横 0〜100(%)
tile=1; //画像を敷き詰めるときは0
//----------------------------------------------------
document.write("<style type=text/css><!--BODY{");
if(tile)document.write("background-repeat:no-repeat;");
document.write("background-position:"+bgleft+"% "+bgtop+"%;background-attachment:fixed;}--></style>");
for(i=0;i<bgimg.length;i++){(new Image()).src=bgimg[i];}
document.body.background=bgimg[0];imgto=1;
function Bgchenge(){
document.body.background=bgimg[imgto];
imgto++;imgto%=bgimg.length;
}
setInterval('Bgchenge()',chsec);/* himajin.moo.jp */
// --></script>