<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<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>WEB|WAP|网站建设|网站设计|网站制作|网站开发</title><link>http://www.hzzhit.com/blog/</link><description>兆合信息：专业的网站建设和网站制作公司</description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 81206</generator><language>zh-CN</language><copyright>Copyright 2008-2009 杭州兆合信息技术有限公司. All Rights Reserved.</copyright><pubDate>Mon, 12 Dec 2011 00:08:29 +0800</pubDate><item><title>Ionic’s Isapi Rewrite Filter（IIRF）配置详解</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/Windows2003/163.html</link><pubDate>Mon, 12 Dec 2011 00:08:00 +0800</pubDate><guid>http://www.hzzhit.com/blog/Windows2003/163.html</guid><description><![CDATA[<p>对于ISAPI Rewrite我想大家再熟悉不过了，它的伪静态URL重写功能已经被广大服务器所应用，但是ISAPI Rewrite不是免费的，那么有没有一款软件功能与ISAPI Rewrite相同，但又是免费的呢，而今答案是肯定的，Ionic&rsquo;s Isapi Rewrite Filter 就是一款就可以实现ISAPI Rewrite相同的功能并且又是免费的，简称：IIRF。下面就对此做初步介绍。</p><p>Ionic&rsquo;s Isapi Rewrite Filter 官方网站：<a href="http://iirf.codeplex.com/"><span>http://iirf.codeplex.com</span></a><br />下载地址：<a href="http://iirf.codeplex.com/releases/view/14394"><span>http://iirf.codeplex.com/releases/view/14394</span></a><br />官方使用在线帮助手册：<a href="http://cheeso.members.winisp.net/Iirf20Help/frames.htm"><span>http://cheeso.members.winisp.net/Iirf20Help/frames.htm</span></a></p><p><strong>IIRF文件下载</strong><br />将下载下来的文件解压，只要找到bin目录下的iirf.dll文件即可，其他文件都是没有太大用处的，找到这个文件后将其复制到一个合适的目录，我的目的就是多个网站都用这一个dll，所以我将它放置在一个自己整理的服务应用文件夹内；确保该文件夹IIS_WPG或者IUSR_XXX之类的账号拥有权限访问；</p><p><strong>安装配置（IIS7）</strong><br />以下以IIS7.5为例：<br />1、打开IIS，找到ISAPI筛选器，如图：</p><p>添加iirf.dll，如图：</p><p><img style="cursor: pointer" onclick="javascript:window.open(this.src);" alt="" src="http://tech.cncms.com/tech/UploadPic/2011-3/2011310232054962.jpg" onload="return imgzoom(this,550);" border="0" /></p><p>2、然后打开处理程序映射，如图，这一步可以省略：</p><p>添加脚本映射，如图：</p><p>3、最后，设置iirf.ini和iirf.dll权限，如图，如果iirf.dll所在分区为FAT32格式，这一步可以省略：<br />注意：需要添加IIS_IUSRS和NETWORK SERVICE两个用户的读写权限。</p><p><img style="cursor: pointer" onclick="javascript:window.open(this.src);" alt="" src="http://www.hzzhit.com/blog/upload/201112120008278730.gif" onload="return imgzoom(this,550);" border="0" /></p><p>4、查看设置状态：<br />--在IIRF.ini文件中输入以下内容--<br />#开启设置状态<br />StatusUrl iirfStatus<br />StatusInquiry ON<br />#设置日志<br />RewriteLog D:\inetpub\IonicIsapiRewriter\iirfLog.out<br />RewriteLogLevel 5<br />#开启RewriteEngine<br />RewriteFilterPriority HIGH<br />NotifyLog ON<br />RewriteEngine ON<br />然后在浏览器窗口中输入网址+iirfstatus即可查看设置状态<br /><a href="http://localhost:81/iirfstatus"><span>http://localhost:81/iirfstatus</span></a><span class="Apple-converted-space">&nbsp;</span>（本人是在本地测试的）</p><p><img style="cursor: pointer" onclick="javascript:window.open(this.src);" alt="" src="http://tech.cncms.com/tech/UploadPic/2011-3/2011310232058881.gif" onload="return imgzoom(this,550);" border="0" /></p><p><strong>关于iirf.ini规则的编写</strong><br />规则文件格式基本照搬ISAPI Rewrite，要作修改，如：<br />RewriteRule [源URL正则条件] [目的URL]<br />ISAPI Rewrite与IIRF的区别就在[目的URL]，ISAPI Rewrite的要转义，而IIRF不用转义。<br />如果有现成的ISAPI Rewrite的规则可以直接复制过来，将[目的URL]中的反斜杠（\）一个个删除就可以用在IIRF中用了。<br />值得一提的是，INI配置文件是动态加载的，我们在配置文件的时候不需要重新启动IIS就可以看到配置文件的结果；<br />好了，由于篇幅所限，就到此吧，如果有什么疑问可以一起交流。</p><p><strong>全局配置（iirfglobal.ini）</strong><br />如果我们想要作用在所有加载了这个dll的网站的配置，我们可以在dll文件夹创建一个iirfglobal.ini文件，这个文件可以使所有加载了同文件夹内的DLL的所有网站使用这个相同的配置，单个配置就需要在每个网站的根目录创建一个文件名iirf.ini的文件，并在其中编写规则即可；</p><p><strong>IIRF的Log日志设置</strong><br />RewriteLog c:\temp\iirfLog.outRewriteLogLevel 0<br />在我们调试规则的时候，我们可能需要看一下调试的内容Log一边纠正规则：<br />路径设置，确保文件夹的存在，否则会生成错误系统Log，但不影响IIRF的运行日志的等级,默认值为0<br />0 &ndash; 不会记录日志 1 &ndash; 少许的日志 2 &ndash; 比较多的日志 3 &ndash; 比较详细的日志 4 &ndash; 详细的日志，并会跟踪server variable和替换的字符串。<br />5 &ndash; 详细的日志，包括日志文件更改的事件，建议方便调试的时候使用。</p><p><strong>规则格式</strong><br />RewriteRule url-pattern replacement-string [modifiers]<br />url-pattern: 匹配的正则表达式（必需）</p><p>replacement-string: 要替换的字符串（必需）</p><p>modifiers: 有关对RewriteRule的操作标记，可选选项 modifiers的功能。</p><p>下面列举了它的所有值，允许组合（如[R,L]）：</p><p>R = Redirect（URL跳转到&lt;replacement-string&gt;地址）</p><p>NF = Not found（返回404错误给用户，但该文件并未移除，还是保留在网站中）</p><p>L = Last test if match（如果已经匹配，将不在继续匹配下去）</p><p>F = Forbidden（跟NF标志相似）</p><p>I = Do case-insensitive matching（不区分大小写）</p><p>U = Store original url in server Variable HTTP_X_REWRITE_URL（保存原始的url到HTTP_X_REWRITE_URL服务器变量中）</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/Windows2003/163.html" target="_blank">继续阅读《Ionic’s Isapi Rewrite Filter（IIRF）配置详解》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/Windows2003/">Windows2003</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=IIRF">IIRF</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/Windows2003/163.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/Windows2003/163.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>Windows2003</category><comments>http://www.hzzhit.com/blog/Windows2003/163.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=163</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=163&amp;key=cd413fde</trackback:ping></item><item><title>iisreset 重启IIS失败(不支持此接口)</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/Windows2003/162.html</link><pubDate>Sun, 11 Dec 2011 15:03:57 +0800</pubDate><guid>http://www.hzzhit.com/blog/Windows2003/162.html</guid><description><![CDATA[<p><font color="#cc0000" size="4">通过CMD输入</font></p><p><font color="#cc0000" size="4">regsvr32 iisrstap.dll</font></p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/Windows2003/162.html" target="_blank">继续阅读《iisreset 重启IIS失败(不支持此接口)》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/Windows2003/">Windows2003</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=iisrstap%2Edll">iisrstap.dll</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/Windows2003/162.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/Windows2003/162.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>Windows2003</category><comments>http://www.hzzhit.com/blog/Windows2003/162.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=162</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=162&amp;key=7393fa18</trackback:ping></item><item><title>在VS2010中将AspNet网站编译成一个DLL </title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/asp-net/161.html</link><pubDate>Mon, 28 Nov 2011 22:03:47 +0800</pubDate><guid>http://www.hzzhit.com/blog/asp-net/161.html</guid><description><![CDATA[<p>在VS2010中创建一个网站，部署时网站的dll是动态生成的，每次编译产生的dll的名称都不一样，这样会导致在部署时必须将aspx页面和dll一起部署，尽管有时你可能只修改了后台代码。这样就变得很不方便，在VS2010中可以借助一个插件是网站生成一个固定名称的dll。</p><p>1 从下面的链接地址中下载 Visual Studio&reg; 2010 Web Deployment Projects</p><p><a href="http://www.hzzhit.com/blog/upload/201111282206470580.png" sizcache="8" sizset="5" jquery1322489175906="68"><img title="2011-04-06_113023" style="display: inline; filter: ; zoom: 1" alt="" src="http://www.hzzhit.com/blog/upload/201111282206540571.png" width="388" jquery1322489175906="67" loaded="true" original="upload/201111282206540571.png" /></a></p><p>3 点击Add Web Deployment Project，弹出如下对话框</p><p sizcache="8" sizset="6" jquery1322489175906="78"><a href="http://www.hzzhit.com/blog/upload/201111282206550835.png" sizcache="8" sizset="6" jquery1322489175906="77"><img title="2011-04-06_113422" style="display: inline; filter: ; zoom: 1" alt="" src="http://www.hzzhit.com/blog/upload/201111282206550835.png" width="531" jquery1322489175906="79" loaded="true" original="upload/201111282206550835.png" /></a></p><p>4 名称和路径可以修改，一般默认就好，点击OK，在解决方案中会生成一个部署项目</p><p>5 在部署项目点击右键，点击&ldquo;生成&rdquo;</p><p sizcache="8" sizset="7" jquery1322489175906="83"><a href="http://www.hzzhit.com/blog/upload/201111282206550033.png" sizcache="8" sizset="7" jquery1322489175906="82"><img title="2011-04-06_113814" style="display: inline; filter: ; zoom: 1" alt="" src="http://www.hzzhit.com/blog/upload/201111282206550033.png" width="377" jquery1322489175906="81" loaded="true" original="upload/201111282206550033.png" /></a></p><p>6 生成成功后，在部署项目的目录中会产生一个Release目录，Release目录中就是项目发布的所有文件，在bin目录中可以看到并没有之前那样有很多不规则命名的dll，生成的dll的名称和前面添加部署项目时所填写的名称相同，为EduAppWeb_deploy</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/asp-net/161.html" target="_blank">继续阅读《在VS2010中将AspNet网站编译成一个DLL 》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/asp-net/">ASP.NET</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=dll">dll</a>&nbsp;&nbsp;<a href="http://www.hzzhit.com/blog/catalog.asp?tags=vs2010">vs2010</a>&nbsp;&nbsp;<a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E7%BC%96%E8%AF%91">编译</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/asp-net/161.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="http://www.hzzhit.com/blog/ASP/131.html">用vb编写asp组件(dll)示例(阿里西西版本)</a> (2010-6-8 1:26:56)  </li><li><a href="http://www.hzzhit.com/blog/ASP/asp2dll.html">Asp编译（封装）成dll的方法 </a> (2009-6-6 1:30:28)  </li></ul>]]></description><category>ASP.NET</category><comments>http://www.hzzhit.com/blog/asp-net/161.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=161</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=161&amp;key=34c7b15b</trackback:ping></item><item><title>JS获取时间大全</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/JS/160.html</link><pubDate>Fri, 11 Nov 2011 11:32:00 +0800</pubDate><guid>http://www.hzzhit.com/blog/JS/160.html</guid><description><![CDATA[<p>&lt;SCRIPT LANGUAGE=&quot;JavaScript&quot;&gt;<br />var myDate = new Date();<br />myDate.getYear();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前年份(2位)<br />myDate.getFullYear();&nbsp;&nbsp; //获取完整的年份(4位,1970-????)<br />myDate.getMonth();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前月份(0-11,0代表1月)<br />myDate.getDate();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前日(1-31)<br />myDate.getDay();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前星期X(0-6,0代表星期天)<br />myDate.getTime();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前时间(从1970.1.1开始的毫秒数)<br />myDate.getHours();&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取当前小时数(0-23)<br />myDate.getMinutes();&nbsp;&nbsp;&nbsp; //获取当前分钟数(0-59)<br />myDate.getSeconds();&nbsp;&nbsp;&nbsp; //获取当前秒数(0-59)<br />myDate.getMilliseconds();&nbsp;&nbsp; //获取当前毫秒数(0-999)<br />myDate.toLocaleDateString();&nbsp;&nbsp;&nbsp; //获取当前日期<br />var mytime=myDate.toLocaleTimeString();&nbsp;&nbsp;&nbsp; //获取当前时间<br />myDate.toLocaleString( );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //获取日期与时间<br />if (mytime&lt;&quot;23:30:00&quot;){<br />&nbsp;&nbsp; alert(mytime);<br />}<br />&lt;/SCRIPT&gt;</p><p>2.&lt;% //日期转换<br />java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat(&quot;yyyy-MM-dd HH:mm:ss&quot;); <br />java.util.Date currentTime = new java.util.Date();//得到当前系统时间 <br />String str_date1 = formatter.format(currentTime); //将日期时间格式化 <br />String str_date2 = currentTime.toString(); //将Date型日期时间转换成字符串形式 <br />%&gt;</p><p>1. 2008年11月13日 星期四 上午 10:13:46 <br />&lt;div id=&quot;Clock&quot; align=&quot;center&quot; style=&quot;font-size: 15px; color:#000000&quot;&gt;&lt;/div&gt;<br />&lt;script&gt;<br />&nbsp;&nbsp; function tick() {<br />&nbsp;&nbsp; var hours, minutes, seconds, xfile;<br />&nbsp;&nbsp; var intHours, intMinutes, intSeconds;<br />&nbsp;&nbsp; var today, theday;<br />&nbsp;&nbsp; today = new Date();<br />&nbsp;&nbsp; function initArray(){<br />&nbsp;&nbsp; this.length=initArray.arguments.length<br />&nbsp;&nbsp; for(var i=0;i&lt;this.length;i++)<br />&nbsp;&nbsp; this[i+1]=initArray.arguments[i] }<br />&nbsp;&nbsp; var d=new initArray(<br />&nbsp;&nbsp; &quot; 星期日&quot;,<br />&nbsp;&nbsp; &quot; 星期一&quot;,<br />&nbsp;&nbsp; &quot; 星期二&quot;,<br />&nbsp;&nbsp; &quot; 星期三&quot;,<br />&nbsp;&nbsp; &quot; 星期四&quot;,<br />&nbsp;&nbsp; &quot; 星期五&quot;,<br />&nbsp;&nbsp; &quot; 星期六&quot;);<br />&nbsp;&nbsp; theday = today.getYear()+&quot;年&quot; + [today.getMonth()+1]+&quot;月&quot; +today.getDate()+&quot;日&quot; + d[today.getDay()+1];<br />&nbsp;&nbsp; intHours = today.getHours();<br />&nbsp;&nbsp; intMinutes = today.getMinutes();<br />&nbsp;&nbsp; intSeconds = today.getSeconds();<br />&nbsp;&nbsp; if (intHours == 0) {<br />&nbsp;&nbsp; hours = &quot;12:&quot;;<br />&nbsp;&nbsp; xfile = &quot; 午夜 &quot;;<br />&nbsp;&nbsp; } else if (intHours &lt; 12) {<br />&nbsp;&nbsp; hours = intHours+&quot;:&quot;;<br />&nbsp;&nbsp; xfile = &quot; 上午 &quot;;<br />&nbsp;&nbsp; } else if (intHours == 12) {<br />&nbsp;&nbsp; hours = &quot;12:&quot;;<br />&nbsp;&nbsp; xfile = &quot; 正午 &quot;;<br />&nbsp;&nbsp; } else {<br />&nbsp;&nbsp; intHours = intHours - 12<br />&nbsp;&nbsp; hours = intHours + &quot;:&quot;;<br />&nbsp;&nbsp; xfile = &quot; 下午 &quot;;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; if (intMinutes &lt; 10) {<br />&nbsp;&nbsp; minutes = &quot;0&quot;+intMinutes+&quot;:&quot;;<br />&nbsp;&nbsp; } else {<br />&nbsp;&nbsp; minutes = intMinutes+&quot;:&quot;;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; if (intSeconds &lt; 10) {<br />&nbsp;&nbsp; seconds = &quot;0&quot;+intSeconds+&quot; &quot;;<br />&nbsp;&nbsp; } else {<br />&nbsp;&nbsp; seconds = intSeconds+&quot; &quot;;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; timeString = theday+xfile+hours+minutes+seconds;<br />&nbsp;&nbsp; Clock.innerHTML = timeString;<br />&nbsp;&nbsp; window.setTimeout(&quot;tick();&quot;, 100);<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; window.onload = tick;<br />&lt;/script&gt;</p><p><br />2. 2008年11月13 星期四 丙戌年 二月十五<br />&lt;script language=&quot;JavaScript&quot;&gt;<br />var bsYear;<br />var bsDate;<br />var bsWeek;<br />var arrLen=8; //数组长度<br />var sValue=0; //当年的秒数<br />var dayiy=0; //当年第几天<br />var miy=0; //月份的下标<br />var iyear=0; //年份标记<br />var dayim=0; //当月第几天<br />var spd=86400; //每天的秒数</p><p>var year1999=&quot;30;29;29;30;29;29;30;29;30;30;30;29&quot;; //354<br />var year2000=&quot;30;30;29;29;30;29;29;30;29;30;30;29&quot;; //354<br />var year2001=&quot;30;30;29;30;29;30;29;29;30;29;30;29;30&quot;; //384<br />var year2002=&quot;30;30;29;30;29;30;29;29;30;29;30;29&quot;; //354<br />var year2003=&quot;30;30;29;30;30;29;30;29;29;30;29;30&quot;; //355<br />var year2004=&quot;29;30;29;30;30;29;30;29;30;29;30;29;30&quot;; //384<br />var year2005=&quot;29;30;29;30;29;30;30;29;30;29;30;29&quot;; //354<br />var year2006=&quot;30;29;30;29;30;30;29;29;30;30;29;29;30&quot;;</p><p>var month1999=&quot;正月;二月;三月;四月;五月;六月;七月;八月;九月;十月;十一月;十二月&quot;<br />var month2001=&quot;正月;二月;三月;四月;闰四月;五月;六月;七月;八月;九月;十月;十一月;十二月&quot;<br />var month2004=&quot;正月;二月;闰二月;三月;四月;五月;六月;七月;八月;九月;十月;十一月;十二月&quot;<br />var month2006=&quot;正月;二月;三月;四月;五月;六月;七月;闰七月;八月;九月;十月;十一月;十二月&quot;<br />var Dn=&quot;初一;初二;初三;初四;初五;初六;初七;初八;初九;初十;十一;十二;十三;十四;十五;十六;十七;十八;十九;二十;廿一;廿二;廿三;廿四;廿五;廿六;廿七;廿八;廿九;三十&quot;;</p><p>var Ys=new Array(arrLen);<br />Ys[0]=919094400;Ys[1]=949680000;Ys[2]=980265600;<br />Ys[3]=1013443200;Ys[4]=1044028800;Ys[5]=1074700800;<br />Ys[6]=1107878400;Ys[7]=1138464000;</p><p>var Yn=new Array(arrLen); //农历年的名称<br />Yn[0]=&quot;己卯年&quot;;Yn[1]=&quot;庚辰年&quot;;Yn[2]=&quot;辛巳年&quot;;<br />Yn[3]=&quot;壬午年&quot;;Yn[4]=&quot;癸未年&quot;;Yn[5]=&quot;甲申年&quot;;<br />Yn[6]=&quot;乙酉年&quot;;Yn[7]=&quot;丙戌年&quot;;<br />var D=new Date();<br />var yy=D.getYear();<br />var mm=D.getMonth()+1;<br />var dd=D.getDate();<br />var ww=D.getDay();<br />if (ww==0) ww=&quot;&lt;font color=RED&gt;星期日&lt;/font&gt;&quot;;<br />if (ww==1) ww=&quot;星期一&quot;;<br />if (ww==2) ww=&quot;星期二&quot;;<br />if (ww==3) ww=&quot;星期三&quot;;<br />if (ww==4) ww=&quot;星期四&quot;;<br />if (ww==5) ww=&quot;星期五&quot;;<br />if (ww==6) ww=&quot;&lt;font color=green&gt;星期六&lt;/font&gt;&quot;;<br />ww=ww;<br />var ss=parseInt(D.getTime() / 1000);<br />if (yy&lt;100) yy=&quot;19&quot;+yy;</p><p>for (i=0;i&lt;arrLen;i++)<br />if (ss&gt;=Ys[i]){<br />iyear=i;<br />sValue=ss-Ys[i]; //当年的秒数<br />}<br />dayiy=parseInt(sValue/spd)+1; //当年的天数</p><p>var dpm=year1999;<br />if (iyear==1) dpm=year2000;<br />if (iyear==2) dpm=year2001;<br />if (iyear==3) dpm=year2002;<br />if (iyear==4) dpm=year2003;<br />if (iyear==5) dpm=year2004;<br />if (iyear==6) dpm=year2005;<br />if (iyear==7) dpm=year2006;<br />dpm=dpm.split(&quot;;&quot;);</p><p>var Mn=month1999;<br />if (iyear==2) Mn=month2001;<br />if (iyear==5) Mn=month2004;<br />if (iyear==7) Mn=month2006;<br />Mn=Mn.split(&quot;;&quot;);</p><p>var Dn=&quot;初一;初二;初三;初四;初五;初六;初七;初八;初九;初十;十一;十二;十三;十四;十五;十六;十七;十八;十九;二十;廿一;廿二;廿三;廿四;廿五;廿六;廿七;廿八;廿九;三十&quot;;<br />Dn=Dn.split(&quot;;&quot;);</p><p>dayim=dayiy;</p><p>var total=new Array(13);<br />total[0]=parseInt(dpm[0]);<br />for (i=1;i&lt;dpm.length-1;i++) total[i]=parseInt(dpm[i])+total[i-1];<br />for (i=dpm.length-1;i&gt;0;i--)<br />if (dayim&gt;total[i-1]){<br />dayim=dayim-total[i-1];<br />miy=i;<br />}<br />bsWeek=ww;<br />bsDate=yy+&quot;年&quot;+mm+&quot;月&quot;;<br />bsDate2=dd;<br />bsYear=&quot;农历&quot;+Yn[iyear];<br />bsYear2=Mn[miy]+Dn[dayim-1];<br />if (ss&gt;=Ys[7]||ss&lt;Ys[0]) bsYear=Yn[7];<br />function time(){<br />document.write(&quot;&lt;table border=''0'' style=''font-size: 8pt; font-family:Tahoma'' cellspacing=''0'' width=''90'' bordercolor=''#cccccc'' height=''110'' cellpadding=''0''&quot;);<br />document.write(&quot;&lt;tr&gt;&lt;td align=''center'' style=''border: 1 solid #0099ff;padding-top:4px''&gt;&lt;b&gt;&lt;font color=#3366cc&gt;&quot;+bsDate+&quot;&lt;/font&gt;&lt;br&gt;&lt;span style=''font-family: Arial Black;font-size:18pt;color:#FF0000''&gt;&quot;+bsDate2+&quot;&lt;/span&gt;&lt;br&gt;&lt;br&gt;&lt;span style=''FONT-SIZE: 10.5pt;color:#000000''&gt;&quot;);<br />document.write(bsWeek+&quot;&lt;/span&gt;&lt;br&gt;&quot;+&quot;&lt;hr width=''60'' &gt;&lt;/b&gt;&lt;font color=#666666&gt;&quot;);<br />document.write(bsYear+&quot;&lt;br&gt;&quot;+bsYear2+&quot;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&quot;);<br />}<br />&lt;/script&gt;<br />&lt;script&gt;time()&lt;/script&gt;</p><p>3. November 13,2008 10:15:58 <br />&lt;SCRIPT language=javascript&gt;<br />&lt;!--<br />function Year_Month(){ <br />var now = new Date(); <br />var yy = now.getYear(); <br />var mm = now.getMonth(); <br />var mmm=new Array();<br />mmm[0]=&quot;January&quot;;<br />mmm[1]=&quot;February &quot;;<br />mmm[2]=&quot;March&quot;;<br />mmm[3]=&quot;April&quot;;<br />mmm[4]=&quot;May&quot;;<br />mmm[5]=&quot;June&quot;;<br />mmm[6]=&quot;July&quot;;<br />mmm[7]=&quot;August&quot;;<br />mmm[8]=&quot;September&quot;;<br />mmm[9]=&quot;October&quot;;<br />mmm[10]=&quot;November&quot;;<br />mmm[11]=&quot;December&quot;;<br />mm=mmm[mm];<br />return(mm); <br />}<br />function thisYear(){ <br />var now = new Date(); <br />var yy = now.getYear(); <br />return(yy); <br />}<br />function Date_of_Today(){ <br />var now = new Date(); <br />return(now.getDate());<br />}<br />function CurentTime(){ <br />var now = new Date(); <br />var hh = now.getHours(); <br />var mm = now.getMinutes(); <br />var ss = now.getTime() % 60000; <br />ss = (ss - (ss % 1000)) / 1000; <br />var clock = hh+':'; <br />if (mm &lt; 10) clock += '0'; <br />clock += mm+':'; <br />if (ss &lt; 10) clock += '0'; <br />clock += ss; <br />return(clock); <br />} <br />function refreshCalendarClock(){ <br />document.all.calendarClock1.innerHTML = Year_Month(); <br />document.all.calendarClock2.innerHTML = Date_of_Today(); <br />document.all.calendarClock3.innerHTML =thisYear(); <br />document.all.calendarClock4.innerHTML = CurentTime(); }<br />document.write('&lt;font id=&quot;calendarClock1&quot; &gt; &lt;/font&gt;&amp;nbsp;');<br />document.write('&lt;font id=&quot;calendarClock2&quot; &gt; &lt;/font&gt;,');<br />document.write('&lt;font id=&quot;calendarClock3&quot; &gt; &lt;/font&gt;&amp;nbsp;');<br />document.write('&lt;font id=&quot;calendarClock4&quot; &gt; &lt;/font&gt;');<br />setInterval('refreshCalendarClock()',1000);<br />//--&gt;<br />&lt;/SCRIPT&gt;<br />&lt;script language=&quot;javascript&quot; src=&quot;./script/date.js&quot;&gt;&lt;/script&gt;</p><p>4. 现在时间:10:16:45 AM<br />&lt;SCRIPT language=javascript&gt;<br />&lt;!--<br />function show5(){<br />if(!document.layers&amp;&amp;!document.all)<br />&nbsp;&nbsp; return<br />&nbsp;&nbsp; var Digital=new Date()<br />&nbsp;&nbsp; var hours=Digital.getHours()<br />&nbsp;&nbsp; var minutes=Digital.getMinutes()<br />&nbsp;&nbsp; var seconds=Digital.getSeconds()<br />&nbsp;&nbsp; var dn=&quot;AM&quot;<br />&nbsp;&nbsp; if(hours&gt;12){dn=&quot;PM&quot;<br />&nbsp;&nbsp; hours=hours-12<br />&nbsp;&nbsp; }if(hours==0)<br />&nbsp;&nbsp; hours=12<br />&nbsp;&nbsp; if(minutes&lt;=9)<br />&nbsp;&nbsp; minutes=&quot;0&quot;+minutes<br />&nbsp;&nbsp; if(seconds&lt;=9)<br />&nbsp;&nbsp; seconds=&quot;0&quot;+seconds<br />&nbsp;&nbsp; //change font size here to your desire<br />&nbsp;&nbsp; myclock=&quot;&lt;font&nbsp;&nbsp;&nbsp; color=blue&gt;现在时间:&quot;+hours+&quot;:&quot;+minutes+&quot;:&quot;+seconds+&quot; &quot;+dn+&quot;&lt;/font&gt;&quot;;<br />&nbsp;&nbsp; if(document.layers){<br />&nbsp;&nbsp; document.layers.liveclock.document.write(myclock)<br />&nbsp;&nbsp; document.layers.liveclock.document.close()<br />&nbsp;&nbsp; }else if(document.all)<br />&nbsp;&nbsp; liveclock.innerHTML=myclock<br />&nbsp;&nbsp; setTimeout(&quot;show5()&quot;,1000)<br />}<br />//--&gt;<br />&lt;/SCRIPT&gt;<br />&lt;body onLoad=show5()&gt;<br />&lt;span id=liveclock style=position:absolute;left:250px;top:122px;; width: 109px; height: 15px&gt; <br />&lt;/span&gt;</p><p>5. 10:11:12<br />&lt;head&gt;<br />&lt;script language=javaScript&gt;<br />&lt;!--// <br />function clockon() {<br />thistime= new Date()<br />var hours=thistime.getHours()<br />var minutes=thistime.getMinutes()<br />var seconds=thistime.getSeconds()<br />if (eval(hours) &lt;10) {hours=&quot;0&quot;+hours}<br />if (eval(minutes) &lt; 10) {minutes=&quot;0&quot;+minutes}<br />if (seconds &lt; 10) {seconds=&quot;0&quot;+seconds}<br />thistime = hours+&quot;:&quot;+minutes+&quot;:&quot;+seconds<br />if(document.all) {<br />bgclocknoshade.innerHTML=thistime<br />bgclockshade.innerHTML=thistime<br />}<br />if(document.layers) {<br />document.bgclockshade.document.write('&lt;div id=&quot;bgclockshade&quot; style=&quot;position:absolute;visibility:visible;font-family:Verdana;color:FFAAAAA;font-size:120px;top:10px;left:152px&quot;&gt;'+thistime+'&lt;/div&gt;')<br />document.bgclocknoshade.document.write('&lt;div id=&quot;bgclocknoshade&quot; style=&quot;position:absolute;visibility:visible;font-family:Verdana;color:DDDDDD;font-size:120px;top:10px;left:150px&quot;&gt;'+thistime+'&lt;/div&gt;')<br />document.close()<br />}<br />var timer=setTimeout(&quot;clockon()&quot;,200)<br />}</p><p>//--&gt;<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body bgcolor=&quot;#ffffff&quot; onLoad=&quot;clockon()&quot;&gt;<br />&lt;div id=&quot;bgclockshade&quot; style=&quot;position:absolute;visibility:visible;font-family:Arial;color:333333;font-size:120px;top:102px;left:152px&quot;&gt;&lt;/div&gt;<br />&lt;div id=&quot;bgclocknoshade&quot; style=&quot;position:absolute;visibility:visible;font-family:Arial;color:0099ff;font-size:120px;top:100px;left:150px&quot;&gt;&lt;/div&gt;<br />&lt;div id=&quot;mainbody&quot; style=&quot;position:absolute; visibility:visible&quot;&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&nbsp;</p><p>&nbsp;</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/JS/160.html" target="_blank">继续阅读《JS获取时间大全》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/JS/">JS</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E6%97%B6%E9%97%B4">时间</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/JS/160.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/JS/160.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>JS</category><comments>http://www.hzzhit.com/blog/JS/160.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=160</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=160&amp;key=6c207672</trackback:ping></item><item><title>ASP检查网站链接是否正常的函数</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/ASP/159.html</link><pubDate>Sat, 20 Aug 2011 23:37:03 +0800</pubDate><guid>http://www.hzzhit.com/blog/ASP/159.html</guid><description><![CDATA[<p>&lt;% <br />Function&nbsp;urlChk(sUrl) <br />on&nbsp;error&nbsp;resume&nbsp;next <br />Set&nbsp;xmlHttp&nbsp;=&nbsp;Server.CreateObject(&quot;Microsoft.XMLHTTP&quot;) <br />xmlHttp.open&nbsp;&quot;GET&quot;,sUrl,false <br />xmlHttp.send <br />&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;xmlHttp.Status&nbsp;&lt;&gt;&nbsp;200&nbsp;then <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;urlChk=false <br />&nbsp;&nbsp;&nbsp;&nbsp;else <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;urlChk=true <br />&nbsp;&nbsp;&nbsp;&nbsp;end&nbsp;if <br />End&nbsp;Function <br />sUrl=http://www.code-123.com <br />if&nbsp;urlChk(sUrl)&nbsp;then <br />&nbsp;&nbsp;&nbsp;&nbsp;response.write(sUrl&amp;&quot;(可以正常访问！)&quot;) <br />else <br />&nbsp;&nbsp;&nbsp;&nbsp;response.write(sUrl&amp;&quot;(页面打开错误！)&quot;) <br />end&nbsp;if <br />%&gt; <br />&nbsp;</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/ASP/159.html" target="_blank">继续阅读《ASP检查网站链接是否正常的函数》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/ASP/">ASP</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E7%BD%91%E7%AB%99%E6%AD%A3%E5%B8%B8">网站正常</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/ASP/159.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/ASP/159.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>ASP</category><comments>http://www.hzzhit.com/blog/ASP/159.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=159</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=159&amp;key=ba9be0c9</trackback:ping></item><item><title>做了CDN的ASP网站如何取到用户真实IP</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/ASP/158.html</link><pubDate>Tue, 16 Aug 2011 21:34:17 +0800</pubDate><guid>http://www.hzzhit.com/blog/ASP/158.html</guid><description><![CDATA[<p><font size="4">做了CDN的ASP网站如何取到用户真实IP程序</font></p><p><br />function&nbsp;&nbsp; checkip(checkstring)'用正则判断IP是否合法<br />dim&nbsp;&nbsp; re1<br />set&nbsp;&nbsp; re1=new&nbsp;&nbsp; RegExp<br />re1.pattern=&quot;^[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}$&quot;<br />re1.global=false<br />re1.Ignorecase=false<br />checkip=re1.test(checkstring)<br />set&nbsp;&nbsp; re1=nothing<br />end&nbsp;&nbsp; function</p><p><br />function&nbsp;&nbsp; get_cli_ip()'取真实IP函数，先 HTTP_CLIENT_IP 再 HTTP_X_FORWARDED_FOR 再 REMOTE_ADDR<br />dim client_ip<br />if checkip(Request.ServerVariables(&quot;HTTP_CLIENT_IP&quot;))=true then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get_cli_ip = checkip(Request.ServerVariables(&quot;HTTP_CLIENT_IP&quot;))<br />else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MyArray = split(Request.ServerVariables(&quot;HTTP_X_FORWARDED_FOR&quot;),&quot;,&quot;)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ubound(MyArray)&gt;=0 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; client_ip = trim(MyArray(0))<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if checkip(client_ip)=true then <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get_cli_ip = client_ip<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit function<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end if<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get_cli_ip = Request.ServerVariables(&quot;REMOTE_ADDR&quot;)<br />end if<br />end&nbsp;&nbsp; function</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/ASP/158.html" target="_blank">继续阅读《做了CDN的ASP网站如何取到用户真实IP》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/ASP/">ASP</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=IP">IP</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/ASP/158.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/ASP/158.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>ASP</category><comments>http://www.hzzhit.com/blog/ASP/158.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=158</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=158&amp;key=2c009f73</trackback:ping></item><item><title>多个cmd查询真实进程</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/Windows2003/157.html</link><pubDate>Wed, 10 Aug 2011 14:06:04 +0800</pubDate><guid>http://www.hzzhit.com/blog/Windows2003/157.html</guid><description><![CDATA[<p>wmic process where name=&quot;cmd.exe&quot; get ProcessId,CommandLine<br />&nbsp;</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/Windows2003/157.html" target="_blank">继续阅读《多个cmd查询真实进程》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/Windows2003/">Windows2003</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=cmd">cmd</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/Windows2003/157.html#comment" target="_blank">添加评论</a>(0)</p><h3>相关文章:</h3><ul><li><a href="http://www.hzzhit.com/blog/MSSQL/check-mx.html">使用命令方式检测mx记录是否生效</a> (2009-6-25 21:53:57)  </li></ul>]]></description><category>Windows2003</category><comments>http://www.hzzhit.com/blog/Windows2003/157.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=157</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=157&amp;key=ebbaa8e7</trackback:ping></item><item><title>GPS设备在百度地图的纠偏方案</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/GPS/156.html</link><pubDate>Mon, 01 Aug 2011 22:09:01 +0800</pubDate><guid>http://www.hzzhit.com/blog/GPS/156.html</guid><description><![CDATA[<p>正常设备收到的GPS坐标信息在百度地图 谷歌地图&nbsp;因为我们国家用的是&ldquo;火星坐标&rdquo; 所以&nbsp;都是有偏离的，至于什么原因自己去想去吧，这个你应该懂的！</p><p>以下代码仅供参考</p><p>&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br />&lt;title&gt;常用坐标转换&lt;/title&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://api.map.baidu.com/api?v=1.2&amp;services=true&quot;&gt;&lt;/script">http://api.map.baidu.com/api?v=1.2&amp;services=true&quot;&gt;&lt;/script</a>&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://dev.baidu.com/wiki/static/map/API/examples/script/convertor.js&quot;&gt;&lt;/script&gt;&lt;/head">http://dev.baidu.com/wiki/static/map/API/examples/script/convertor.js&quot;&gt;&lt;/script&gt;&lt;/head</a>&gt;<br />&lt;body&gt;<br />&lt;div style=&quot;width:520px;height:340px;border:1px solid gray&quot; id=&quot;container&quot;&gt;&lt;/div&gt;<br />&lt;p&gt;谷歌：<br />&lt;input style='width:150px' value='116.32715863448607' type='text' id='ggX' /&gt;&lt;input style='width:150px' value='39.990912172420714' type='text' id='ggY' /&gt;&lt;input value='google-&gt;baidu' type='button' onclick='BMap.Convertor.all2Bxy(ggPoint,2,addBMarker);' /&gt;&lt;/p&gt;&lt;p&gt;GPS：<br />&lt;input style='width:150px' value='116.397428' type='text' id='gpsX' /&gt;&lt;input style='width:150px' value='39.90923' type='text' id='gpsY' /&gt;&lt;input value='GPS-&gt;baidu' type='button' onclick='BMap.Convertor.all2Bxy(gpsPoint,2,addBMarker);' /&gt;&lt;/p&gt;&lt;p&gt;百度：<br />&lt;span id='baiduXY'&gt; &lt;/span&gt;&lt;/p&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />var bm = new BMap.Map(&quot;container&quot;);<br />var point = new BMap.Point(116.404844,39.923125);<br />bm.centerAndZoom(point, 15);<br />bm.addControl(new BMap.NavigationControl());</p><p>var x = document.getElementById('ggX').value;<br />var y = document.getElementById('ggY').value;<br />var ggPoint = new BMap.Point(x,y);</p><p>var xx = document.getElementById('gpsX').value;<br />var yy = document.getElementById('gpsY').value;<br />var gpsPoint = new BMap.Point(xx,yy);</p><p>function addBMarker(xyResult){<br />&nbsp;&nbsp;&nbsp; bm.clearOverlays();<br />&nbsp;&nbsp;&nbsp; var point = new BMap.Point(xyResult.x,xyResult.y);<br />&nbsp;&nbsp;&nbsp; var marker = new BMap.Marker(point);<br />&nbsp;&nbsp;&nbsp; bm.addOverlay(marker);<br />&nbsp;&nbsp;&nbsp; bm.setCenter(point);<br />&nbsp;&nbsp;&nbsp; document.getElementById('baiduXY').innerHTML = point.lng + &quot;,&quot; + point.lat;<br />}<br />&lt;/script&gt;<br />&nbsp;</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/GPS/156.html" target="_blank">继续阅读《GPS设备在百度地图的纠偏方案》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/GPS/">GPS</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E7%99%BE%E5%BA%A6%E5%9C%B0%E5%9B%BE">百度地图</a>&nbsp;&nbsp;<a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E7%BA%A0%E5%81%8F">纠偏</a>&nbsp;&nbsp;<a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E7%81%AB%E6%98%9F%E5%9D%90%E6%A0%87">火星坐标</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/GPS/156.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/GPS/156.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>GPS</category><comments>http://www.hzzhit.com/blog/GPS/156.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=156</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=156&amp;key=2567f3da</trackback:ping></item><item><title>简单ASP分页程序</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/ASP/155.html</link><pubDate>Sun, 31 Jul 2011 13:12:31 +0800</pubDate><guid>http://www.hzzhit.com/blog/ASP/155.html</guid><description><![CDATA[<p><font face="宋体" size="2">&lt;%<br />set rs=server.createobject(&quot;adodb.recordset&quot;)<br />conn=&quot;DBQ=&quot;+server.mappath(&quot;check.mdb&quot;)+&quot;;DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};pwd=yaday&quot;<font color="#ff0000">'连接数据库&nbsp;&nbsp; </font><br />sql=&quot;select * from news order by id desc&quot;<br />rs.open sql,conn,1,1<br />%&gt;</font></p><p><font face="宋体" size="2">&lt;%<br />dim page<br />page=Clng(request(&quot;page&quot;))<br />rs.pagesize=6<font color="#ff0000">'每页显示记录数</font><br />if page&lt;1 then page=1<br />if page&gt;rs.pagecount then page=rs.pagecount<br />rs.Absolutepage=page<font color="#ff0000">'当前是哪一页</font><br />%&gt;<br />&lt;%<br />for i=1 to rs.pagesize<font color="#ff0000">'开始循环 </font><br />%&gt;</font></p><p><font face="宋体" size="2">&lt;a href=shownews.ASP?id=&lt;% = rs(&quot;id&quot;) %&gt; target=&quot;_blank&quot;&gt;<font color="#000000"><font color="#000000">东旗网</font>编辑的分页程序</font>&lt;/a&gt;<br /></font></p><p><font face="宋体" size="2">&lt;%<br />rs.movenext<br />if rs.eof then exit for <font color="#ff0000">'当记录到底跳出循环</font><br />next <font color="#ff0000">'循环&nbsp; </font><br />%&gt;<br />&lt;%<br />if page&lt;&gt;1 then<br />response.write &quot;&lt;a href=?page=1&gt;首页&lt;/a&gt; &quot;'链接未指定页面,则为当前页<br />response.write &quot;&lt;a href=?page=&quot;&amp;(page-1)&amp;&quot;&gt;上一页&lt;/a&gt; &quot;<br />end if<br />if page&lt;&gt;rs.pagecount then<br />response.write &quot;&lt;a href=?page=&quot;&amp;(page+1)&amp;&quot;&gt;下一页&lt;/a&gt; &quot;&nbsp; <br />response.write &quot;&lt;a href=?page=&quot;&amp;rs.pagecount&amp;&quot;&gt;尾页&lt;/a&gt; &quot;<br />end if<br />%&gt;<br />第&lt;%=page%&gt;页/共有&lt;%=rs.pagecount%&gt;页<br />&lt;form name=&quot;form1&quot; method=&quot;get&quot; action=&quot;index.ASP&quot;&gt;<br />&lt;input name=&quot;page&quot; size=&quot;2&quot; value=&quot;&lt;%=page%&gt;&quot;&gt;<br />&lt;input type=&quot;submit&quot; method=&quot;submit&quot; value=&quot;GO&quot;&gt;<br />&lt;/form&gt;</font></p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/ASP/155.html" target="_blank">继续阅读《简单ASP分页程序》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/ASP/">ASP</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E5%88%86%E9%A1%B5">分页</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/ASP/155.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/ASP/155.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>ASP</category><comments>http://www.hzzhit.com/blog/ASP/155.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=155</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=155&amp;key=b15bc441</trackback:ping></item><item><title>删除SQL重复记录</title><author>a@b.com (shine)</author><link>http://www.hzzhit.com/blog/MSSQL/154.html</link><pubDate>Sun, 24 Jul 2011 18:35:29 +0800</pubDate><guid>http://www.hzzhit.com/blog/MSSQL/154.html</guid><description><![CDATA[<p>DELETE FROM orders_JH<br />WHERE (Id NOT IN<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SELECT MAX(t1.id)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FROM orders_JH t1<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GROUP BY t1.dingdan))<br />&nbsp;</p><p>Copyright © 2008</p><p><a href="http://www.hzzhit.com/blog/MSSQL/154.html" target="_blank">继续阅读《删除SQL重复记录》的全文内容...</a></p><p>分类: <a href="http://www.hzzhit.com/blog/MSSQL/">MSSQL</a> | Tags: <a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E5%88%A0%E9%99%A4">删除</a>&nbsp;&nbsp;<a href="http://www.hzzhit.com/blog/catalog.asp?tags=%E9%87%8D%E5%A4%8D%E8%AE%B0%E5%BD%95">重复记录</a>&nbsp;&nbsp; | <a href="http://www.hzzhit.com/blog/MSSQL/154.html#comment" target="_blank">添加评论</a>(0)</p><p><a href="http://www.hzzhit.com/blog/MSSQL/154.html#comment" target="_blank">还没有相关文章，您来说两句？</a></p>]]></description><category>MSSQL</category><comments>http://www.hzzhit.com/blog/MSSQL/154.html#comment</comments><wfw:comment>http://www.hzzhit.com/blog/</wfw:comment><wfw:commentRss>http://www.hzzhit.com/blog/feed.asp?cmt=154</wfw:commentRss><trackback:ping>http://www.hzzhit.com/blog/cmd.asp?act=tb&amp;id=154&amp;key=e914a8bc</trackback:ping></item></channel></rss>

