<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_Glacier Tribe</title><subtitle type="text">以技术引领生活</subtitle><id>http://feed.cnblogs.com/blog/u/41449/rss</id><updated>2010-03-25T11:46:30Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><generator>CNBlogs BlogServer</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/41449/rss"/><entry><id>http://www.cnblogs.com/glacierh/archive/2010/03/25/1696106.html</id><title type="text">iframe跨域高度自适应的实现</title><summary type="text">兼容ie和ff, chrome 主框架代码&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=gbk" /&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;支持跨域的框架高度自适应&amp;lt;hr&amp;gt;&amp;lt;iframe id="autoFrame" name="aut...</summary><published>2010-03-25T11:47:00Z</published><updated>2010-03-25T11:47:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2010/03/25/1696106.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2010/03/25/1696106.html"/><content type="html">兼容ie和ff, chrome &#xD;
&lt;p&gt;主框架代码&lt;/p&gt;&#xD;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=gbk" /&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;支持跨域的框架高度自适应&lt;br /&gt;&amp;lt;hr&amp;gt;&lt;br /&gt;&amp;lt;iframe id="autoFrame" name="autoFrame" src="&lt;a href="http://u.com/frame.html" target="_blank"&gt;http://u.com/frame.html&lt;/a&gt;"&lt;br /&gt;width="100%" height="0" scrolling="auto" onload="frameResize()" frameborder="0"&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;&amp;lt;hr&amp;gt;&lt;br /&gt;&amp;lt;script language='javascript'&amp;gt;&lt;br /&gt;function frameResize() {&lt;br /&gt;var frameName = 'autoFrame';&lt;br /&gt;if(typeof(h) == 'undefined') {&lt;br /&gt;&amp;nbsp;&amp;nbsp; h = 0;&lt;br /&gt;}&lt;br /&gt;if(h &amp;gt; 0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; document.getElementById(frameName).style.height = h + 'px';&lt;br /&gt;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; try&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; h = window.frames[frameName].frames['xclient'].location.hash.substring(1);&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; catch (e)&lt;br /&gt;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp; setTimeout(frameResize, 1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;&lt;/p&gt;&#xD;
&lt;p&gt;子域的框架代码&lt;/p&gt;&#xD;
&lt;p&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=gbk" /&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function ForResize()&lt;br /&gt;{&lt;br /&gt;var h = document.documentElement.scrollHeight || document.body.scrollHeight;&lt;br /&gt;if (document.getElementById('xclient'))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var divEl = document.getElementById('xclient').parentNode;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; divEl.parentNode.removeChild(divEl);&lt;br /&gt;}&lt;br /&gt;var el = document.createElement('div');&lt;br /&gt;el.innerHTML = '&amp;lt;iframe src="&lt;a href="http://u.com/xclient.html#" target="_blank"&gt;http://u.com/xclient.html#&lt;/a&gt; + h + '" name="xclient" id="xclient" width="0" height="0" style="display:none;"&amp;gt;&amp;lt;/iframe&amp;gt;';&lt;br /&gt;document.body.appendChild(el);&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body onload="ForResize()"&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;这里是框架的内容, 自适应这里的高度, 支持跨域&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;&lt;br /&gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;asdfsdf&lt;br /&gt;&amp;lt;br&amp;gt;asdfsdf&amp;lt;br&amp;gt;&lt;br /&gt;asdfsdf&amp;lt;br&amp;gt;&lt;br /&gt;asdfsdf&lt;br /&gt;&amp;lt;br&amp;gt;&lt;br /&gt;asdfsdf山高水低个的&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/p&gt;&#xD;
&lt;p&gt;同时在当前域的根目录增加xclient.html文件,内容为空即可, 避免返回404错误&lt;/p&gt;&lt;img src="http://www.cnblogs.com/glacierh/aggbug/1696106.html?type=1" width="1" height="1" alt=""/&gt;&lt;p&gt;&lt;a href="http://www.cnblogs.com/glacierh/archive/2010/03/25/1696106.html" target="_blank"&gt;本文链接&lt;/a&gt;&lt;/p&gt;</content></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2010/01/21/1653709.html</id><title type="text">正则表达式参考文档</title><summary type="text">引言 正则表达式（regular expression）就是用一个&amp;#8220;字符串&amp;#8221;来描述一个特征，然后去验证另一个&amp;#8220;字符串&amp;#8221;是否符合这个特征。比如 表达式&amp;#8220;ab+&amp;#8221; 描述的特征是&amp;#8220;一个 'a' 和 任意个 'b' &amp;#8221;，那么 'ab', 'abb', 'abbbbbbbbbb' 都符合这个特征。 正则表达式可以...</summary><published>2010-01-21T14:45:00Z</published><updated>2010-01-21T14:45:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2010/01/21/1653709.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2010/01/21/1653709.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/12/26/1633024.html</id><title type="text">JavaScript--正则表达式</title><summary type="text">正则表达式(regular expression)对象包含一个正则表达式模式(pattern)。它具有用正则表达式模式去匹配或代替一个串(string)中特定字符(或字符集合)的属性(properties)和方法(methods)。正则表达式构造函数： new RegExp("pattern"[,"flags"]);参数说明：pattern -- 一个正则表达式文本flags -- 如果存在，将是...</summary><published>2009-12-26T14:09:00Z</published><updated>2009-12-26T14:09:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/12/26/1633024.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/12/26/1633024.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/11/24/1609666.html</id><title type="text">解决VS2008 开发Windows Mobile 项目生成速度慢的问题（转）</title><summary type="text">最近用VS2008开发Windows Mobile程序，使用C#、.NET Compact Framework，发现项目生成速度比较慢。用VS2008打开项目后，开始一段时间生成速度还能忍受，时间一长，编译速度巨慢，最慢达到5分钟之久，实在无法忍受。决定找出VS2008生成时，做了什么花费时间的工作。从工具&amp;#224;选项进入&amp;#8220;选项&amp;#8221;对话框选择&amp;#8220;MSBuild项...</summary><published>2009-11-24T09:08:00Z</published><updated>2009-11-24T09:08:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/11/24/1609666.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/11/24/1609666.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/11/24/1609568.html</id><title type="text">IIS Server Application Error 图文解决方法(转)</title><summary type="text">转自http://hi.baidu.com/76512/blog/item/2064fc245c42ca368744f94b.html老郁闷，今天本来想继续把未完的ASP系统写完，本地浏览，出现了&amp;#8220;常见错误 不能打开注册表关键字&amp;#8221;等的提示，因为前两天是正常的，不可能是数据库连结语句出现问题，想着应该是IIS出错了。  于是，重启了IIS，问题依旧&amp;#8230;&amp;#8230;...</summary><published>2009-11-24T07:51:00Z</published><updated>2009-11-24T07:51:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/11/24/1609568.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/11/24/1609568.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/11/17/1604833.html</id><title type="text">正则表达式</title><summary type="text">1、正则表达式简介　　正则表达式提供了功能强大、灵活而又高效的方法来处理文本。正则表达式的全面模式匹配表示法可以快速地分析大量的文本以找到特定的字符模式；提取、编辑、替换或删除文本子字符串；或将提取的字符串添加到集合以生成报告。对于处理字符串（例如HTML处理、日志文件分析和HTTP标头分析）的许多应用程序而言，正则表达式是不可缺少的工具。　　.NET框架正则表达式并入了其他正则表达式实现的最常见...</summary><published>2009-11-17T10:58:00Z</published><updated>2009-11-17T10:58:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/11/17/1604833.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/11/17/1604833.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/08/16/1547060.html</id><title type="text">Effective C# 读书笔记（一）：C#语言元素</title><summary type="text">Effective C# 读书笔记</summary><published>2009-08-16T02:16:00Z</published><updated>2009-08-16T02:16:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/08/16/1547060.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/08/16/1547060.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/07/19/1526670.html</id><title type="text">浅析c#中多态的实现（修正版）</title><summary type="text">多态是面向对象的三个基本特性之一，因此在C#中正确理解和实现多态是非常重要的。对于C#初学者而言，可能已经理解了多态的概念，但对于多态的实现，特别是关键字new，virtual，override的使用，仍然有种一头雾水的感觉。我查阅几本书，在网上看了一些相关的资料，总算是小有收获，在这里分享一下我的理解，希望对初学者有所帮助。</summary><published>2009-07-19T13:05:00Z</published><updated>2009-07-19T13:05:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/07/19/1526670.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/07/19/1526670.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/07/11/1521476.html</id><title type="text">C# 委托的妙文(转)</title><summary type="text">委托和事件在 .Net Framework中的应用非常广泛，然而，较好地理解委托和事件对很多接触C#时间不长的人来说并不容易。它们就像是一道槛儿，过了这个槛的人，觉得真是太容易了，而没有过去的人每次见到委托和事件就觉得心里别（biè）得慌，混身不自在。本文中，我将通过两个范例由浅入深地讲述什么是委托、为什么要使用委托、事件的由来、.Net Framework中的委托和事件、委托和事件对Observer设计模式的意义，对它们的中间代码也做了讨论。</summary><published>2009-07-11T09:28:00Z</published><updated>2009-07-11T09:28:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/07/11/1521476.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/07/11/1521476.html"/></entry><entry><id>http://www.cnblogs.com/glacierh/archive/2009/07/11/1521445.html</id><title type="text">C#中的特性(Attributes)(翻译)(转)</title><summary type="text">介绍C#中的Attribute，深入浅出，容易理解</summary><published>2009-07-11T08:02:00Z</published><updated>2009-07-11T08:02:00Z</updated><author><name>Glacier</name><uri>http://www.cnblogs.com/glacierh/</uri></author><link rel="alternate" href="http://www.cnblogs.com/glacierh/archive/2009/07/11/1521445.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/glacierh/archive/2009/07/11/1521445.html"/></entry></feed>
