Tip: You can modify some of the code before running
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <ptml xmlns=" http://www.w3.org/1999/xhtml "> <pead> <title><title> <meta http-equiv= "Content-type" content= "text/html;charset=gb2312" > <!--Add the following code to <pead> and </pead>--> <base href= "http://www.111cn.net/effect/images/" > <style type= "text/css" > Html,body{margin:0;background: #000;} #ldh_win {position:relative;width:332px;height:200px;margin:0 Auto;overflow:hidden} #up {Background:url (http:// www.111cn.net/effect/images/vaio.png) no-repeat 100% 0;position:absolute;right:0;height:200px;} Img{position:absolute;right:0;border:none} </style> </pead> <body> <!--Add the following code to the <body> and </body>--> <div id= "Ldh_win" > <div id= "Up" ></div> </div> <script language= "Java Script > Function fx (i) {var Up=document.getelementbyid ("Up"). Style,fb=document.getelementbYid ("FB"). Style; SetInterval (function () {i+=5;up.width=i+ ' px '; fb.right=-i*9+ ' px ';},15); } </script> </body> </ptml>
Tip: You can modify some of the code before running