10 2012 档案

摘要:OnContextMenu事件2011-10-11 10:20:35|分类:js事件|字号订阅用oncontextmenu事件单禁用右键菜单一个页面中,BODY中用oncontextmenu='return false'来取消鼠标右键;在JS中设置oncontextmenu='return true'用window.document.oncontextmenu = function(){ return false;}onconTextmenu=window.event.returnValue=false;右键菜单禁用,用这个可以禁止复制。在<body> 阅读全文
posted @ 2012-10-30 14:40 大脸 阅读(14761) 评论(2) 推荐(2) 编辑
摘要:Js代码functiongetInfo(){vars="";s+="网页可见区域宽:"+document.body.clientWidth;s+="网页可见区域高:"+document.body.clientHeight;s+="网页可见区域宽:"+document.body.offsetWidth+"(包括边线和滚动条的宽)";s+="网页可见区域高:"+document.body.offsetHeight+"(包括边线的宽)";s+="网页正 阅读全文
posted @ 2012-10-30 11:46 大脸 阅读(494) 评论(0) 推荐(1) 编辑
摘要:<object type="application/x-shockwave-flash" wmode="transparent data="../UploadImage/Flv/flvplayer.swf?file=style.flv"> <param name="movie" value="../UploadImage/Flv/flvplayer.swf?file=style.flv" /> <param name="wmode" value=" 阅读全文
posted @ 2012-10-24 15:47 大脸 阅读(283) 评论(0) 推荐(0) 编辑
摘要:启动qq: <a href="tencent://Message/?Uin=xxxxxxxxxxxxxxxxxxxx&websitName=ss&Menu=yes">打开QQ</a>启动itunes: 阅读全文
posted @ 2012-10-22 11:17 大脸 阅读(448) 评论(0) 推荐(0) 编辑
摘要:如何跳出页面的Frame框架很多网页都是框架结构的,在很多的情况下会通过按钮点击事件或链接,跳出框架转到其它界面。例如说点击“注销登录”返回到登录界面。一、通过运行脚本跳出框架有以下几种写法:1. <script language = javascript>window.open('Login.aspx','_top')</script>"2. <script language = javascript>window.open('Login.aspx','_parent')</s 阅读全文
posted @ 2012-10-15 11:14 大脸 阅读(1181) 评论(0) 推荐(0) 编辑
摘要:方法一:public static string GetString(string str, int length){int i = 0, j = 0;foreach(char chr in str){if((int)chr > 127){i += 2;}else{i ++;}if (i > length){str = str.Substring(0, j) + "...";break;}j ++;}return str;}方法二public static string stringformat(string str,int n){//////格式化字符串长度, 阅读全文
posted @ 2012-10-11 13:06 大脸 阅读(324) 评论(0) 推荐(0) 编辑
摘要:DropDownList.selectValue 可以绑定 数据库的字段 ,我的错误:不小心在数据库中插入了 字段关键字 结果 给解析出 一个数组的 数据 引发一个无比蛋疼的错误。 记住! 阅读全文
posted @ 2012-10-09 16:39 大脸 阅读(109) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示