<html>
<head>
<title>练习九</title>
<script LANGUAGE="JavaScript">
var brOK=false;
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;
function checkbrOK()
{if(aname.indexOf("Internet Explorer")!=-1)
{if(aver>=4) brOK=navigator.javaEnabled();
mie=true;
}
if(aname.indexOf("Netscape")!=-1)
{if(aver>=4) brOK=navigator.javaEnabled();}
}
var vmin=2;
var vmax=5;
var vr=0.02;
var timer1;
function Chip(chipname,width,height)
{this.named=chipname;
this.vx=vmin+vmax*Math.random();
this.vy=vmin+vmax*Math.random();
this.w=width;
this.h=height;
this.xx=0;
this.yy=0;
this.timer1=null;
}
function movechip(chipname)
{
if(brOK)
{eval("chip="+chipname);
if(!mie)
{pageX=window.pageXOffset;
pageW=window.innerWidth;
pageY=window.pageYOffset;
pageH=window.innerHeight;
}
else
{pageX=window.document.body.scrollLeft;
pageW=window.document.body.offsetWidth-22;
pageY=window.document.body.scrollTop;
pageH=window.document.body.offsetHeight-34;
}
chip.xx=chip.xx+chip.vx;
chip.yy=chip.yy+chip.vy;
chip.vx+=vr*(Math.random()-0.5);
chip.vy+=vr*(Math.random()-0.5);
if(chip.vx>(vmax+vmin)) chip.vx=(vmax+vmin)*2-chip.vx;
if(chip.vx<(-vmax-vmin)) chip.vx=(-vmax-vmin)*2-chip.vx;
if(chip.vy>(vmax+vmin)) chip.vy=(vmax+vmin)*2-chip.vy;
if(chip.vy<(-vmax-vmin)) chip.vy=(-vmax-vmin)*2-chip.vy;
if(chip.xx<=pageX)
{chip.xx=pageX;
chip.vx=vmin+vmax*Math.random();
}
if(chip.xx>=pageX+pageW-chip.w)
{chip.xx=pageX+pageW-chip.w;
chip.vx=-vmin-vmax*Math.random();
}
if(chip.yy<=pageY)
{chip.yy=pageY;
chip.vy=vmin+vmax*Math.random();
}
if(chip.yy>=pageY+pageH-chip.h)
{chip.yy=pageY+pageH-chip.h;
chip.vy=-vmin-vmax*Math.random();
}
if(!mie)
{eval('document.'+chip.named+'.top ='+chip.yy);
eval('document.'+chip.named+'.left='+chip.xx);
}
else
{eval('document.all.'+chip.named+'.style.pixelLeft='+chip.xx);
eval('document.all.'+chip.named+'.style.pixelTop ='+chip.yy);
}
chip.timer1=setTimeout("movechip('"+chip.named+"')",100);
}
}
function hide(chipname){
if(brOK){
eval("chip="+chipname);
if(!mie)
eval('document.'+chip.named+'.visibility ='+"'hide'");
else
eval('document.all.'+chip.named+'.style.visibility ='+"'hidden'");
}
}
function stopme(chipname)
{if(brOK)
{//alert(chipname)
eval("chip="+chipname);
if(chip.timer1!=null)
{clearTimeout(chip.timer1)}
}
}
var chip1;
function pagestart()
{checkbrOK();
chip1=new Chip("chip1",117,75);
if(brOK)
{ movechip("chip1");
}
}
//if(brOK) {stopme('chip1');}
</script>
<DIV id=chip1
style="height: 105; position: absolute; visibility: visible; width: 140; left: 180; top: 157">
<TABLE border=0 cellPadding=4 cellSpacing=0 class=bd width=60>
<TBODY>
<TR>
<TD align=middle class=bg2><A class=prs1
href="http://blueant1006.myetang.com" target=_blank>
<IMG border=0 class=bd src="D:\资料\娱乐\0006.jpg" width="150" height="150"></A></TD></TR></TBODY></TABLE></DIV>
<SCRIPT event=onload for=window language=JavaScript>
pagestart();
</SCRIPT>
<style type="text/css">
<!--
body{background-image:url(D:\资料\娱乐\m.jpg); font-family:"幼园"; font-size:9px;color:#000000;list-style-image:url(D:\资料\娱乐\gif002.gif)}
.ex1{font-size:30px; position:absolute;left:8cm;top:1cm;z-index:2;}
.ex2{font-size:30px; position:absolute;left:8.05cm;top:1.05cm;z-index:1;}
-->
</style>
</head>
<body>
<table border="0">
<tr><td width="1055" >
<span><img src="D:\资料\娱乐\0003.jpg" width="75" height="75"> </span>
<span><img src="D:\资料\娱乐\012l.jpg" width="75" height="75"> </span>
<span>
<div class="ex1" align="center">SAP的王朝</div>
<div class="ex2" align="center">SAP的王朝</div>
</span>
<span><img src="D:\资料\娱乐\002ab.jpg" width="75" height="75"> </span>
<span><img src="D:\资料\娱乐\a.jpg" width="75" height="75"> </span>
</td></tr>
<tr><td> 最新咨询 全球趋势  教你理财 我的家园</td></tr>
<tr><td height="10" bgcolor="#33CC99"></td></tr>
<tr><td>
<ul >
<li>记住该记住的,忘记该忘记的,改变能改变的,接受不能改变的.
<li>后悔是一种耗费精神的情绪
<li>真正的爱情是不讲究热闹不讲究排场不讲究繁华更不讲究嚎头的。
</ul>
</td></tr>
<br><br>
<tr align="right">
<td align="right"><embed src="D:\资料\娱乐\a.swf" quality="high"puginspage="http://www.macromedia.com/go/getflashplayer" width="300" height="300"/></td></tr>
</table>
</body>
</html>