论坛: 网站建设 标题: flash问题! 复制本贴地址    
作者: DIY [gongguyu]    论坛用户   登录
代码:

<script language=javascript></script>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="264"><table width="264" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="204" align="center" bgcolor="#F2F2F2" class="line2"> <table width="256" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="256" height="196" align="center" bgcolor="#CCCCCC"><script type="text/javascript">
<!--
var focus_width=768
var focus_height=196
var text_height=0
var swf_height = focus_height+text_height
var pics=' http://img1.qq.com/tech/pics/2961/2961910.jpg|http://img1.qq.com/tech/pics/2960/2960870.jpg|http://img1.qq.com/tech/pics/2963/2963322.jpg'
var links=' http://tech.qq.com/a/20070126/000035.htm|http://tech.qq.com/a/20070126/000005.htm|http://digi.tech.qq.com/mobile/daliy.htm'
var texts='北京参展展台|精彩腾讯-展台远景|展会上的小提琴MM|证券交易所峰会赠牌仪式'
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="http://mat1.qq.com/tech/flash/focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="#CCCCCC">');
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('</object>');

//-->
    </script>



想作一个这样的flash 但是不知道那个swf动画应该怎么样做,谁能给我讲一下这个东西的原理!在这先谢谢了!

地主 发表时间: 07-01-27 04:51

回复: NetFog [q70213526]   版主   登录
代码:
<table width="264" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="204" align="center" bgcolor="#F2F2F2" class="line2"> <table width="256" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="256" height="196" align="center" bgcolor="#CCCCCC"><script type="text/javascript">
<!--
var focus_width=256
var focus_height=196
var text_height=20
var swf_height = focus_height+text_height
var pics=' http://img1.qq.com/tech/pics/2984/2984828.jpg|http://img1.qq.com/tech/pics/2985/2985114.jpg|http://img1.qq.com/tech/pics/2986/2986661.jpg'
var links=' http://tech.qq.com/a/20070129/000015.htm|http://tech.qq.com/a/20070129/000019.htm|http://digi.tech.qq.com/mobile/daliy.htm'
var texts='北京参展展台|精彩腾讯-展台远景|展会上的小提琴MM|证券交易所峰会赠牌仪式'
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="http://localhost/focus.swf"> <param name="quality" value="high"><param name="bgcolor" value="#CCCCCC">');
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="focus.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="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');

//-->
    </script></td>
        </tr>
      </table>





B1层 发表时间: 07-01-29 20:11

回复: NetFog [q70213526]   版主   登录
注意focus.swf

我直接从QQ.COM拿过来的.把focus.swf地址改了下.保存了focus.swf,至于可不可以直接用QQ.COM的,我就不清楚了.没试.

我发的代码,使用localhost浏览时没问题

[此贴被 NetFog(q70213526) 在 01月29日20时13分 编辑过]

B2层 发表时间: 07-01-29 20:13

回复: DIY [gongguyu]   论坛用户   登录
能不能给一个那个swf 动画的原文件给我,.fla 格式的

B3层 发表时间: 07-01-29 22:44

论坛: 网站建设

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号