<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><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 전환//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <br><html xmlns="http://www.w3.org/1999/xhtml"> <br><머리> <br><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <br><title>이민</title> <br><script type="text/javascript"> <br>function NoRightClick(pid){ <br>//pid:flash의 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(); // Firefox의 경우 <br>event.preventDefault(); //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>false를 반환합니다. <br>}; <br>} <br>}; <br></script> <br></head> <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"/> <br></div> <br><script type="text/javascript"> <br>var so = new SWFObject("test.swf", "t1", "800", "550", "9", "#000000"); <br>so.addParam("품질", "높음"); <br>so.addParam("name", "t1"); <br>so.addParam("id", "t1"); <br>so.addParam("algin", "middle"); <br>so.addParam("AllowScriptAccess", "sameDomain"); <br>so.addParam("메뉴", "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></body> <br></html> <br> </div> <br>IE, Firefox 및 Google Chrome에서 플래시를 사용하여 플래시를 사용할 수 있습니다.