标题:在Flash上强行加链接的问题
取消只看楼主
itsky8
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-2-19
 问题点数:0 回复次数:2 
在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.,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.   type="application/x-shockwave-flash"   wmode="transparent"   scale="exactfit"></embed></object>
搜索更多相关主题的帖子: Flash 链接 height div 
2008-02-19 20:07
itsky8
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-2-19
得分:0 
是的,没错,开始是有个虚线框需要激活,可以取消吗?
2008-02-20 09:44
itsky8
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-2-19
得分:0 
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.,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.');
  document.write('FAIL (the browser should render some flash content, not this).');
  document.write('</object>');
  document.write('<!--> <![endif]-->');
  document.write('</object>');
  }
2008-02-20 15:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-200375-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.342952 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved