<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_红叶的专栏</title><subtitle type="text">世界很美好,我们要珍惜每一天</subtitle><id>http://feed.cnblogs.com/blog/u/35631/rss</id><updated>2009-10-26T02:55:54Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/35631/rss"/><entry><id>http://www.cnblogs.com/redleaf1995/archive/2009/10/26/1589793.html</id><title type="text">DotNetZip支持多种编码格式</title><summary type="text">前几天发布了[DotNetZip解决文件名称中文字符不显示的问题],解决了中文名称的显示问题,从几位热心网友的回帖来看,是希望能支持多种编码!!这两天抽了点时间,将源代码修改了一下,使其能够支持多种编码当然也可以不指定编码,这时将使用默认编码:GB2312下载地址: http://files.cnblogs.com/redleaf1995/DotNetZip2.rar</summary><published>2009-10-26T02:56:00Z</published><updated>2009-10-26T02:56:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2009/10/26/1589793.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2009/10/26/1589793.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2009/10/22/1587908.html</id><title type="text">DotNetZip解决文件名称中文字符不显示的问题</title><summary type="text">    由于工作需要,从网上下载了一个压缩组件--DotNetZip,使用感觉良好,但是目录中有中文名称的文件时,就会出现问题,要么名称显示不全,要么就显示若干个问号,很是令人苦恼!!    没办法,只好自己动手解决问题啦,一步步的跟踪定位,最后找到ZipEntry类的WriterHeader方法,估计是写文件头,文件名称应当写在这里...</summary><published>2009-10-22T03:00:00Z</published><updated>2009-10-22T03:00:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2009/10/22/1587908.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2009/10/22/1587908.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/25/1170693.html</id><title type="text">用javascript实现既能禁止页面鼠标右键查看 同时又能查看页面文本框右键菜单</title><summary type="text">在CSDN上，看到有人问这个问题。就是若把页面右键屏蔽的话，文本框上的右键菜单同样也给屏蔽，问如何能够将文本框的右键菜单显示出来。解决思路：首先，要在页面初始化时将页面右键菜单屏蔽其次，在欲解除右键限制的文本框获得焦点时，启用页面document的右键菜单。可以用在文本框中的onmousedown事件中，但推荐用在 onfocus事件中，若使用的onmousedown的话，则按键盘上摸拟右键的按键(在右win键右边)不响应；若用onfocus事件，则能顺利响应。最后，当该文本框失去焦点时，需将页面document的右键菜单屏蔽，用文本框的onblur事件即可。</summary><published>2008-04-25T03:02:00Z</published><updated>2008-04-25T03:02:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/25/1170693.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/25/1170693.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/24/1165647.html</id><title type="text">javascript中验证日期和日期时间格式 </title><summary type="text">在javascript中,我们经常要对日期格式加以判断,用正则表达式是最为快捷有效的,下面是验证日期格式(YYYY-MM-DD)和日期时间格式(YYYY-MM-DD hh:mm:ss)的正则表达式.var _reDataTime = /^([1-9]\d{3}-((0?[1-9])|(1[0-2]))-((0[1-9])|([1-2]?\d)|(3[0-1])))?$/ 	//日期格式,可为空  var _reTimeReg = /^[1-9][0-9]{3}-(0?[1-9]|1[0|1|2])-(0?[1-9]|[1|2][0-9]|3[0|1])\s(0?[1-9]|1[0-9]|2[0-3]):(0?[0-9]|[1|2|3|4|5][0-9]):(0?[0-9]|[1|2|3|4|5][0-9])$/;		//日期时间格式  下面验证某个字符</summary><published>2008-04-24T02:06:00Z</published><updated>2008-04-24T02:06:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/24/1165647.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/24/1165647.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/21/1163896.html</id><title type="text">一个javascript写的media player播放器 </title><summary type="text">一个javascript写的media player播放器界面较为简单，支持播放列表 。建立播放列表的步骤为：1)在文本框中输入媒体资源的地址，可以是HTTP地址，相对地址和绝对地址2)点击“添加到媒体列表”按钮，将媒体资源信息放到媒体列表中3)在媒体列表中，点击“添加”链接，将媒体加入到播放列表中4)重复若干遍，加入所有歌曲5)点击“播放选中的歌曲“，就开始播放 播放列表中的所有打勾的媒体文件</summary><published>2008-04-21T06:46:00Z</published><updated>2008-04-21T06:46:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/21/1163896.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/21/1163896.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/18/1159572.html</id><title type="text">setCapture和releaseCapture的小应用</title><summary type="text">web开发和windows开发最大的区别就是windows开发是有状态的,而web开发是无状态的,在windows中,一切操作都可以由程序来控制 ,除非强制执行ctrl+alt+del;但web操作就不一样了,即使执行很重要的操作,用户一点击浏览器关闭按钮,就将前面操作成果化为乌有.尽管可以在onunload事件中加些代码,让用户可以选择是否退出,但不能从根本上解决问题!        前几天,从网上看到setCapture方法,了解了一下,大体是这样的意思,当在IE文档某个区域中使用了这个方法,并且写了onclick或者 onmouse***等有关的鼠标事件方法,那么它就会监视相应的鼠标操作,即使你的鼠标移出了IE,它也一样能捕获到.如果你在某div中的 onclick事件中写了一个alert命令,这时,你点击的关闭按钮,它也一样会弹出alert窗口.releaseCapture与 s</summary><published>2008-04-18T03:25:00Z</published><updated>2008-04-18T03:25:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/18/1159572.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/18/1159572.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/17/1157709.html</id><title type="text">用javascript定义和操作自定义HTML元素</title><summary type="text">前面的文章探讨了使用javascript来操纵HTML元素的自定义属性，那么在HTML页面中，除了系统支持的HTML元素外，是否可以建立自定义的HTML元素呢？答案是可以的。自定义的HTML元素与系统自身的HTML元素地位相同，都可以用document.getElementById来获得，区别在于，自定义的HTML元素都是不可见的，类似于隐藏控件。使用自定义HTML元素，我们就可以建立多种隐藏控件，而不一定拘泥于只能建立input的hidden元素了；另外，还可以用于某些特定方面的需求！</summary><published>2008-04-17T03:28:00Z</published><updated>2008-04-17T03:28:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/17/1157709.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/17/1157709.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/16/1155761.html</id><title type="text">纯javascript的HTML在线编辑器</title><summary type="text">因工作需要，需使用javascript来操作HTML在线编辑器，在网上搜了许多，都是与服务器端相结合的，通过表单提交的方式来处理的。没办法，只好在此基础上对其进行更新！ 参考的myeditor控件不知是哪位高人写的。在此表示感谢！首先，定义一全局变量，用于向HtmlEditor传递值：</summary><published>2008-04-16T03:35:00Z</published><updated>2008-04-16T03:35:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/16/1155761.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/16/1155761.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/15/1154152.html</id><title type="text">javascript中的自定义属性的应用--避免频繁访问数据库</title><summary type="text">在WEB应用程序中，经常需要将数据从数据库中取出来，填充到HTML控件中，然后再存回数据库。如果数据并未改动，仍然占用网络资源存入数据库，则对网络资源是一种浪费，当页面数据很多和网络访问量很大时，就会形成性能的瓶颈。如何能在提交数据前进行判断呢？一种方法是建隐藏控件或定义全局变量，这种情况适用于控件很少时，若一个表单页面有数十项时，建隐藏控件太多反而降低性能，定义全局变量不容易记忆。另一种方法，就是在原有控件中增加自定义属性，这样，既能避免逻辑复杂，又能节省网络流量。</summary><published>2008-04-15T03:58:00Z</published><updated>2008-04-15T03:58:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/15/1154152.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/15/1154152.html"/></entry><entry><id>http://www.cnblogs.com/redleaf1995/archive/2008/04/14/1152317.html</id><title type="text">用javascript添加控件自定义属性</title><summary type="text">前面说过为HTML元素添加自定义的属性，是通过手动在HTML控件中加上，其实可以在javascript中动态添加：如有一文本框setAttribute中第一个参数是指明自定义属性的名称，第二个参数是初始值</summary><published>2008-04-14T02:42:00Z</published><updated>2008-04-14T02:42:00Z</updated><author><name>红色枫叶</name><uri>http://www.cnblogs.com/redleaf1995/</uri></author><link rel="alternate" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/14/1152317.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/redleaf1995/archive/2008/04/14/1152317.html"/></entry></feed>
