Tip: you can modify some code before running
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>Show</title><style type="text/css"># Show {display: none; margin: 0px auto; background-color: # FF0000 ;}# txt {width: 760px; height: 30px; margin: 0px auto; background-color: # efefef ;}</style></head><body><div id=show></div><div id=txt>Open Close</div><script type="text/javascript">Function show () {if (! Document. getElementById) return false; if (! Document. getElementById ("show") return false; var show = document. getElementById ("show"); show. style. width = "0px"; show. style. height = "0px"; show. style. display = "block"; movement = setTimeout ("animation ()", 0)} function animation () {if (! Document. getElementById) return false; if (! Document. getElementById ("show") return false; var show = document. getElementById ("show"); var xpos = parseInt (show. style. width); var ypos = parseInt (show. style. height); if (xpos = 760 & ypos = 420) {return true;} if (xpos <760) {xpos ++;} if (xpos> 760) {xpos --;} if (ypos <420) {ypos ++;} if (ypos> 420) {ypos --;} show. style. width = xpos + "px"; show. style. height = ypos + "px"; movement = SetTimeout ("animation ()", 0);} function show2 () {if (! Document. getElementById) return false; if (! Document. getElementById ("show") return false; var show = document. getElementById ("show"); show. style. width = "760px"; show. style. height = "420px"; show. style. display = "block"; movement = setTimeout ("animation2 ()", 0)} function animation2 () {if (! Document. getElementById) return false; if (! Document. getElementById ("show") return false; var show = document. getElementById ("show"); var xpos = parseInt (show. style. width); var ypos = parseInt (show. style. height); if (xpos = 0 & ypos = 0) {return true;} if (xpos <0) {xpos ++;} if (xpos> 0) {xpos --;} if (ypos <0) {ypos ++;} if (ypos> 0) {ypos --;} show. style. width = xpos + "px"; show. style. height = ypos + "px"; movement = setTimeout ("animation2 ()", 0 );}</script></body></html>
Tip: you can modify some code before running