打印

请教各位高手里面要填加一个什么样的函数?

<br />
          <table width="800" border="0" align="center" cellspacing="0">
            <tr>
              <td width="222" height="34" class="STYLE4"><div align="left">&gt;&gt;<a href="1.htm">在线点播</a></div></td>
              <td width="574" rowspan="7">&nbsp;
                  <embed src='http://player.youku.com/player.php/sid/XMzU1OTY4OTI=/v.swf' quality='high' width='480' height='400' align='middle' allowscriptaccess='sameDomain' type='application/x-shockwave-flash'></embed></td>
            </tr>
            <tr>
              <td height="34" align="center" valign="middle" class="STYLE25"><div align="left">
                  <div align="left">&gt;&gt;<span class="STYLE35"><a href="javascript:doPlay('http://player.youku.com/player.php/sid/XMzU5NDY4OTI=/v.swf');">世界大师中国行 武向阳</a> </span></div></td>
            </tr>
            <tr>
              <td height="34" align="center" valign="middle" class="STYLE25"><div align="left">
                       <div align="left">&gt;<span class="STYLE35">&gt;<a href="javascript:doPlay('http://player.youku.com/player.php/sid/XMzYwMjg5MTY=/v.swf');">鼎天足疗顾问网CEO 朱荟伦</a></span></div></td>
            </tr>
            <tr>
              <td height="36" align="center" valign="middle" class="STYLE4"><div align="left">
                       <div align="left">&gt;&gt;<a href="javascript:doPlay('http://player.youku.com/player.php/sid/XMzYwODk4Mjg=/v.swf;" class="STYLE35 STYLE36">广州同一发电信总裁 钟钰翔 </a></div></td>
            </tr>
            <tr>
              <td height="43" align="center" valign="middle"class="STYLE4"><div align="left>
                      <div align="left">
                <div align="left">&gt;&gt;<span class="STYLE36"><a href="javascript:doPlay('http://player.youku.com/player.php/sid/XMzYwMjg5MTY=/v.swf');" class="STYLE35"></a></span></div>
              </div></td>
            </tr>
            <tr>
              <td height="43" align="center" valign="middle">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
          </table>

javascript:doPlay() 里面填加一个什么函数?
今天又遇见一个让大家猜谜语的家伙..
我猜doplay是改变那个embed 的src地址的。..
大浪淘沙.
先给右边那个大flash 赋一个ID="player"
复制内容到剪贴板
代码:
<script type="text/javascript">
      function doPlay(arg){
      var player=document.getElementById("player");
      player.setAttribute("src",arg);
      return false;
      }
</script>
我想大致就这样吧   等他人完善

[ 本帖最后由 shaohua162001 于 2008-8-22 14:18 编辑 ]
舍得是一种境界

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
我以前写的图片库效果  稍微改了一下  应该就是你要的效果了

 提示:您可以先修改部分代码再运行
舍得是一种境界

TOP

谢谢各位的帮助!

TOP