﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-C# Ajax 我的天空</title><link>http://www.cnblogs.com/aiqingayu/</link><description>C#、Ajax、ASP.NET 、ASP疯狂追求者</description><language>zh-cn</language><lastBuildDate>Sat, 11 Oct 2008 00:14:35 GMT</lastBuildDate><pubDate>Sat, 11 Oct 2008 00:14:35 GMT</pubDate><ttl>60</ttl><item><title>阳光季节（AJAX+C#开源无DLL留言本）</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/11/07/552508.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Tue, 07 Nov 2006 00:58:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/11/07/552508.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/552508.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/11/07/552508.html#Feedback</comments><slash:comments>54</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/552508.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/552508.html</trackback:ping><description><![CDATA[摘要: 小弟我的AJAX处女作，请大家丢砖头。<br>这个作品是国庆后写的，怀着AJAX刚入门的激情，把这个原来ASP驱动的留言本改成了AJAX驱动。本来早想在博客上开源下载，但始终想找个空间，昨天在博友上借了块地方传了上去，等大家浏览之后在考虑下载吧！<br>浏览地址：http://www.ronglake.com/demo/SeasonsGuestBook/SeasonsGuestBook.htm<br>可以在上面留个言支持一下，呵呵！<br>在学AJAX的路途中，真是一路坎坷，下载了N个留言本学习，结果都是把程序封装成DLL，实在是让我们这样的菜鸟无从下手，所以我把这个留言本贡献出来，希望对菜鸟们起个抛砖引玉的作用。<br>开发环境：VS2005、C#、.net2.0、Access、AJAX引擎是自己写的，没有用到AJAX的DLL。<br>运行环境：IE<br>功能除了留言本的基本功能，还有我博客前面提到的AJAX的后退标签，与AJAX无刷新换肤功能！<br>一直想用AJAX写个论坛，可惜我一个人的时间始终有限，但愿有湖南长沙的兄弟们支持~~~~<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/11/07/552508.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/552508.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42930/" target="_blank">[新闻]Silverlight 2.0正式版下周发布</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>仿WINDWS无限级Ajax菜单树升级1.3版(修补了严重BUG)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/543100.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Sat, 28 Oct 2006 14:34:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/543100.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/543100.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/543100.html#Feedback</comments><slash:comments>28</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/543100.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/543100.html</trackback:ping><description><![CDATA[摘要: WINDWS无限级Ajax菜单树又升级了(1.3版)<br><br>对以下BUG进行了修复<br>1.只能在文字上拖拽(不能从文件夹图标上拖)<br>2.拖拽后不刷新菜单的BUG（拖拽为子级菜单后，菜单原地不消失的情况。也就是有两个或多个重复菜单）<br>3.拖拽父级菜单到自己的子级菜单里面做子级，造成菜单丢失。<br><br>修复后<br>1.可以在文件夹和文字上拖拽，更接近WINDOWS文件夹。<br>2.自动刷新被拖拽菜单和插入菜单。<br>3.拖拽有子级的父级菜单将自动收缩，及不能拖到自己的子级菜单里面做子级。<br>4.优化了菜单的HTML代码，提高程序效率。<br><br>修改BUG的升级我就不发到原创区了，等大家建议新的功能升级后，再做发布！谢谢支持~~~&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/28/543100.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/543100.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42925/" target="_blank">[新闻]Wikipedia“变心”，力挺Ubuntu</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>仿WINDWS无限级Ajax菜单树升级1.2版(菜单名支持非法字符)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542756.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Sat, 28 Oct 2006 06:26:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542756.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/542756.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542756.html#Feedback</comments><slash:comments>3</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/542756.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/542756.html</trackback:ping><description><![CDATA[摘要: 1.1版出现了输入非法字符与空格后导致程序出错的BUG，我对程序再次升级为1.2版，这次将支持非法字符式的菜单名。<br>这点小小的改动，我就不发到原创区了，再此谢谢博友测试出的BUG。<br>新增功能如下&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542756.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/542756.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42925/" target="_blank">[新闻]Wikipedia“变心”，力挺Ubuntu</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>仿WINDWS无限级Ajax菜单树升级1.1版(添加了拖拽功能)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542510.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Sat, 28 Oct 2006 01:06:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542510.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/542510.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542510.html#Feedback</comments><slash:comments>39</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/542510.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/542510.html</trackback:ping><description><![CDATA[摘要: 小弟我因博友的建议，将昨天发表的模拟Windows文件夹的AJAX无限级菜单树进行了升级，添加了可以拖拽的功能。<br>不知道再次发到原创区是否合适，请大家多批评、仍砖！<br>开发环境：VS2005、C#、.net2.0、Access、AJAX引擎是自己写的，没有用到AJAX的DLL。<br>运行环境：IE<br>新增的功能与界面如下：&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/28/542510.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/542510.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42925/" target="_blank">[新闻]Wikipedia“变心”，力挺Ubuntu</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>Ajax打造仿WINDWS无限级菜单树(asp.net2.0+C#+Access)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/27/541766.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Fri, 27 Oct 2006 05:41:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/27/541766.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/541766.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/27/541766.html#Feedback</comments><slash:comments>23</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/541766.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/541766.html</trackback:ping><description><![CDATA[摘要: 小弟我在前面写的两篇文章里面，源码都只是用JS模拟了AJAX，实在没有象样的东西，在此表示歉意。<br>昨天写了个简单的模拟Windows文件夹的AJAX无限级菜单树，希望下载后对大家有点用处。<br>开发环境：VS2005、C#、.net2.0、AJAX引擎是自己写的，没有用到AJAX的DLL。<br>运行环境：IE<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/27/541766.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/541766.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42924/" target="_blank">[新闻]“不可破解”的加密技术出</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>在Ajax程序中实现无刷新换肤功能(asp.net2.0)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/26/539833.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Thu, 26 Oct 2006 00:15:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/26/539833.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/539833.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/26/539833.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/539833.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/539833.html</trackback:ping><description><![CDATA[摘要: 小弟我又来献丑了，不知道放在原创区是否合适，不行就用砖头飞我吧！<br>写了一年多的WEB程序，觉得程序中换肤的功能是非常吸引人眼球的技术。特别是在子父级的WEB平台与论坛上应用广泛，可以突出不同人的风格与个性。<br>从文章的标题上看是Ajax的无刷新换肤，只是本人比较喜欢Ajax程序而已，其实普通的WEB程序与Ajax实现换肤原理都一样，所以下面两种程序的换肤功能都会介绍。&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/26/539833.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/539833.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42923/" target="_blank">[新闻]13款Firefox Gmail扩展</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>按比例微缩图片的一段小小的JS代码</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/25/539621.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Wed, 25 Oct 2006 07:43:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/25/539621.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/539621.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/25/539621.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/539621.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/539621.html</trackback:ping><description><![CDATA[<span style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;自己写的一个非常简单的图片微缩JS代码，当然网上有很多类似的代码，在此确实是献丑了。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;主要方法写在SetImgSize.js里面
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Code_Closed_Image_153844 onclick="this.style.display='none'; Code_Closed_Text_153844.style.display='none'; Code_Open_Image_153844.style.display='inline'; Code_Open_Text_153844.style.display='inline';" height=16 src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" width=11 align=top><img id=Code_Open_Image_153844 style="DISPLAY: none" onclick="this.style.display='none'; Code_Open_Text_153844.style.display='none'; Code_Closed_Image_153844.style.display='inline'; Code_Closed_Text_153844.style.display='inline';" height=16 src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" width=11 align=top><span id=Code_Closed_Text_153844 style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">SetImgSize.js</span><span id=Code_Open_Text_153844 style="DISPLAY: none"><br><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="COLOR: #008080">&nbsp;1</span>&nbsp;<span style="COLOR: #008000">//</span><span style="COLOR: #008000">智能微缩图片JS方法</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">&nbsp;2</span>&nbsp;<span style="COLOR: #008000">//</span><span style="COLOR: #008000">参数：imgID（图片的标识ID）</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">&nbsp;3</span>&nbsp;<span style="COLOR: #008000">//</span><span style="COLOR: #008000">参数：maxWidth（图片的最大宽度，值为0则表示不限制宽度）</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">&nbsp;4</span>&nbsp;<span style="COLOR: #008000">//</span><span style="COLOR: #008000">参数：maxHeight（图片的最大高度，值为0则表示不限制高度）</span><span style="COLOR: #008000"><br></span><span style="COLOR: #008080">&nbsp;5</span>&nbsp;<span style="COLOR: #008000"></span><span style="COLOR: #0000ff">function</span><span style="COLOR: #000000">&nbsp;setImgSize(imgID,maxWidth,maxHeight)<br></span><span style="COLOR: #008080">&nbsp;6</span>&nbsp;<span style="COLOR: #000000">{<br></span><span style="COLOR: #008080">&nbsp;7</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">var</span><span style="COLOR: #000000">&nbsp;img&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;document.images[imgID];<br></span><span style="COLOR: #008080">&nbsp;8</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(maxWidth&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">&nbsp;9</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">10</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(img.height&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;maxHeight)<br></span><span style="COLOR: #008080">11</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">12</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.height&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;maxHeight;<br></span><span style="COLOR: #008080">13</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">14</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">15</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">16</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(maxHeight&nbsp;</span><span style="COLOR: #000000">&lt;</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #000000">1</span><span style="COLOR: #000000">)<br></span><span style="COLOR: #008080">17</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">18</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(img.width&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;maxWidth)<br></span><span style="COLOR: #008080">19</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">20</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.width&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;maxWidth;<br></span><span style="COLOR: #008080">21</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">22</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">23</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">24</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">(img.height&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;maxHeight&nbsp;</span><span style="COLOR: #000000">||</span><span style="COLOR: #000000">&nbsp;img.width&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;maxWidth)<br></span><span style="COLOR: #008080">25</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">26</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">if</span><span style="COLOR: #000000">((img.height&nbsp;</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">&nbsp;maxHeight)&nbsp;</span><span style="COLOR: #000000">&gt;</span><span style="COLOR: #000000">&nbsp;(img.width&nbsp;</span><span style="COLOR: #000000">/</span><span style="COLOR: #000000">&nbsp;maxWidth))<br></span><span style="COLOR: #008080">27</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">28</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.height&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;maxHeight;<br></span><span style="COLOR: #008080">29</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">30</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">else</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">31</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br></span><span style="COLOR: #008080">32</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;img.width&nbsp;</span><span style="COLOR: #000000">=</span><span style="COLOR: #000000">&nbsp;maxWidth;<br></span><span style="COLOR: #008080">33</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">34</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">return</span><span style="COLOR: #000000">&nbsp;</span><span style="COLOR: #0000ff">true</span><span style="COLOR: #000000">;<br></span><span style="COLOR: #008080">35</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;}<br></span><span style="COLOR: #008080">36</span>&nbsp;<span style="COLOR: #000000">}</span></span></div>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;功能实现原理是在图片加载完毕后（onload事件）用JS实现微缩。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;下面是一个测试用的文件test.htm
<div style="BORDER-RIGHT: #cccccc 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #cccccc 1px solid; PADDING-LEFT: 4px; FONT-SIZE: 13px; PADDING-BOTTOM: 4px; BORDER-LEFT: #cccccc 1px solid; WIDTH: 98%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: #cccccc 1px solid; BACKGROUND-COLOR: #eeeeee"><img id=Code_Closed_Image_154020 onclick="this.style.display='none'; Code_Closed_Text_154020.style.display='none'; Code_Open_Image_154020.style.display='inline'; Code_Open_Text_154020.style.display='inline';" height=16 src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif" width=11 align=top><img id=Code_Open_Image_154020 style="DISPLAY: none" onclick="this.style.display='none'; Code_Open_Text_154020.style.display='none'; Code_Closed_Image_154020.style.display='inline'; Code_Closed_Text_154020.style.display='inline';" height=16 src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif" width=11 align=top><span id=Code_Closed_Text_154020 style="BORDER-RIGHT: #808080 1px solid; BORDER-TOP: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BORDER-BOTTOM: #808080 1px solid; BACKGROUND-COLOR: #ffffff">test.htm</span><span id=Code_Open_Text_154020 style="DISPLAY: none"><br><!--<br><br>Code highlighting produced by Actipro CodeHighlighter (freeware)<br>http://www.CodeHighlighter.com/<br><br>--><span style="COLOR: #008080">&nbsp;1</span>&nbsp;<span style="COLOR: #0000ff">&lt;!</span><span style="COLOR: #ff00ff">DOCTYPE&nbsp;html&nbsp;PUBLIC&nbsp;"-//W3C//DTD&nbsp;XHTML&nbsp;1.0&nbsp;Transitional//EN"&nbsp;"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;2</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">html&nbsp;</span><span style="COLOR: #ff0000">xmlns</span><span style="COLOR: #0000ff">="http://www.w3.org/1999/xhtml"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;3</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;4</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">title</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000">测试</span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">title</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;5</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">script&nbsp;</span><span style="COLOR: #ff0000">language</span><span style="COLOR: #0000ff">="javascript"</span><span style="COLOR: #ff0000">&nbsp;type</span><span style="COLOR: #0000ff">="text/javascript"</span><span style="COLOR: #ff0000">&nbsp;src</span><span style="COLOR: #0000ff">="setImgSize.js"</span><span style="COLOR: #0000ff">&gt;&lt;/</span><span style="COLOR: #800000">script</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;6</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">head</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;7</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">&nbsp;8</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;限定了宽度150px<br></span><span style="COLOR: #008080">&nbsp;9</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;&lt;</span><span style="COLOR: #800000">img&nbsp;</span><span style="COLOR: #ff0000">alt</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000">&nbsp;id</span><span style="COLOR: #0000ff">="img1"</span><span style="COLOR: #ff0000">&nbsp;onload</span><span style="COLOR: #0000ff">="setImgSize('img1',150,0);"</span><span style="COLOR: #ff0000">&nbsp;src</span><span style="COLOR: #0000ff">="http://img.poco.cn/photo/20060602/972374149620060602140117_1.jpg"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">10</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000">限定了高度150px<br></span><span style="COLOR: #008080">11</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;&lt;</span><span style="COLOR: #800000">img&nbsp;</span><span style="COLOR: #ff0000">alt</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000">&nbsp;id</span><span style="COLOR: #0000ff">="img2"</span><span style="COLOR: #ff0000">&nbsp;onload</span><span style="COLOR: #0000ff">="setImgSize('img2',0,150);"</span><span style="COLOR: #ff0000">&nbsp;src</span><span style="COLOR: #0000ff">="http://img.poco.cn/photo/20060602/972374149620060602140117_4.jpg"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">12</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000">限定了高度150px、宽度150px<br></span><span style="COLOR: #008080">13</span>&nbsp;<span style="COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="COLOR: #0000ff">&lt;</span><span style="COLOR: #800000">br&nbsp;</span><span style="COLOR: #0000ff">/&gt;&lt;</span><span style="COLOR: #800000">img&nbsp;</span><span style="COLOR: #ff0000">alt</span><span style="COLOR: #0000ff">=""</span><span style="COLOR: #ff0000">&nbsp;id</span><span style="COLOR: #0000ff">="img3"</span><span style="COLOR: #ff0000">&nbsp;onload</span><span style="COLOR: #0000ff">="setImgSize('img3',150,150);"</span><span style="COLOR: #ff0000">&nbsp;src</span><span style="COLOR: #0000ff">="http://static.flickr.com/46/147572720_8b25471150_o.jpg"</span><span style="COLOR: #ff0000">&nbsp;</span><span style="COLOR: #0000ff">/&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">14</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">body</span><span style="COLOR: #0000ff">&gt;</span><span style="COLOR: #000000"><br></span><span style="COLOR: #008080">15</span>&nbsp;<span style="COLOR: #000000"></span><span style="COLOR: #0000ff">&lt;/</span><span style="COLOR: #800000">html</span><span style="COLOR: #0000ff">&gt;</span></span></div>
</span><font size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;就写到这里了，呵呵，是不是很简单啊！<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;源码下载 <a title=SetImgSize.rar href="http://www.cnblogs.com/Files/aiqingayu/SetImgSize.rar">SetImgSize.rar</a></font><img src ="http://www.cnblogs.com/aiqingayu/aggbug/539621.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42922/" target="_blank">[新闻]支持鼠标手势的Chrome中文修改版</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>Ajax程序中,自己实现页面前进、后退、与标签功能(asp.net2.0)</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/10/24/538653.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Tue, 24 Oct 2006 09:55:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/10/24/538653.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/538653.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/10/24/538653.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/538653.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/538653.html</trackback:ping><description><![CDATA[摘要: Ajax刚入门不久，便写了一个Ajax+C#的留言本程序，在实际写程序中，渐渐发现了Ajax程序许多不成熟的地方，其中比较典型的就是页面的前进、后退与标签问题，因为Ajax整个程序是采用无刷新与服务器进行交互，所以导致了大部分浏览器的前进后退的功能按钮失效，当然标签功能也失去了意义，如果用Ajax开发一个论坛的话，在堆积如山的帖子中必然有经典，但是我们在关闭浏览器后，就得重新从头开始寻找，这样实在是太痛苦了，所以为了弥补这个缺点，大家各出奇招，现在我向大家描述一下，在我的程序中，怎样实现这些功能。<br>&nbsp;&nbsp;<a href='http://www.cnblogs.com/aiqingayu/archive/2006/10/24/538653.html'>阅读全文</a><img src ="http://www.cnblogs.com/aiqingayu/aggbug/538653.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42921/" target="_blank">[新闻]调查显示：开源技术已进入企业主流</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item><item><title>写下我的第一笔</title><link>http://www.cnblogs.com/aiqingayu/archive/2006/09/18/507162.html</link><dc:creator>高达小强</dc:creator><author>高达小强</author><pubDate>Mon, 18 Sep 2006 02:16:00 GMT</pubDate><guid>http://www.cnblogs.com/aiqingayu/archive/2006/09/18/507162.html</guid><wfw:comment>http://www.cnblogs.com/aiqingayu/comments/507162.html</wfw:comment><comments>http://www.cnblogs.com/aiqingayu/archive/2006/09/18/507162.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/aiqingayu/comments/commentRss/507162.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/aiqingayu/services/trackbacks/507162.html</trackback:ping><description><![CDATA[<span style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; 欢迎大家的光临！</span>&nbsp;<br><span style="FONT-SIZE: 10pt">&nbsp;&nbsp;&nbsp; 小弟我对Ajax、C#、ASP.NET、ASP有着疯狂的追求，并且喜欢原创！我会不定时的发布一些文章与作品，请各位高手，牛人多仍砖头~~~</span><img src ="http://www.cnblogs.com/aiqingayu/aggbug/507162.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/42911/" target="_blank">[新闻]《第一财经周刊》:捅破下载软件公司的盈利窗户纸</a><br/><a href="http://www.cnblogs.com" target="_blank">博客园首页</a>&nbsp;<a href="http://space.cnblogs.com" target="_blank">社区</a>&nbsp;<a href="http://news.cnblogs.com" target="_blank">新闻频道</a>&nbsp;<a href="http://space.cnblogs.com/group.htm" target="_blank">小组</a>&nbsp;<a href="http://space.cnblogs.com/q" target="_blank">博问</a>&nbsp;<a href="http://wz.cnblogs.com/" target="_blank">网摘</a>&nbsp;<a href="http://space.cnblogs.com/ing" target="_blank">闪存</a>]]></description></item></channel></rss>