<div class="codetitle"> <span><a style="CURSOR: pointer" data="28724" class="copybut" id="copybut28724" onclick="doCopy('code28724')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code28724"> <br> <br> <br> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>Yimin</title> <br><script type="text/javascript"> <BR>function NoRightClick(pid){ <BR>//pid:flash's parentNode id <BR>var el = document.getElementById(pid); <BR>if(el.addEventListener){ <BR>el.addEventListener("mousedown",function(event){ <BR>if(event.button == 2){ <BR>event.stopPropagation(); //for firefox <BR>event.preventDefault(); //for chrome <BR>} <BR>},true); <BR>}else{ <BR>el.attachEvent("onmousedown",function(){ <BR>if(event.button == 2){ <BR>el.setCapture(); <BR>} <BR>}); <BR>el.attachEvent("onmouseup",function(){ <BR>el.releaseCapture(); <BR>}); <BR>el.oncontextmenu = function(){ <BR>return false; <BR>}; <BR>} <BR>}; <BR></script> <br> <br> <br><div id="testContent" style="width:800px"> <br><embed id="t1" height="780px" width="750" pluginspage="http://www.adobe.com/go/getflashplayer" wmode="opaque" menu="false" allowscriptaccess="sameDomain" algin="middle" name="t1" quality="high" bgcolor="#000000" src="test.swf" type="application/x-shockwave-flash"></embed> <br> </div> <br><script type="text/javascript"> <BR>var so = new SWFObject("test.swf", "t1", "800", "550", "9", "#000000"); <BR>so.addParam("quality", "high"); <BR>so.addParam("name", "t1"); <BR>so.addParam("id", "t1"); <BR>so.addParam("algin", "middle"); <BR>so.addParam("AllowScriptAccess", "sameDomain"); <BR>so.addParam("menu", "false"); <BR>so.addParam("wmode", "opaque"); <BR>so.addParam("pluginspage", "http://www.adobe.com/go/getflashplayer"); <BR>so.write("testContent"); <BR>NoRightClick("testContent"); <BR></script> <br> <br> <br> </div> <br>缁