zoukankan      html  css  js  c++  java
  • js 轮播 flash

    <html>
    <head>
        <script type="text/javascript">
            function playflash(url)
            {    
                var ls_html;
                ls_html="<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height='222' width='394' classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>";
                ls_html+="  <PARAM NAME='movie' VALUE='"+url+"'><PARAM NAME='quality' VALUE='high'>";
                ls_html+="  <PARAM NAME='wmode' VALUE='transparent'><param name='SCALE' value='noborder'>";
                ls_html+="  <embed src='"+url+"' width='394' height='222' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' scale='noborder'></embed>";
                ls_html+="</OBJECT>";
                var player=document.getElementById("flashplayer");//flashplayer 是div
                player.innerHTML=ls_html;
            }
           
           
            function clk()
            {
                var ls_url=document.getElementById("url").value;
                 playflash(ls_url);
            }
        </script>
    </head>
    <body>
        <table>
            <tr>
                <td><input type="text" id="url" />
                    <input type="button" value="测试" onclick="clk()" id="btn"/>
                </td>
            </tr>
            <tr>
                <td>
                    <div id="flashplayer">               
                    </div>
                </td>
            </tr>
        </table>
    </body>
    </html>
  • 相关阅读:
    three.js中 用 鼠标点击+呼吸灯
    socket.io学习以及在vuehtml使用,node搭建的后台
    网路在线古诗文免费阅读网站
    vue-element-admin默认加载Dashboard更改
    vue-element-admin后台框架侧边蓝图标添加自定义
    吸顶操作vue
    对图片进行裁剪(vueCropper)图片不显示
    ucharts使用内容
    文字转换为语音在线免费工具连接
    tree.js外部骨骼动画
  • 原文地址:https://www.cnblogs.com/kuailewangzi1212/p/1880307.html
Copyright © 2011-2022 走看看