var focus_width=200
var focus_height=150
var text_height=0
var swf_height = focus_height+text_height
var pics='images/1.jpg|images/2.jpg|images/3.jpg'
var links=''
var texts=''
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="/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="images/dong.swf"><param name="quality" value="high"><param name="bgcolor" value="#F2F2F2">');
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="images/dong.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="/www.macromedia.com/go/getflashplayer" />');
document.write('</object>');
想在那几个图片上加超级链接,不会添加,HTML代码就一个调用,Flash好像就是样式吧~
JavaScript
------解决方案--------------------
var links='http://http://www.yztchg.com/showcp.asp?id=18
------解决方案--------------------
http://http://www.yztchg.com/showcp.asp?id=16
------解决方案--------------------
http://www.yztchg.com/showcp.asp?id=11
------解决方案--------------------
http://www.yztchg.com/showcp.asp?id=14
------解决方案--------------------