在Flash上强行加链接的问题
用Layer的方式,在Flash上加上链接,可是需要按2下才可以打开链接,想问问有没有更好的方法呢? 代码如下:<div id="img" style="position:absolute; width:767px; height:76px; z-index:1;cursor:hand"><a href="products.asp"><img src="noimage.gif" width="100%" height="100%" border=0" alt="Products"></a></div><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="767" height="76">
<param name="movie" value="products.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<param name="SCALE" value="exactfit">
<param name="control" value="no">
<!--设FLASH为透明-->
<embed src="products.swf" width="767" height="76" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" scale="exactfit"></embed></object>
用JS载入就行了....本版有讨论过,我找下帖地址出来... 累死,没找到,贴个DW CS3的解决方案吧,相应自己改下参数
[code]
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','32','height','32','src','ad/swf/kfc.swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','ad/swf/kfc.swf' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="32" height="32">
<param name="movie" value="ad/swf/kfc.swf" />
<param name="quality" value="high" />
<embed src="ad/swf/kfc.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object></noscript>
[/code] FLASH调用代码:
<script src="Scripts/FlashShow.js" type="text/javascript"></script>
<script type="text/javascript">
Swfshow('swf/banner.swf','1004','200')
</script>
JS代码:
function Swfshow(strURL,intWidth,intHeight)
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="'+intWidth+'" height="'+intHeight+'">');
document.write('<param name="movie" value="'+strURL+'">');
document.write('<param name="quality" value="high">');
document.write('<param name="WMode" value="Transparent" />');
document.write('<!--[if !IE]> <-->');
document.write('<object data="'+strURL+'" width="'+intWidth+'" height="'+intHeight+'" type="application/x-shockwave-flash">');
document.write('<param name="quality" value="high">');
document.write('<param name="WMode" value="Transparent" />');
document.write('<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">');
document.write('FAIL (the browser should render some flash content, not this).');
document.write('</object>');
document.write('<!--> <![endif]-->');
document.write('</object>');
}
页:
[1]
