最好用flash6以上版本,ie6版本flash对象?你做好的flash可转出一个html页面,你看看里面的代码就明白了。

解决方案 »

  1.   

    <SCRIPT  LANGUAGE="JavaScript">  
    <!--  
    var  swf  =  new  ActiveXObject('ShockwaveFlash.ShockwaveFlash');  
    (swf)  ?  document.writeln('你已经安装了插件')  :  document.writeln('你没有安装插件');  
    //  -->  
    </SCRIPT>详细的解决方法.
    http://www.blueidea.com/bbs/newsdetail.asp?id=234550
      

  2.   

    动态加载.<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="mFlash"
     codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
     WIDTH="120" HEIGHT="60" id="468x60" ALIGN="" VIEWASTEXT>
    <PARAM NAME=quality VALUE=high>
    </OBJECT>
    <input type=button onclick="addFlash()" value="Add">
    <input type=button onclick="mFlash.Stop()" value="Stop">
    <input type=button onclick="mFlash.Play()" value="Play">
    <script>
    function addFlash() {
    mFlash.movie="http://expert.csdn.net/images/ad/WIBU.swf";
    mFlash.Play();
    }
    </script>
      

  3.   

    wanghr100(灰豆宝宝.net) :
        谢谢,我要使用FSCommand,还需要设置什么参数?
      

  4.   

    FSCommand
    是flash内部的,不需要怎么设置的
    最多设置一下 禁止 缩放 禁止 右键什么的
      

  5.   

    var msie_windows = 0;
    var detect_through_vb = 0;
    if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)){
      msie_windows = 1;
      document.writeln('<scr'+'ipt language="VBscript">');
      document.writeln('Dim detect_through_vb');
      document.writeln('Function activeXDetect(activeXname)');
      document.writeln('  on error resume next');
      document.writeln('  If ScriptEngineMajorVersion >= 2 then');
      document.writeln('     activeXDetect = False');
      document.writeln('     activeXDetect = IsObject(CreateObject(activeXname))');
      document.writeln('     If (err) then');
      document.writeln('        activeXDetect = False');
      document.writeln('     End If');
      document.writeln('   Else');
      document.writeln('     activeXDetect = False');
      document.writeln('   End If');
      document.writeln('End Function');
      document.writeln('</scr'+'ipt>');
    }
    function pluginDetect(plugindescription, pluginxtension, pluginmime, activeXname){
      var i,plugin_undetectable=0,detected=0, daPlugin=new Object();
      plugin_undetectable = (msie_windows) ? 0 : 1;
      if(navigator.plugins) {
        numPlugins = navigator.plugins.length;
        if (numPlugins > 1) {
          if (navigator.mimeTypes && navigator.mimeTypes[pluginmime] && navigator.mimeTypes[pluginmime].enabledPlugin && (navigator.mimeTypes[pluginmime].suffixes.indexOf(pluginxtension) != -1)) { // seems like we have it, let's just make sure and check the version (if specified)
            if ((navigator.appName == 'Netscape') && (navigator.appVersion.indexOf('4.0') != -1)) { // stupid, stupid Netscape can't handle the references to navigator.plugins by number, sooo...
              for(i in navigator.plugins) {
                if ((navigator.plugins[i].description.indexOf(plugindescription) != -1) || (i.indexOf(plugindescription) != -1)) { // some versions of quicktime have no description. feh!
                  detected=1;
                  break;
                }
              }
            } else {
              for (i = 0; i < numPlugins; i++) {
                daPlugin = navigator.plugins[i];
                if ((daPlugin.description.indexOf(plugindescription) != -1) || (daPlugin.name.indexOf(plugindescription) != -1)) {
                  detected=1;
                  break;
                }
              }
            }
            if (navigator.mimeTypes[pluginmime] == null) {
              detected = 0;
            }
          }
          return detected;
        } else if((msie_windows == 1) && !plugin_undetectable){
          return activeXDetect(activeXname);
        } else {
          return 0;
        }
      } else {
        return 0;
      }
    }function easyDetect(whichPlugin) {
      var isItThere = 0;
      if( (whichPlugin == 'flash') || (whichPlugin == 'Flash') ) {
        isItThere = pluginDetect('Flash', 'swf', 'application/x-shockwave-flash', 'ShockwaveFlash.ShockwaveFlash');
      }
      return isItThere;
    }
            <table width="700" border="0" cellpadding="0" cellspacing="0">
              <tr valign="middle"> 
                <td align="left" valign="top">
                  <script language="JavaScript">
                  <!--
                  var flashContentCondition = 3;
                  var ImageWidth  =  1;
                  var ImageHeight =  1;
                  var PageName    = "index6";
                  var ScriptUrl   = '../cgi-bin/index6/log4.cgi';              var pluginVersion = 0;
                  if(pluginDetect('Flash 9', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.9')) pluginVersion = 9;
                  else if(pluginDetect('Flash 8', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.8')) pluginVersion = 8;
                  else if(pluginDetect('Flash 7', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.7')) pluginVersion = 7;
                  else if(pluginDetect('Flash 6', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.6')) pluginVersion = 6;
                  else if(pluginDetect('Flash 5', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.5')) pluginVersion = 5;
                  else if(pluginDetect('Flash 4', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.4')) pluginVersion = 4;
                  else if(pluginDetect('Flash 3', 'swf', 'application/x-shockwave-flash','ShockwaveFlash.ShockwaveFlash.3')) pluginVersion = 3;
                  
                  var imgTag = '<img' +
                               ' src="'   + ScriptUrl   + '?' + PageName + '@&fv=' + pluginVersion + '"' + 
                               ' width='  + ImageWidth  +
                               ' height=' + ImageHeight +
                               '>';
                  
                  if(pluginVersion >= flashContentCondition) {
                  
                    document.writeln('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" WIDTH="700" HEIGHT="245" id="product" ALIGN="">');
                    document.writeln(' <param name="movie" value="img6/product.swf"> <param name="loop" value="false"> <param name="menu" value="false"> <param name="quality" value="high"> <param name="scale" value="noscale"> <param name="bgcolor" value="#FFFFFF">');
                    document.writeln(' <embed src="img6/product.swf" loop="false" menu="false" quality="high" scale="noscale" bgcolor="#FFFFFF"  width="700" height="245" name="product" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
                    document.writeln('</object>');
                  }
                  
                  else {
                    document.writeln('<table width="690" border="0" cellpadding="0" cellspacing="0">');
                    document.writeln('  <tr valign="middle">');
                    document.writeln('    <td align="left" valign="top"><img src="img6/tit01.gif" width="252" height="179"><br>');
                    document.writeln('    <a href="dry/dry.html" base target="_blank"><img src="img6/tit00.gif" border=0></a></td>');
                    document.writeln('    <td align="right" valign="top"><img src="img6/tit02.jpg" width="420" height="243" border="0" usemap="#Map"></td>');
                    document.writeln('  </tr>');
                    document.writeln('</table>');
                  }
                  document.writeln(imgTag+"<br>");
                  //-->
                  </script>
                  <noscript>
                    <table width="690" border="0" cellpadding="0" cellspacing="0">
                      <tr valign="middle"> 
                        <td align="left" valign="top"><img src="img6/tit01.gif" width="252" height="179"><br>
                        <a href="dry/dry.html" base target="_blank"><img src="img6/tit00.gif" border=0></a></td>
                        <td align="right" valign="top"><img src="img6/tit02.jpg" width="420" height="243" border="0" usemap="#Map"></td>
                      </tr>
                    </table>
                    <img src="cgi-bin/log4.cgi?fv=0" width="1" height="1">
                  </noscript>
                </td>
              </tr>
            </table>
      

  6.   

    <img src="cgi-bin/log4.cgi?fv=0" width="1" height="1">这句话我是传给cgi的fv=0为0时,没有安装flashplugin,1时版本为1.....9时为9(有点超前)