// This script was made by J-anime editor. // J-anime was made by N.Inoue norinoue@mbox.kyoto-inet.or.jp // Don't remove these lines. function boot(){ if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) == 4){ w = document.body.clientWidth; h = document.body.clientHeight; x = 2; y = h-122; vx = 9; vy = -4; ax = 0; ay = 0; cImg.width = 120; cImg.height = 120; as = 1; pc = 3; ps = 0; fl = 0; fc = 0; evc = new Array(4) for(i=0;i<4;i++){ evc[i] = 0; } pic = new Array(19) for(i=0;i<19;i++){ pic[i] = new Image; } pic[0].src = "mtb/img/m111.gif"; pic[1].src = "mtb/img/m112.gif"; pic[2].src = "mtb/img/m113.gif"; pic[3].src = "mtb/img/m121.gif"; pic[4].src = "mtb/img/m122.gif"; pic[5].src = "mtb/img/m123.gif"; pic[6].src = "mtb/img/m211.gif"; pic[7].src = "mtb/img/m212.gif"; pic[8].src = "mtb/img/m213.gif"; pic[9].src = "mtb/img/m214.gif"; pic[10].src = "mtb/img/m215.gif"; pic[11].src = "mtb/img/m221.gif"; pic[12].src = "mtb/img/m222.gif"; pic[13].src = "mtb/img/m223.gif"; pic[14].src = "mtb/img/m224.gif"; pic[15].src = "mtb/img/m225.gif"; pic[16].src = "mtb/img/m111.gif"; pic[17].src = "mtb/img/m112.gif"; pic[18].src = "mtb/img/m113.gif"; status = "J-anime 1998 N.Inoue norinoue@mbox.kyoto-inet.or.jp"; tID = setInterval("pwait()",1000); } } function pwait(){ status = "J-anime: pictures load in progress..."; for(i=0;i<19;i++) if(!pic[i].complete) return; status = ""; clearInterval(tID); cImg.src = pic[0].src; cImg.style.posLeft = x; cImg.style.posTop = y; cImg.style.display = ""; tID = setInterval("doframe()",100); } function doframe(){ fc++; if(x>=w-125){ vx = -9; vy = -4; pc = 3; ps = 3; } else if(y<=1){ vx = -10; vy = 6; pc = 5; ps = 6; } else if(x<=1){ vx = 10; vy = 6; pc = 5; ps = 11; } else if(y>=h-124){ vx = 9; vy = -4; pc = 3; ps = 16; } vx = vx + ax; vy = vy + ay; x = x + vx; y = y + vy; cImg.src = pic[Math.floor(fc/as) % pc + ps].src; cImg.style.posLeft = x; cImg.style.posTop = y; }