<a target=_self href="javascript:goUrl()">
<script type="text/javascript">
var pics=""
var links=""
var texts=""
pics=pics+"images/05.jpg"+"|"
links=links+escape("http://www.baidu.com")+"|"
texts=texts+"百度"+"|"
pics=pics+"images/04.jpg"+"|"
links=links+escape("http://www.sohu.com")+"|"
texts=texts+"搜狐"+"|"
pics=pics+"images/03.jpg"+"|"
links=links+escape("http://www.yahoo.com.cn")+"|"
texts=texts+"雅虎"+"|"
pics=pics+"images/02.jpg"+"|"
links=links+escape("http://www.163.com")+"|"
texts=texts+"网易"+"|"
pics=pics+"images/01.jpg"
links=links+escape("http://www.sina.com.cn")
texts=texts+"新浪"
var focus_width=220
var focus_height=180
var text_height=20
var swf_height = focus_height+text_height
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
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="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); </script></a>
然后去下载focus.swf文件,放在相同的目录下就可以了
评论