代码如下:<script src="http://www.beijing2008.cn/upload/cms_owrp2/column_cn/beijing2008_flashobj.js" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function getObject(objectId) { if(document.getElementById && document.getElementById(objectId)) {return document.getElementById(objectId);} else if (document.all && document.all(objectId)) {return document.all(objectId); } else if (document.layers && document.layers[objectId]) {return document.layers[objectId]; } else {return false;} } //]]> </script> </head>
<body> </div> <SCRIPT type=text/javascript> //<![CDaTa[ try { var gx=285; var timer; var setp=4; var speed=8; var popbtn = getObject("popbtn"); var closebtn = getObject("closebtn"); var gobj = getObject("Gamelist"); gobj.style.height="0px" popbtn.onclick = domain; closebtn.onclick = domain; } catch (e) { } function domain(){ if(popbtn.src.indexOf("popclose")>=0){popbtn.src = popbtn.src.replace("popclose","popopen");gobj.className="popGames"} else{popbtn.src = popbtn.src.replace("popopen","popclose");} if (timer ==undefined){timer = setTimeout(domove,speed);} else {clearTimeout(timer);timer = setTimeout(domove,speed);} } function domove(){ var cx=0 var gh=gobj.style.height; cx= parseInt(gh); cx+=(gx-cx)/setp; cx=parseInt(cx); gobj.style.height=cx+"px"; popbtn.onclick ="" if (Math.abs(cx-gx)<1){ gh=gx+"px"; clearTimeout(timer); timer=undefined; gobj.className="hidden" gx=285 popbtn.onclick =domain; }else{ if(cx>=282){clearTimeout(timer);gx=0;popbtn.onclick =domain;} else{timer = setTimeout(domove,speed);} } } //]]> </SCRIPT> <div class="focusFlash"><div id="sasFlashFocus27"></div> <script> var sohuFlash2 = new sohuFlash("http://images.beijing2008.cn/demo7.swf", "27", 522, 245, "7"); sohuFlash2.addParam("quality", "high"); sohuFlash2.addParam("wmode", "opaque"); sohuFlash2.addVariable("image","http://img10.beijing2008.cn/20080824/Img214583321.jpg|http://img09.beijing2008.cn/20080824/Img214584189.jpg|http://img03.beijing2008.cn/20080824/Img214584321.jpg|http://img06.beijing2008.cn/20080824/Img214584398.jpg"); sohuFlash2.addVariable("image2","http://img03.beijing2008.cn/20080824/Img214583314.jpg|http://img03.beijing2008.cn/20080824/Img214584193.jpg|http://img04.beijing2008.cn/20080824/Img214584357.jpg|http://img00.beijing2008.cn/20080824/Img214584410.jpg"); sohuFlash2.addVariable("url","http://www.beijing2008.cn/ceremonies/headlines/n214582800.shtml|http://www.beijing2008.cn/ceremonies/headlines/n214583588.shtml|http://www.beijing2008.cn/ceremonies/headlines/n214584910.shtml|http://www.beijing2008.cn/ceremonies/headlines/n214583501.shtml"); sohuFlash2.addVariable("info", "北京奥运会闭幕式文艺表演|北京奥运会圣火熄灭|奥林匹克会旗交接|2012年相约伦敦");
sohuFlash2.addVariable("stopTime","5000"); sohuFlash2.write("sasFlashFocus27"); </script>
图例:
上传以下图片:

|