屏蔽Flash右键信息的js代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Yimin</title>
<script type="text/javascript">
function NoRightClick(pid){
//pid:flash's parentNode id
var el = document.getElementById(pid);
if(el.addEventListener){
el.addEventListener("mousedown",function(event){
if(event.button == 2){
event.stopPropagation(); //for firefox
event.preventDefault(); //for chrome
}
},true);
}else{
el.attachEvent("onmousedown",function(){
if(event.button == 2){
el.setCapture();
}
});
el.attachEvent("onmouseup",function(){
el.releaseCapture();
});
el.oncontextmenu = function(){
return false;
};
}
};
</script>
</head>
<body>
<div id="testContent" style="width:800px">
<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" style="" src="test.swf" type="application/x-shockwave-flash"/>
</div>
<script type="text/javascript">
var so = new SWFObject("test.swf", "t1", "800", "550", "9", "#000000");
so.addParam("quality", "high");
so.addParam("name", "t1");
so.addParam("id", "t1");
so.addParam("algin", "middle");
so.addParam("AllowScriptAccess", "sameDomain");
so.addParam("menu", "false");
so.addParam("wmode", "opaque");
so.addParam("pluginspage", "http://www.adobe.com/go/getflashplayer");
so.write("testContent");
NoRightClick("testContent");
</script>
</body>
</html>
相关文档:
1302-1418-7372-7058-0707-6549
1302-1007-0197-0975-4737-2180
1302-1103-1453-8741-1257-9791
1302-1318-0739-1481-7253-8018
1302-1787-8018-7637-9004-8287
1302-1584-5624-8663-0876-6868
1302-1968-2248-8146-6372-5304
1302-1249-0312-7694-5729-5273
1302-1193-9573-1154-9835-9014
1302-1056-8446- ......
1.首先下载FusionCharts 和 jquery相关的jar包
2.在WebRoot(MyEclipse)下新建script文件夹,放入jquery.js。新建FusionCharts,将fusionCharts包下的Charts文件夹粘贴过来(里面为各种图像报表的模板:如FCF_Area2D.swf、FCF_Bar2D.swf等等),将FusionCharts.js拷入FusionCharts目录下。
3.准备工作完毕、编写 ......
Flash 嵌入的问题论坛中有人问了好多次,到底应该怎么用,为什么通不过验证,要通过验证怎么办等等等。
讨论中也出现了不少的误解,所以我单开一个帖总结一下我所知道的东西,不想看我罗嗦的直接跳到最后看结论就可以了。
一、传统的方法
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
&nbs ......
php版的Flash标签云(flash tagcloud)
想要标签云的同志们都来吧。
3D球形标签云(tagcloud),最初是源自WP的一个插件吧,然后经skiyo的修改,可支持中文,并随意放在自己的博客或网站的任意地方,我把代码和数据库整理一下,共同放出来。在此感谢skiyo!
核心代码:
<?php
require("config.php");
require_onc ......
var aa:Boolean = true;
my_btn.onPress = function() {
if (aa == true) {
fscommand("fullscreen", true);
aa = false;
} else {
fscommand("fullscreen", false);
aa = true;
}
};
my_btn是一个按钮 ......