var focus_width=255 var focus_height=200 var text_height=18 var swf_height = focus_height+text_height
var pics='http://img1.qq.com/sports/20050903/2263294.jpg|http://img1.qq.com/sports/20050903/2262519.jpg| ... 8.jpg|http://img1.qq.com/sports/20050903/2263239.jpg' var links='http://sports.qq.com/nba/|http://sports.qq.com/csocce/chinafootball.htm|http:// ... .htm|http://sports.qq.com/isocce/newiso.htm' var texts='姚明:五年内夺总冠军 现在还不想结婚|足协督促深足掏钱 罢训球员接受招安|莎娃轻松挺进美网女单16强|世界杯预选赛开打 西塞亨利组成法国队锋线'
科科,那一级的~...
<script type="text/javascript">
<!--
var focus_width=255
var focus_height=200
var text_height=18
var swf_height = focus_height+text_height
var
pics='http://img1.qq.com/sports/20050903/2263294.jpg|http://img1.qq.com/sports/20050903/2262519.jpg| ... 8.jpg|http://img1.qq.com/sports/20050903/2263239.jpg'
var links='http://sports.qq.com/nba/|http://sports.qq.com/csocce/chinafootball.htm|http:// ... .htm|http://sports.qq.com/isocce/newiso.htm'
var texts='姚明:五年内夺总冠军 现在还不想结婚|足协督促深足掏钱 罢训球员接受招安|莎娃轻松挺进美网女单16强|世界杯预选赛开打 西塞亨利组成法国队锋线'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/sho ... sh/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://sports.qq.com/flash/playswf.swf"><param name=wmode value=tran ... ;quality" value="high">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="http://sports.qq.com/flash/playswf.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#DADADA" quality="high"& ... omain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); .('</object>');
//-->
</script>
新闻内容还是传统的从数据读出来,然后赋给js的变量.