| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1431 人关注过本帖
标题:在Flash上强行加链接的问题
只看楼主 加入收藏
itsky8
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-2-19
收藏
 问题点数:0 回复次数:5 
在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
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 
是不是刚开始有个虚线框需要激活.....??
2008-02-19 23:35
itsky8
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2008-2-19
收藏
得分:0 
是的,没错,开始是有个虚线框需要激活,可以取消吗?
2008-02-20 09:44
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 
可以,因为涉及到专利问题才需要激活,adobe公司和其他一些产商都有相应的方法

用JS载入就行了....本版有讨论过,我找下帖地址出来...
2008-02-20 14:37
lmhllr
Rank: 8Rank: 8
等 级:贵宾
威 望:44
帖 子:1504
专家分:42
注 册:2005-5-12
收藏
得分:0 
累死,没找到,贴个DW CS3的解决方案吧,相应自己改下参数
程序代码:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.,0,28,0','width','32','height','32','src','ad/swf/kfc.swf','quality','high','pluginspage','http://www.','movie','ad/swf/kfc.swf' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.,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. type="application/x-shockwave-flash" width="32" height="32"></embed>
</object></noscript>
2008-02-20 14:43
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
快速回复:在Flash上强行加链接的问题
数据加载中...
 
   



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

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