<%’******************************’函数:RemoveHref_A(HTMLstr)’参数:HTMLstr,待去除链接的字符串’作者:阿里西西’日期:2007/7/12’描述:去除字符串中所有的超级链接’示例:<%=RemoveHref_A("<a href=/abc/h.html>测试</a>")%>’******************************Function RemoveHref_A(HTMLstr)Dim n,str1,str2,str3,str4HTMLstr&nb...
http://www.jb51.net//article/10871.htm
去除HTML代码中所有标签[code]<%’******************************’函数:RemoveHTML_A(strText)’参数:strText,待处理的字符串’作者:阿里西西’日期:2007/7/12’描述:去除HTML代码中所有标签’示例:<%=RemoveHTML_A("<b>欢迎光临阿里西西</b>")%>’******************************Function RemoveHTML_A(strText) Dim nPos1&...
http://www.jb51.net//article/10865.htm
方法一:createtextfile生成文件方法 [code]<%function WriteToFile(FileName,FileContent) set fso=server.createobject("scripting.filesystemobject") set fp=fso.createtextfile(server.mappath(FileName),,True) fp.write(FileContent) end func...
http://www.jb51.net//article/10620.htm
一、用htc实现。eye.htc<public:attach event="onfocus" onevent="example()" /><script language="javascript">function example(){this.blur();}</script><style>a {behavior:url(eye.htc)}</style>二、[html]<html> <head> <meta ht...
http://www.jb51.net//article/10328.htm
第一种:直接把要嵌入的JS文件属性设置为“嵌入的资源”。protected override void OnInit(EventArgs e){ base.OnInit (e); if(!base.Page.IsStartupScriptRegistered("Script")) { &nbs...
http://www.jb51.net//article/9732.htm
目前内容管理系统,展现给客户端具体数据的方式主要是:XML+XSL 或者Html两种方式。以CSDN为例,目前这两种方式都存在。比如:论坛,我们用的是XML+XSL方式,文档中心我们用的是SHTML方式。 根据我的使用心得。XML+XSL的方式,优点在于:数据层跟展现分开了。XML定义数据,XSL定义显示。比较明显的缺点就是1、有些用户在装了某些XML编辑器后,客户端解析XML+XSL就会出问题,用户直接看到的就是XML代码,不时总有人抱怨自己没法看CSDN的论坛了。原因基本上都...
http://www.jb51.net//article/9604.htm
第一种算法,存大一点问题。没有查出来 [code]static void Main(string[] args) { // // TODO: 在此处添加代码以启动应用程序 int singletitlemeasure=5; int n=1;//声明一个表示考试类型的int变量 Random ran=new Random(unchecked((int)DateTime.Now.Ticks)); int Int1Rand...
http://www.jb51.net//article/9409.htm
最简单的[code]function isValidDate(dateStr) { var matchArray = dateStr.match(/^[0-9]+-[0-1][0-9]-[0-3][0-9]$/) if (matchArray =...
http://www.jb51.net//article/8874.htm
我们知道,给JavaScript类添加原形(prototype)方法是很简单的。而且常用的有下面这两种方法,可是这两种方法在使用时有区别吗? JScript Class: function JSClass() { } Extends prototype method: JSClass.prototype.MethodA = function() { ...
http://www.jb51.net//article/7951.htm
在开发过程中,往往因为表单出错而返回页面的时候填写的信息都不见了,为了支持页面回跳,可以通过两种方法实现。第一,使用Header方法设置消息头Cache-controlheader(’Cache-control: private, must-revalidate’); //支持页面回跳 第二,使用session_cache_limiter方法//注意要写在session_start方法之前 session_cache_limiter(’private, must-revalidate’);  ...
http://www.jb51.net//article/7008.htm
在Javascript里,有两种使用正则的方法,一是创建一个正则表达式的实例,而是使用String对象里的正则表达相关的方法.正则表达式对象两种创建方法var my_regex=/[a-z]+/g; var my_regex=new ("[a-z]+","g");方法exec(string),对string进行正则处理,并返回匹配结果. test(string),测试string是否含有匹配结果字符串对象中的正则方法match(pattern) 根据pattern进行正则匹配,如果匹配到,返回匹配结果,如匹配不到返回null ...
http://www.jb51.net//article/6506.htm
