上一页 1 ··· 3 4 5 6 7 8 下一页

2011年11月28日

WinForm 修改Internet选项安全属性

摘要: using System;using Microsoft.Win32;using System.Diagnostics;public class ChangProxy{ public static void Main(string[] args) { int Proxy_Enabled; RegistryKey rkey = Registry.CurrentUser; RegistryKey software = rkey.OpenSubKey("Software"); RegistryKey microsoft = software.OpenSubKey("Mi 阅读全文

posted @ 2011-11-28 17:29 缘从心开始 阅读(1038) 评论(0) 推荐(0) 编辑

C# WebBrowser实现网页自动填表

摘要: 阅读全文

posted @ 2011-11-28 17:28 缘从心开始 阅读(472) 评论(0) 推荐(0) 编辑

HTML字符实体(Character Entities),转义字符串(Escape Sequence)

摘要: HTML字符实体(Character Entities),转义字符串(Escape Sequence)为什么要用转义字符串?HTML中<,>,&等有特殊含义(<,>,用于链接签,&用于转义),不能直接使用。这些符号是不显示在我们最终看到的网页里的,那如果我们希望在网页中显示这些符号,该怎么办呢?这就要说到HTML转义字符串(Escape Sequence)了。转义字符串(Escape Sequence)也称字符实体(Character Entity)。在HTML中,定义转义字符串的原因有两个:第一个原因是像“<”和“>”这类符号已经用来表示H 阅读全文

posted @ 2011-11-28 17:27 缘从心开始 阅读(182) 评论(0) 推荐(0) 编辑

JavaScript/HTML格式化

摘要: http://tool.chinaz.com/Tools/JsFormat.aspx 阅读全文

posted @ 2011-11-28 17:26 缘从心开始 阅读(131) 评论(0) 推荐(0) 编辑

网页复制保留版权JS

摘要: 网页复制保留版权JSdocument.body.oncopy=function(){ event.returnValue=false; var t=document.selection.createRange().text; var s="\r\n本文来源于 XXX-方向比努力更重要 http://dachie.cnblogs.com \r\n 转载请保留版权"; clipboardData.setData('Text','\r\n'+t+'\r\n'+s+'\r\n');}把以上javascript代码 放到 阅读全文

posted @ 2011-11-28 17:23 缘从心开始 阅读(223) 评论(0) 推荐(0) 编辑

Js 过滤空格

摘要: JS 过滤空格<SCRIPT LANGUAGE="JavaScript">function ignoreSpaces(string) {var temp = "";string = '' + string;splitstring = string.split("");for(i = 0; i < splitstring.length; i++)temp += splitstring[i];return temp;}</script><font size="2"&g 阅读全文

posted @ 2011-11-28 17:12 缘从心开始 阅读(329) 评论(0) 推荐(0) 编辑

ezj.ext.editor

摘要: ezj.ext.editorHTML 代码<textareaid="content1"name="content1"style="width:100%;height:200px;"><p><imgborder="0"alt=""align="left"src="http://kindsoft.net/images/logo_180_30.gif"/>KindEditor是一套开源的HTML可视化编辑器,主要用于让用户在网 阅读全文

posted @ 2011-11-28 17:07 缘从心开始 阅读(252) 评论(0) 推荐(0) 编辑

onbeforeunload-离开网页前提示(确认)

摘要: 很幸运,在 IE、Firefox、Chrome 等浏览器中均支持。window.onbeforeunload = function() { return "文章还没有保存,您确定退出吗?";// return 这句必不可少}把上述 JavaScript 代码插入网页后,前进、后退、刷新、访问新的网址、关闭窗口……时,将会得到提示。IE 中的提示英文版 Firefox 中的提示Chrome 中的提示取消根据我们的应用,可能是某些情况下(比如文章没有保存)退出需要提示,但某些情况下(比如文章已经保存)就不需要提示了,此时将 window.onbeforeunload 设置为 n 阅读全文

posted @ 2011-11-28 17:06 缘从心开始 阅读(560) 评论(0) 推荐(0) 编辑

JavaScript 刷新当前页面

摘要: 1history.go(0)2location.reload()3location=location4location.assign(location)5document.execCommand('Refresh')6window.navigate(location)7location.replace(location)8document.URL=location.href 阅读全文

posted @ 2011-11-28 17:05 缘从心开始 阅读(228) 评论(0) 推荐(0) 编辑

js获取浏览器高度和宽度值(多浏览器)

摘要: IE中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentElement.clientWidth ==> 可见区域宽度document.documentElement.clientHeight ==> 可见区域高度FireFox中:document.body.clientWidth ==> BODY对象宽度document.body.clientHeight ==> BODY对象高度document.documentEle 阅读全文

posted @ 2011-11-28 17:04 缘从心开始 阅读(139) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 下一页

导航

文章作者:(Super)
文章出处:http://www.cnblogs.com/superai
欢迎转载,转载时请注明出处。谢谢合作。