flash链接需要后台调用时的插入flash方法

   <!--<textarea id="syslink" style="display:none;">// 1:打宝塔  2:山寨玩法  3:跨服竞技  4:副本闯关  5:兵魂系统  6:抢武器
1:http://web.2144.cn
2:http://www.baidu.com
3:http://www.2144.cn
4:http://hezi.2144.cn
5:http://jjsg.2144.cn
6:http://dntg.2144.cn</textarea>

<script>
    var syslink = $('#syslink').val(),
        syslinks = '';
    if(syslink){
        var syslinkArr = syslink.replace(/[\r ]/g, '').split('\n'),
            linkItem = null;
        for (var i=0,len=syslinkArr.length; i<len; i++){
            linkItem = syslinkArr[i].match(/^(\d+):([\w\W]+)$/);
            if(linkItem){
                syslinks += 'URL' + linkItem[1] + '=' + linkItem[2] + '&';
            }
        }
    }
</script>-->

<script>

    var syslinks = "URL1=http://web.2144.cn";

    document.writeln('<object width="610" height="100" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="sysswf">');
    document.writeln('    <param value="always" name="allowScriptAccess">');
    document.writeln('    <param value="images/test.swf" name="movie">');
    document.writeln('    <param value="high" name="quality">');
    document.writeln('    <param value="#FFFFFF" name="bgcolor">');
    document.writeln('    <param value="transparent" name="wmode">');
    document.writeln('    <param value="false" name="menu">');
    document.writeln('    <param value="'+ syslinks  +'" name="FlashVars">');
    document.writeln('    <embed flashvars="'+ syslinks +'" width="610"  height="100" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" name="sysswf" menu="false" quality="high" src="images/test.swf">');
    document.writeln('</object>');
</script>

  

你可能感兴趣的:(Flash)