<?xml version="1.0" 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>世界的角落（雨·漫步） - 网页·网站</title><link>http://www.myjsy.com/</link><description> - </description><generator>RainbowSoft Studio Z-Blog 1.8 Spirit Build 80710</generator><language>zh-CN</language><copyright>Copyright 2008 世界的角落. All Rights Reserved.如有涉及侵犯您权益的情况，请和我联系！粤ICP备10082448号</copyright><pubDate>Wed, 08 Sep 2010 17:32:52 +0800</pubDate><item><title>如何让火狐浏览器也自动换行</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/205.htm</link><pubDate>Thu, 10 Jul 2008 14:08:22 +0800</pubDate><guid>http://www.myjsy.com/Article/205.htm</guid><description><![CDATA[<p>最近在修程序的时候遇到点问题，如果使用火狐（FireFox）的话，其Word-break样式是无效的，那么如何让火狐也支持自动换行呢，网上有朋友提出了使用脚本添加空格的方法，发一下大家参考，不过这种方法貌似比较麻烦，而且对分辨率的兼容貌似也不是很好。 &lt;html&gt;<br />&nbsp;&lt;title&gt;blueidea&lt;/title&gt;<br />&nbsp;&lt;style type=&quot;text/css&quot;&gt;<br />&nbsp;/*&lt;![CDATA[*/<br />&nbsp;div {<br />&nbsp;&nbsp;&nbsp;&nbsp; width:300px;<br />&nbsp;&nbsp;&nbsp;&nbsp; word-wrap:break-word;<br />&nbsp;&nbsp;&nbsp;&nbsp; border:1px solid red;<br />&nbsp;&nbsp;&nbsp;&nbsp; }<br />/*]]&gt;*/<br />&nbsp;&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;div id=&quot;ff&quot;&gt;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&lt;/div&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />&nbsp;// &lt;![CDATA[<br />function toBreakWord(intLen){<br />var obj=document.getElementById(&quot;ff&quot;);<br />var strContent=obj.innerHTML;<br />var strTemp=&quot;&quot;;<br />while(strContent.length&gt;intLen){<br />strTemp+=strContent.substr(0,intLen)+&quot; &quot;;<br />&nbsp;strContent=strContent.substr(intLen,strContent.length);<br />&nbsp;}<br />&nbsp;strTemp+=&quot; &quot;+strContent;<br />&nbsp;obj.innerHTML=strTemp;<br />&nbsp;}<br />if(document.getElementById&nbsp; &amp;&amp;&nbsp; !document.all)&nbsp; toBreakWord(37)<br />&nbsp;// ]]&gt;<br />&lt;/script&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p><p>&nbsp;</p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/205.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=205</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=205&amp;key=b8ba1147</trackback:ping></item><item><title>本站风格发布（修改版的blackwhite-jspring）</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/195.htm</link><pubDate>Mon, 21 Apr 2008 00:31:51 +0800</pubDate><guid>http://www.myjsy.com/Article/195.htm</guid><description><![CDATA[<p>用了CooLMud_BlackWhite的主题，使用的是j-spring风格，改正了原风格宽度较小的情况，并且去除了一些显示项。</p><p>就是本博正在使用的样子，喜欢的朋友可以下载。版权归原作者所有，本人只是做了一些修改。</p><p><a href="http://www.myjsy.com/upload/CooLMud_BlackWhite.rar" target="_blank">CooLMud_BlackWhite.rar</a></p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/195.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=195</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=195&amp;key=05d862e1</trackback:ping></item><item><title>windows 2003 存在的文件IIS却提示找不到</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/173.htm</link><pubDate>Mon, 03 Mar 2008 11:01:27 +0800</pubDate><guid>http://www.myjsy.com/Article/173.htm</guid><description><![CDATA[windows server 2003为了安全，所以如果一个文件没有被定义MIME的话，即使这个文件是存在的，IIS一样会返回一个找不到文件的错误，所以如果要用到没有被定义的文件，就需要手动去定义<br /> 微软IIS默认 MIME 表： <p> <table border="1" cellspacing="1" width="100%" bordercolor="#808080"> 	<tr> 		<td width="23%"><strong>扩展名</strong></td> 		<td width="47%"><strong>类型/子类型</strong></td> 		<td width="14%"><strong>IIS 4.0</strong></td> 		<td width="16%"><strong>IIS 5.0</strong></td> 	</tr> 	<tr> 		<td width="23%">*</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">323</td> 		<td width="47%">text/h323</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">acx</td> 		<td width="47%">application/internet-property-stream</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ai</td> 		<td width="47%">application/postscript</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">aif</td> 		<td width="47%">audio/x-aiff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">aifc</td> 		<td width="47%">audio/x-aiff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">aiff</td> 		<td width="47%">audio/x-aiff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">asf</td> 		<td width="47%">video/x-ms-asf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">asr</td> 		<td width="47%">video/x-ms-asf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">asx</td> 		<td width="47%">video/x-ms-asf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">au</td> 		<td width="47%">audio/basic</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">avi</td> 		<td width="47%">video/x-msvideo</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">axs</td> 		<td width="47%">application/olescript</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">bas</td> 		<td width="47%">text/plain</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">bcpio</td> 		<td width="47%">application/x-bcpio</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">bin</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">bmp</td> 		<td width="47%">image/bmp</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">c</td> 		<td width="47%">text/plain</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cat</td> 		<td width="47%">application/vnd.ms-pkiseccat</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cdf</td> 		<td width="47%">application/x-cdf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cer</td> 		<td width="47%">application/x-x509-ca-cert</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">class</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">clp</td> 		<td width="47%">application/x-msclip</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cmx</td> 		<td width="47%">image/x-cmx</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cod</td> 		<td width="47%">image/cis-cod</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">cpio</td> 		<td width="47%">application/x-cpio</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">crd</td> 		<td width="47%">application/x-mscardfile</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">crl</td> 		<td width="47%">application/pkix-crl</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">crt</td> 		<td width="47%">application/x-x509-ca-cert</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">csh</td> 		<td width="47%">application/x-csh</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">css</td> 		<td width="47%">text/css</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dcr</td> 		<td width="47%">application/x-director</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">der</td> 		<td width="47%">application/x-x509-ca-cert</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dir</td> 		<td width="47%">application/x-director</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dll</td> 		<td width="47%">application/x-msdownload</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dms</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">doc</td> 		<td width="47%">application/msword</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dot</td> 		<td width="47%">application/msword</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dvi</td> 		<td width="47%">application/x-dvi</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">dxr</td> 		<td width="47%">application/x-director</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">eps</td> 		<td width="47%">application/postscript</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">etx</td> 		<td width="47%">text/x-setext</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">evy</td> 		<td width="47%">application/envoy</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">exe</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">fif</td> 		<td width="47%">application/fractals</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">flr</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">gif</td> 		<td width="47%">image/gif</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">gtar</td> 		<td width="47%">application/x-gtar</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">gz</td> 		<td width="47%">application/x-gzip</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">h</td> 		<td width="47%">text/plain</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">hdf</td> 		<td width="47%">application/x-hdf</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">hlp</td> 		<td width="47%">application/winhlp</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">hqx</td> 		<td width="47%">application/mac-binhex40</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">hta</td> 		<td width="47%">application/hta</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">htc</td> 		<td width="47%">text/x-component</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">htm</td> 		<td width="47%">text/html</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">html</td> 		<td width="47%">text/html</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">htt</td> 		<td width="47%">text/webviewhtml</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ico</td> 		<td width="47%">image/x-icon</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ief</td> 		<td width="47%">image/ief</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">iii</td> 		<td width="47%">application/x-iphone</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ins</td> 		<td width="47%">application/x-internet-signup</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">isp</td> 		<td width="47%">application/x-internet-signup</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">jfif</td> 		<td width="47%">image/pipeg</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">jpe</td> 		<td width="47%">image/jpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">jpeg</td> 		<td width="47%">image/jpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">jpg</td> 		<td width="47%">image/jpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">js</td> 		<td width="47%">application/x-javascript</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">latex</td> 		<td width="47%">application/x-latex</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">lha</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">lsf</td> 		<td width="47%">video/x-la-asf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">lsx</td> 		<td width="47%">video/x-la-asf</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">lzh</td> 		<td width="47%">application/octet-stream</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">m13</td> 		<td width="47%">application/x-msmediaview</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">m14</td> 		<td width="47%">application/x-msmediaview</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">m3u</td> 		<td width="47%">audio/x-mpegurl</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">man</td> 		<td width="47%">application/x-troff-man</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mdb</td> 		<td width="47%">application/x-msaccess</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">me</td> 		<td width="47%">application/x-troff-me</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mht</td> 		<td width="47%">message/rfc822</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mhtml</td> 		<td width="47%">message/rfc822</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mid</td> 		<td width="47%">audio/mid</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mny</td> 		<td width="47%">application/x-msmoney</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mov</td> 		<td width="47%">video/quicktime</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">movie</td> 		<td width="47%">video/x-sgi-movie</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mp2</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mp3</td> 		<td width="47%">audio/mpeg</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpa</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpe</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpeg</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpg</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpp</td> 		<td width="47%">application/vnd.ms-project</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mpv2</td> 		<td width="47%">video/mpeg</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ms</td> 		<td width="47%">application/x-troff-ms</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">mvb</td> 		<td width="47%">application/x-msmediaview</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">nws</td> 		<td width="47%">message/rfc822</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">oda</td> 		<td width="47%">application/oda</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p10</td> 		<td width="47%">application/pkcs10</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p12</td> 		<td width="47%">application/x-pkcs12</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p7b</td> 		<td width="47%">application/x-pkcs7-certificates</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p7c</td> 		<td width="47%">application/x-pkcs7-mime</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p7m</td> 		<td width="47%">application/x-pkcs7-mime</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p7r</td> 		<td width="47%">application/x-pkcs7-certreqresp</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">p7s</td> 		<td width="47%">application/x-pkcs7-signature</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pbm</td> 		<td width="47%">image/x-portable-bitmap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pdf</td> 		<td width="47%">application/pdf</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pfx</td> 		<td width="47%">application/x-pkcs12</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pgm</td> 		<td width="47%">image/x-portable-graymap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pko</td> 		<td width="47%">application/ynd.ms-pkipko</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pma</td> 		<td width="47%">application/x-perfmon</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pmc</td> 		<td width="47%">application/x-perfmon</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pml</td> 		<td width="47%">application/x-perfmon</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pmr</td> 		<td width="47%">application/x-perfmon</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pmw</td> 		<td width="47%">application/x-perfmon</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pnm</td> 		<td width="47%">image/x-portable-anymap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pot,</td> 		<td width="47%">application/vnd.ms-powerpoint</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ppm</td> 		<td width="47%">image/x-portable-pixmap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pps</td> 		<td width="47%">application/vnd.ms-powerpoint</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ppt</td> 		<td width="47%">application/vnd.ms-powerpoint</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">prf</td> 		<td width="47%">application/pics-rules</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ps</td> 		<td width="47%">application/postscript</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">pub</td> 		<td width="47%">application/x-mspublisher</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">qt</td> 		<td width="47%">video/quicktime</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ra</td> 		<td width="47%">audio/x-pn-realaudio</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ram</td> 		<td width="47%">audio/x-pn-realaudio</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ras</td> 		<td width="47%">image/x-cmu-raster</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">rgb</td> 		<td width="47%">image/x-rgb</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">rmi</td> 		<td width="47%">audio/mid</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">roff</td> 		<td width="47%">application/x-troff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">rtf</td> 		<td width="47%">application/rtf</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">rtx</td> 		<td width="47%">text/richtext</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">scd</td> 		<td width="47%">application/x-msschedule</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sct</td> 		<td width="47%">text/scriptlet</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">setpay</td> 		<td width="47%">application/set-payment-initiation</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">setreg</td> 		<td width="47%">application/set-registration-initiation</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sh</td> 		<td width="47%">application/x-sh</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">shar</td> 		<td width="47%">application/x-shar</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sit</td> 		<td width="47%">application/x-stuffit</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">snd</td> 		<td width="47%">audio/basic</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">spc</td> 		<td width="47%">application/x-pkcs7-certificates</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">spl</td> 		<td width="47%">application/futuresplash</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">src</td> 		<td width="47%">application/x-wais-source</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sst</td> 		<td width="47%">application/vnd.ms-pkicertstore</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">stl</td> 		<td width="47%">application/vnd.ms-pkistl</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">stm</td> 		<td width="47%">text/html</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sv4cpio</td> 		<td width="47%">application/x-sv4cpio</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">sv4crc</td> 		<td width="47%">application/x-sv4crc</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">t</td> 		<td width="47%">application/x-troff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tar</td> 		<td width="47%">application/x-tar</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tcl</td> 		<td width="47%">application/x-tcl</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tex</td> 		<td width="47%">application/x-tex</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">texi</td> 		<td width="47%">application/x-texinfo</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">texinfo</td> 		<td width="47%">application/x-texinfo</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tgz</td> 		<td width="47%">application/x-compressed</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tif</td> 		<td width="47%">image/tiff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tiff</td> 		<td width="47%">image/tiff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tr</td> 		<td width="47%">application/x-troff</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">trm</td> 		<td width="47%">application/x-msterminal</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">tsv</td> 		<td width="47%">text/tab-separated-values</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">txt</td> 		<td width="47%">text/plain</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">uls</td> 		<td width="47%">text/iuls</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">ustar</td> 		<td width="47%">application/x-ustar</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">vcf</td> 		<td width="47%">text/x-vcard</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">vrml</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wav</td> 		<td width="47%">audio/x-wav</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wcm</td> 		<td width="47%">application/vnd.ms-works</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wdb</td> 		<td width="47%">application/vnd.ms-works</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wks</td> 		<td width="47%">application/vnd.ms-works</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wmf</td> 		<td width="47%">application/x-msmetafile</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wps</td> 		<td width="47%">application/vnd.ms-works</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wri</td> 		<td width="47%">application/x-mswrite</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wrl</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">wrz</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xaf</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xbm</td> 		<td width="47%">image/x-xbitmap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xla</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xlc</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xlm</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xls</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xlt</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xlw</td> 		<td width="47%">application/vnd.ms-excel</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xof</td> 		<td width="47%">x-world/x-vrml</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xpm</td> 		<td width="47%">image/x-xpixmap</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">xwd</td> 		<td width="47%">image/x-xwindowdump</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">z</td> 		<td width="47%">application/x-compress</td> 		<td width="14%">否</td> 		<td width="16%">是</td> 	</tr> 	<tr> 		<td width="23%">zip</td> 		<td width="47%">application/zip</td> 		<td width="14%">是</td> 		<td width="16%">是</td> 	</tr> </table><br /> 如果不是微软默认的MIME的话，可能就需要自己手动去定义才能使用了。<br /> 进入IIS管理器&mdash;&mdash;站点属性&mdash;&mdash;HTTP头&mdash;&mdash;MIME中可以自己增加MIME定义。</p> <p>常见的 MIME 类型：</p> <p>超文本标记语言文本 .html,.html&nbsp;&nbsp;&nbsp;&nbsp; text/html<br /> 普通文本 .txt&nbsp;&nbsp;&nbsp; &nbsp;text/plain<br /> RTF文本 .rtf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application/rtf<br /> GIF图形 .gif&nbsp;&nbsp;&nbsp;&nbsp; image/gif<br /> JPEG图形 .jpeg,.jpg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; image/jpeg<br /> au声音文件 .au&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; audio/basic<br /> MIDI音乐文件 mid,.midi&nbsp;&nbsp;&nbsp;&nbsp; audio/midi,audio/x-midi<br /> RealAudio音乐文件 .ra, .ram&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; audio/x-pn-realaudio<br /> MPEG文件 .mpg,.mpeg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;video/mpeg<br /> AVI文件 .avi&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; video/x-msvideo<br /> GZIP文件 .gz&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application/x-gzip<br /> TAR文件 .tar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; application/x-tar</p> <p>&nbsp;WAP网站的网页：</p> <p>.wbmp image/vnd.wap.wbmp<br /> .wml text/vnd.wap.wml<br /> .wmlc application/vnd.wap.wmlc<br /> .wmls text/vnd.wap.wmlscript<br /> .wmlsc application/vnd.wap.wmlscriptc</p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/173.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=173</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=173&amp;key=ac030ca3</trackback:ping></item><item><title>编程及服务器维护工作者常用资料</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/166.htm</link><pubDate>Tue, 19 Feb 2008 17:59:02 +0800</pubDate><guid>http://www.myjsy.com/Article/166.htm</guid><description><![CDATA[<a href="filedown.asp?ul_id=101">101号文件</a><br /> <a href="filedown.asp?ul_id=102">102号文件</a><br /> <a href="filedown.asp?ul_id=103">103号文件</a><br /> <a href="filedown.asp?ul_id=98">98号文件</a><br /> <a href="filedown.asp?ul_id=99">99号文件</a><br /> <a href="filedown.asp?ul_id=100">100号文件</a><br /> <a href="filedown.asp?ul_id=97">97号文件</a><br /> <a href="filedown.asp?ul_id=105">105号文件</a><br /> <a href="filedown.asp?ul_id=107">107号文件</a><br /> <a href="filedown.asp?ul_id=108">108号文件</a><br /> 还有一些没传上来，不知道为什么，这个博客系统不让传，晕啊~]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/166.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=166</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=166&amp;key=31b4399e</trackback:ping></item><item><title>XSL的命名空间问题</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/165.htm</link><pubDate>Mon, 18 Feb 2008 12:59:28 +0800</pubDate><guid>http://www.myjsy.com/Article/165.htm</guid><description><![CDATA[<p>这两天刚学XSL，觉得是个不错的东西，值得深入研究一下，XSL的命名空间，我看到的有两种写法：</p> <div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; word-break: break-all; padding-top: 4px; border: windowtext 0.5pt solid"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><span style="color: #008000">&lt;!--</span><span style="color: #008000">第一种</span><span style="color: #008000">--&gt;</span><span style="color: #000000"><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:stylesheet&nbsp;</span><span style="color: #ff0000">xmlns:xsl</span><span style="color: #0000ff">=&quot;http://www.w3.org/TR/WD-xsl&quot;</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #008000">&lt;!--</span><span style="color: #008000">第二种</span><span style="color: #008000">--&gt;</span><span style="color: #000000"><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:stylesheet&nbsp;</span><span style="color: #ff0000">version</span><span style="color: #0000ff">=&quot;1.0&quot;</span><span style="color: #ff0000">&nbsp;xmlns:xsl</span><span style="color: #0000ff">=&quot;http://www.w3.org/1999/XSL/Transform&quot;</span><span style="color: #0000ff">&gt;</span><span style="color: #000000"><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span></div></div> <p>我因为忽略了这行的区别，导致我郁闷了好半天，&nbsp;后来search到了两个贴子，特意转过来。</p> <p>源：<a href="http://bbs.51js.com/viewthread.php?tid=42672">http://bbs.51js.com/viewthread.php?tid=42672</a></p> <div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; word-break: break-all; padding-top: 4px; border: windowtext 0.5pt solid">&lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/TR/WD-xsl&quot;&gt;命名空间 是草案,<br /> FireFox不支持草案版<br /> XSL的名称空间改成标准:<br /> &lt;xsl:stylesheet xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; version=&quot;2.0&quot;&gt; </div> <p>源：<a href="http://bbs.xml.org.cn/dispbbs.asp?boardID=8&amp;ID=39590">http://bbs.xml.org.cn/dispbbs.asp?boardID=8&amp;ID=39590</a></p> <div style="padding-right: 5.4pt; padding-left: 5.4pt; background: #e6e6e6; padding-bottom: 4px; width: 95%; word-break: break-all; padding-top: 4px; border: windowtext 0.5pt solid"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><span style="color: #000000">微软的资料：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />升级到新的&nbsp;XSLT&nbsp;语法<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />提升性能的下一步需要更多的工作，但这是值得付出努力的。在这里，我们将旧的&nbsp;MSXML&nbsp;XSL&nbsp;样式表转换为新的&nbsp;XSLT&nbsp;标准。MSXML&nbsp;最初是在&nbsp;1999&nbsp;年&nbsp;3&nbsp;月&nbsp;W3C&nbsp;XSL&nbsp;工作组完成正式标准之前发布的。在&nbsp;3&nbsp;月和&nbsp;11&nbsp;月之间，制定建议之后，又在语言中添加了许多绝佳的新内容。考虑到这些变化，我们将&nbsp;XSL&nbsp;样式表进行了如下升级：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />1.&nbsp;将旧的&nbsp;XSL&nbsp;命名空间&nbsp;URN&nbsp;转换为&nbsp;http://www.w3.org/1999/XSL/Transform。<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />2.&nbsp;向&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:stylesheet</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">&nbsp;根元素中添加必需的&nbsp;version=&quot;1.0&quot;。<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />3.&nbsp;将&nbsp;order-by&nbsp;属性更改为&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:sort</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">&nbsp;元素，并相应地更改&nbsp;DHTML&nbsp;脚本代码，以便您可以动态地重新排序页面。<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />4.&nbsp;将&nbsp;averageChange()&nbsp;函数的&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:eval</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">&nbsp;调用替换为标准的&nbsp;XPath&nbsp;表达式：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:value-of&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #ff0000">select</span><span style="color: #0000ff">=&quot;format-number(sum(/portfolio/stock/percent)&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;div&nbsp;count(/portfolio/stock),&#39;#.#&#39;)&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000">&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />5.&nbsp;将&nbsp;totalVolume()&nbsp;的&nbsp;xsl:eval&nbsp;调用替换为另一个标准表达式：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:value-of&nbsp;</span><span style="color: #ff0000">select</span><span style="color: #0000ff">=&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&quot;format-number(sum(/portfolio/stock/volume),&#39;#&#39;)&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000">&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />6.&nbsp;完全移除旧的&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:script</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">块（因为不再需要它）。<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />7.&nbsp;将所有其他&nbsp;</span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:eval</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">&nbsp;调用替换为直接的&nbsp;format-number&nbsp;调用，例如，价格和更改模板现在包含：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:value-of&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #ff0000">select</span><span style="color: #0000ff">=&quot;format-number(.,&#39;0.00&#39;)&quot;</span><span style="color: #0000ff">/&gt;</span><span style="color: #000000">&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />&amp;#8226;&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />8.&nbsp;更改旧的&nbsp;expr=&quot;...&quot;&gt;，以使用新的&nbsp;XPath&nbsp;表达式来执行相同的操作：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">xsl:if&nbsp;</span><span style="color: #ff0000">test</span><span style="color: #0000ff">=&quot;.&nbsp;&amp;lt;&nbsp;-5&quot;</span><span style="color: #0000ff">&gt;</span><span style="color: #000000">&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />结果是&nbsp;portfolio3.xsl。要使用这个新的样式表，我们只需更改下行：<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />xsl.load(Server.MapPath(&quot;../portfolio3.xsl&quot;));&nbsp;<br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" /><br /> <img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" width="11" height="16" align="top" />使用这个样式表会导致每秒处理的请求数骤增为&nbsp;99，与旧的&nbsp;XSL&nbsp;样式表相比，性能提升了&nbsp;115%。现在，示例的总吞吐量比&nbsp;MSXML&nbsp;2.5&nbsp;增加了&nbsp;253%。大多数改进得益于我们从样式表中成功移除了&nbsp;JScript&nbsp;的所有调用。<br /> </span></div></div>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/165.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=165</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=165&amp;key=bcb6ba30</trackback:ping></item><item><title>IE提示脚本错误：尚未实现的解决办法</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/143.htm</link><pubDate>Fri, 18 Jan 2008 21:05:53 +0800</pubDate><guid>http://www.myjsy.com/Article/143.htm</guid><description><![CDATA[<P>window.onload= someFunction();页面报尚未实现错误时不防用下面的试一下</P><P>window.onload &nbsp; =&nbsp;&nbsp; someFunction;<BR>window.onload &nbsp; = &nbsp; function &nbsp; (){someFunction();};&nbsp;&nbsp;&nbsp;<BR>window.onload &nbsp; = &nbsp; Function("someFunction();");</P>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/143.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=143</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=143&amp;key=bd94ffd1</trackback:ping></item><item><title>再谈 IWAM用户更改了密码问题</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/142.htm</link><pubDate>Fri, 18 Jan 2008 16:37:24 +0800</pubDate><guid>http://www.myjsy.com/Article/142.htm</guid><description><![CDATA[<p>用户不小心将IWAM用户的密码更改了导致站点访问弹框或者是IIS报 500错误</p> <p>网上解决方法一大堆 需要注意的有2个地方</p> <p>一是重设IWAM密码的时候一定用记对 最好是在计算机和用户里设置 今天发现用命令没有设置上</p> <p>二 是 COM+的服务一定要启动起来</p> <p><br /> 1，同步IIS metabase中IWAM_MYSERVER的密码，在CMD中：c:\inetput\adminscripts&gt;adsutil set w3svc/wamuserpass &quot;yourpassword&quot;</p> <p>(cscript.exe adsutil.vbs set w3svc/anonymoususerpass &quot;yourpassword&quot;)</p> <p>2，同步COM+应用程序所用的IWAM_MYSERVER密码，在CMD中：c:\inetput\adminscripts&gt;cscript synciwam.vbs -v</p> <p><br /> 3 如果报错 80070422是COM+ 的两个服务没有开启 8004E00F是 MSDTC的服务没有开启</p> <p><br /> 重新安装 MSDTC 服务</p> <p><br /> 3、删除注册表中的键：<br /> &bull; HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSDTC<br /> &bull; HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC<br /> &bull; HKEY_CLASSES_ROOT\CID<br /> 4、停止MSDTC服务：net stop msdtc<br /> 5、卸载MSDTC服务：msdtc -uninstall<br /> 6、重新安装MSDTC服务：msdtc -install<br /> 7、确认在事件查看器中msdtc服务已经正常启动[这步很关键，如果没有，重新启动下电脑看看，然后再同步密码（就是开始的那三步）</p><br /> <p>转载自：<a href="http://yanghengfei.com/show-160-1.html">http://yanghengfei.com/show-160-1.html</a></p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/142.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=142</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=142&amp;key=35562d1f</trackback:ping></item><item><title>解决Windows Live Writer写F2BLOG自动截取问题</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/128.htm</link><pubDate>Sat, 22 Dec 2007 12:08:31 +0800</pubDate><guid>http://www.myjsy.com/Article/128.htm</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp; 昨天解决了Windows Live Writer写F2BLOG的问题，但是发布以后发现F2blog的自动截取为0，导致在首页显示的时候本来应该显示文章一部分内容的地方却显示了全部，这样首页的日志列表看起来很不好看，由于没法改动API部分，所以只能从数据库下手了，使用PHPMyAdmin连接到博客数据库，修改f2blog_logs表（前缀可能不一样，看安装的时候怎么选的了），把autoSplit字段的默认值修改为300，或者其他你想要的值，这样应该就OK了~嘿嘿~</p> <p>&nbsp;&nbsp;&nbsp; 四级改题型了，郁闷~</p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/128.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=128</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=128&amp;key=6f95ee05</trackback:ping></item><item><title>让Woindows Live Writer支持F2BLOG~</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/127.htm</link><pubDate>Fri, 21 Dec 2007 20:40:00 +0800</pubDate><guid>http://www.myjsy.com/Article/127.htm</guid><description><![CDATA[<p>今天终于找到F2BLOG如何支持支持windows live writer了，写一个博客上来试试，而且也可以配置标签了，但图片发布必须使用FTP方式，下面把配置过程发一下：</p> <p>1、打开Woindows Live Writer,选择：日志&mdash;&mdash;添加日志账户&mdash;&mdash;其他日志服务&mdash;&mdash;日志主页，用户名，密码按你的F2BLOG填写，然后下一步</p> <p>2、下一步以后它会告诉你找不到日志提供，没关系，我们再下一步，它会让你手动选择，所使用的日志类型，选择Metawebblog API，下面的发布地址修改为：http://博客主目录/xmlrpc.php(例如我的就是<a href="http://www.sostips.com/blog/xmlrpc.php">http://www.sostips.com/blog/xmlrpc.php</a>)</p> <p>3、继续下一步，它会检测一下日志设置，要等一下，完成以后提示你输入日志名称，这个就根据个人情况写了，日志叫什么就写什么了。</p> <p>4、如果要发布带有图片的日志，那就要设置一下FTP信息，因为F2BLOG的API不支持直接上传图片。点编辑设置，在图像那一项中选择：将图像上传到FTP服务器，点击配置FTP服务，然后根据你的服务器信息填写FTP主机名（一般是IP地址）用户名和密码，选上保存密码，这样下次不用麻烦再输入了。</p> <p>5、然后下面的，将图像发布到此文件夹一项，点浏览，选择博客程序目录下的attachments目录，当然你喜欢的话选其他的也行，不过一般博客上传的图片都在这个目录，放一起管理会方便点，WLW在上传图片的时候会自动建立一个新的子目录的。<br /> 发布图像使用的文件夹URL一项填写http://博客主目录/attachments(例如我的就是<a href="http://www.sostips.com/blog/attachments">http://www.sostips.com/blog/attachments</a>)</p> <p>6、至于下面的编辑和高级基本不用动，然后一路确定就可以了~</p> <p>7、然后发布日志的时候，我们需要设置一下标签，点右边的插入标签，在标签提供程序中选择自定义，然后点击添加，在提供程序名称里面随便写好了，我写的是F2BLOG，然后如果你的博客使用了生成静态页面选择题，那么每个标签的HTML模板写为：&lt;a href=&quot;<a href="http://www.sostips.com/blog/rewrite.php/tags-{tag-encoded}.html&quot;">http://www.sostips.com/blog/rewrite.php/tags-{tag-encoded}.html&quot;</a> &gt;{tag}&lt;/a&gt;如果没有使用生成静态页面，那么应该写成：&lt;a href=<a href="http://www.sostips.com/blog/index.php?job=tags&amp;seekname={tag-encoded}">http://www.sostips.com/blog/index.php?job=tags&amp;seekname={tag-encoded}</a> &gt;{tag}&lt;/a&gt;，当然啊，上面的都是按照我的博客上的来写的，你需要吧前面的<a href="http://www.sostips.com/blog">http://www.sostips.com/blog</a>这一部分替换成你的博客的地址。</p> <p>8、使用以下符号分割每个标签的HTML，在里面打一个空格。</p> <p>9、标签列表的HTML标题填写：&lt;DIV style=&quot;CLEAR: both; MARGIN-TOP: 10px&quot;&gt;&lt;STRONG&gt;标签:&lt;/STRONG&gt; {tag-group}&lt;/DIV&gt;</p> <p>10、下面的HTML预览会自动生成就不用管了，然后点确定回到标签选项页面，可以看到刚才新建的那个标签提供程序了吧？OK，点关闭。</p> <p>11、回到插入标签界面，在标签提供程序中选择我们刚才新建的那个，然后在上面就可以输入标签了，但是注意这里输入标签是用英文的逗号分割的，不是用分号哦！(特别提醒：这里添加的标签是不会自动添加到后台标签数据库中的！不过使用的时候影响不大)</p> <p>OK，到这里就算完成文章发布的设置了，文章类别在左下角哦！别忘了选择，呵呵^_^</p> <p>但是本人愚钝，还不知道在Woindows Live Writer中如何设置文字颜色等，看到上面只有可怜的一条编辑工具栏&hellip;&hellip;</p> <p>预祝大家圣诞快乐~也祝我明天四级能过~o(&cap;_&cap;)o...</p> <p align="center"><a href="http://www.sostips.com/blog/attachments/WLRpicture/WoindowsLiveWriter_10F78/u42851798971789442930gp44.jpg"><img style="border-width: 0px" src="http://www.sostips.com/blog/attachments/WLRpicture/WoindowsLiveWriter_10F78/u42851798971789442930gp44_thumb.jpg" border="0" alt="u=4285179897,1789442930&amp;gp=44" width="132" height="132" /></a>&nbsp;</p> <p style="color: red" align="left">本文同时发布在我的<a href="http://jsy2005.spaces.live.com/">MSN Spaces</a>和<a href="http://www.sostips.com">http://www.sostips.com</a>两个博客上。</p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/127.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=127</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=127&amp;key=628ebbdc</trackback:ping></item><item><title>今天发现一个sohu的博客不能删除收藏的相册的问题</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/110.htm</link><pubDate>Sun, 23 Sep 2007 06:18:07 +0800</pubDate><guid>http://www.myjsy.com/Article/110.htm</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp; 昨天发现，SOHU的博客中，收藏的相册中有一个删除不掉了，点删除按钮没有反应，而其他的则正常。不正常的相册截图如下：</p> <div style="text-align: center"><img src="../attachments/200709/0780238374.jpg" alt="open_img(&#39;attachments/200709/0780238374.jpg&#39;)" width="189" height="113" /><br /> </div><div>&nbsp;&nbsp;&nbsp; 自己看了一下，发现，把鼠标放在红色的叉上面，浏览器的状态栏中有如下显示：<br /> <div style="text-align: center"><img src="../attachments/200709/2996954864.jpg" alt="open_img(&#39;attachments/200709/2996954864.jpg&#39;)" width="238" height="24" /></div><br /> </div><div>&nbsp;&nbsp;&nbsp; 看来REMOVEFAVORITE函数使用了单引号作为字符型的定界符，而相册专辑的名称中也含有单引号，所以会导致无法删除，于是修改名称将单引号去掉，成功删除专辑。幸亏对相册专辑的重命名不是使用这种类似的函数，否则的话还真不知道怎么办好了，呵呵。</div>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/110.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=110</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=110&amp;key=b2fbac64</trackback:ping></item><item><title>用ASP实现动态密码卡功能</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/100.htm</link><pubDate>Fri, 24 Aug 2007 10:14:58 +0800</pubDate><guid>http://www.myjsy.com/Article/100.htm</guid><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 前几天给他人做网站，为了增强安全性，使用了动态密码卡来实现，因为网站要多人管理，使用静态密码的话容易造成泄露。不过没有设计数据库的形式，如果大家有兴趣可以自己做做和数据库连接起来的动态密码卡，这样便于实现多张卡。代码如下：<br /> -----------------以下为代码----------------------<br /> &lt;html&gt;<br /> &lt;title&gt;密码验证&lt;/title&gt;<br /> &lt;style type=&quot;text/css&quot;&gt;<br /> &lt;!--<br /> .STYLE1 {<br /> &nbsp;font-size: 16px;<br /> &nbsp;font-weight: bold;<br /> }<br /> --&gt;<br /> &lt;/style&gt;<br /> &lt;body&gt;<br /> &lt;p align=&quot;center&quot;&gt;<br /> &nbsp; &lt;%<br /> dim paswd<br /> dim card(6,6)<br /> card(0,0)=&quot;258&quot;<br /> card(0,1)=&quot;456&quot;<br /> card(0,2)=&quot;257&quot;<br /> card(0,3)=&quot;528&quot;<br /> card(0,4)=&quot;785&quot;<br /> card(0,5)=&quot;169&quot;<br /> card(0,6)=&quot;718&quot;<br /> card(1,0)=&quot;125&quot;<br /> card(1,1)=&quot;673&quot;<br /> card(1,2)=&quot;435&quot;<br /> card(1,3)=&quot;574&quot;<br /> card(1,4)=&quot;923&quot;<br /> card(1,5)=&quot;234&quot;<br /> card(1,6)=&quot;828&quot;<br /> card(2,0)=&quot;273&quot;<br /> card(2,1)=&quot;461&quot;<br /> card(2,2)=&quot;361&quot;<br /> card(2,3)=&quot;832&quot;<br /> card(2,4)=&quot;257&quot;<br /> card(2,5)=&quot;176&quot;<br /> card(2,6)=&quot;924&quot;<br /> card(3,0)=&quot;283&quot;<br /> card(3,1)=&quot;785&quot;<br /> card(3,2)=&quot;847&quot;<br /> card(3,3)=&quot;763&quot;<br /> card(3,4)=&quot;120&quot;<br /> card(3,5)=&quot;635&quot;<br /> card(3,6)=&quot;745&quot;<br /> card(4,0)=&quot;345&quot;<br /> card(4,1)=&quot;344&quot;<br /> card(4,2)=&quot;876&quot;<br /> card(4,3)=&quot;123&quot;<br /> card(4,4)=&quot;434&quot;<br /> card(4,5)=&quot;946&quot;<br /> card(4,6)=&quot;453&quot;<br /> card(5,0)=&quot;124&quot;<br /> card(5,1)=&quot;662&quot;<br /> card(5,2)=&quot;162&quot;<br /> card(5,3)=&quot;843&quot;<br /> card(5,4)=&quot;234&quot;<br /> card(5,5)=&quot;238&quot;<br /> card(5,6)=&quot;753&quot;<br /> card(6,0)=&quot;647&quot;<br /> card(6,1)=&quot;283&quot;<br /> card(6,2)=&quot;847&quot;<br /> card(6,3)=&quot;734&quot;<br /> card(6,4)=&quot;764&quot;<br /> card(6,5)=&quot;652&quot;<br /> card(6,6)=&quot;985&quot;<br /> x=request.Form(&quot;passcode&quot;)<br /> if x&lt;&gt;&quot;&quot; then<br /> &nbsp;paswd=Cstr(card(session(&quot;zuobiao1&quot;),session(&quot;zuobiao2&quot;)))&amp;Cstr(card(session(&quot;zuobiao3&quot;),session(&quot;zuobiao4&quot;)))<br /> &nbsp;if x=paswd then<br /> &nbsp;&nbsp;&nbsp;&nbsp; Session.Contents.Remove(&quot;zuobiao1&quot;)<br /> &nbsp;&nbsp;Session.Contents.Remove(&quot;zuobiao2&quot;)<br /> &nbsp;&nbsp;Session.Contents.Remove(&quot;zuobiao3&quot;)<br /> &nbsp;&nbsp;Session.Contents.Remove(&quot;zuobiao4&quot;)<br /> &nbsp;&nbsp;session(&quot;passed&quot;)=&quot;yes&quot;<br /> &nbsp;&nbsp;response.Redirect(&quot;adminlogin.asp?id=yes&quot;)<br /> &nbsp;else<br /> &nbsp;&nbsp;response.Write(&quot;验证码错误，如果无法看到验证码请联系管理员！&quot;)<br /> &nbsp;end if<br /> end if<br /> randomize<br /> session(&quot;zuobiao1&quot;)=0<br /> session(&quot;zuobiao1&quot;)=int(6.5*rnd())<br /> session(&quot;zuobiao2&quot;)=0<br /> session(&quot;zuobiao2&quot;)=int(6.5*rnd())<br /> session(&quot;zuobiao3&quot;)=0<br /> session(&quot;zuobiao3&quot;)=int(6.5*rnd())<br /> session(&quot;zuobiao4&quot;)=0<br /> session(&quot;zuobiao4&quot;)=int(6.5*rnd())</p> <p>%&gt;<br /> &lt;/p&gt;<br /> &lt;p align=&quot;center&quot; class=&quot;STYLE1&quot;&gt;密码卡验证&lt;br /&gt;<br /> 请找出密码卡中对应坐标的密码填写 &lt;/p&gt;<br /> &lt;form id=&quot;form1&quot; name=&quot;form1&quot; method=&quot;post&quot; action=&quot;index.asp&quot;&gt;<br /> &nbsp; &lt;p align=&quot;center&quot;&gt;坐标一：&lt;b&gt;&lt;%response.Write(session(&quot;zuobiao1&quot;))%&gt;&lt;%response.Write(session(&quot;zuobiao2&quot;))%&gt;&lt;/b&gt;坐标二：&lt;b&gt;&lt;%response.Write(session(&quot;zuobiao3&quot;))%&gt;&lt;%response.Write(session(&quot;zuobiao4&quot;))%&gt;&lt;/b&gt;&lt;/p&gt;<br /> &nbsp; &lt;p align=&quot;center&quot;&gt;密码：&nbsp;&nbsp;&nbsp;<br /> &nbsp;&nbsp;&nbsp; &lt;input name=&quot;passcode&quot; type=&quot;text&quot; id=&quot;passcode&quot; /&gt;<br /> &nbsp; &lt;/p&gt;<br /> &nbsp; &lt;p align=&quot;center&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;提交&quot; /&gt; &amp;nbsp;&amp;nbsp;<br /> &nbsp;&nbsp;&nbsp; &lt;input type=&quot;reset&quot; name=&quot;Submit2&quot; value=&quot;重置&quot; /&gt;<br /> &nbsp; &lt;/p&gt;<br /> &lt;/form&gt;<br /> &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br /> &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br /> &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br /> &lt;p&gt;&amp;nbsp;&lt;/p&gt;<br /> &lt;p&gt;&lt;center&gt;网站设计及制作：雨&middot;漫步&lt;/center&gt;&lt;/p&gt;<br /> &lt;/body&gt;<br /> &lt;/html&gt;<br /> -------------------以上为代码-----------------------&nbsp;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;其中的数组中card(x,y),在显示页面的时候会提示：&ldquo;坐标一：XX，坐标二：XX&rdquo;都是两位数，这两个两位数的坐标，分别对应数组的两个元素，例如：&ldquo;坐标一：25，坐标二：62&rdquo;那么在密码中就应该填写card(2,5)和card(6,2)的值，根据上面可得分别是：176和847，那么密码框就应该填写176847。<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在使用的时候可以吧上面所罗列的数组中的数字改了，然后按照坐标制作成表格，打印在卡片上，就做成了一张密码卡了。<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 为了保密起见，上面的密码我已经都修改过了，是随便写的，所以不是随机的，如果有需要，最好自己生成些随机数填上，这样被猜中的几率会降低。也可以增加密码的长度，这就按需要而定了。<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 本文系原创，转载请注明出处及引用通告。</p>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/100.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=100</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=100&amp;key=412f1bb8</trackback:ping></item><item><title>学习日记——VBScript（三）</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/55.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/55.htm</guid><description><![CDATA[<DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎replace函数<br/>&nbsp;replace(expression,find,replacewith[,compare[,count[,start]]])<br/>&nbsp;&nbsp;expression&nbsp;必选，字符串表达式，被操作的源字符串<br/>&nbsp;&nbsp;find&nbsp;&nbsp;必选，被所搜的字符串<br/>&nbsp;&nbsp;replacewith&nbsp;必选，用于替换的字符串<br/>&nbsp;&nbsp;start&nbsp;&nbsp;可选，从expression中开始搜索子字符串的位置，默认为1<br/>&nbsp;&nbsp;count&nbsp;&nbsp;可选，执行子字符串替换的数目。默认为-1，进行所有的替换<br/>&nbsp;&nbsp;compare&nbsp;&nbsp;可选，进行比较的方法<br/>&nbsp;&nbsp;&nbsp;英文表示&nbsp;&nbsp;&nbsp;&nbsp;数值&nbsp;描述<br/>&nbsp;&nbsp;&nbsp;vbBinarycompare&nbsp;&nbsp;0&nbsp;二进制比较<br/>&nbsp;&nbsp;&nbsp;vbTextCompare&nbsp;&nbsp;1&nbsp;文本比较<br/>&nbsp;&nbsp;&nbsp;vbDatabaseCompare&nbsp;2&nbsp;基于数据库(在此数据库中执行比较)中包含的信息的比较<br/>&nbsp;返回值：<br/>&nbsp;如果&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回值<br/>&nbsp;expression为零&nbsp;&nbsp;&nbsp;零长度字符串（\""）<br/>&nbsp;expression为NULL&nbsp;&nbsp;错误<br/>&nbsp;find为零&nbsp;&nbsp;&nbsp;&nbsp;expression的副本<br/>&nbsp;replacewith为零长度&nbsp;&nbsp;expression的副本，其中删除了所有由find参数指定的内容<br/>&nbsp;start&gt;len(expression)&nbsp;零长度字符串<br/>&nbsp;count为0&nbsp;&nbsp;&nbsp;&nbsp;express的副本</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎ltrim rtrim trim替换空格<br/>&nbsp;ltrim&nbsp;替换左边空格<br/>&nbsp;rtrim&nbsp;替换右边空格<br/>&nbsp;trim&nbsp;替换前后所有空格</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎mid(string,start[,length])取子串函数<br/>◎Left(string,length)取左子串函数<br/>◎Right(string,length)取右子串函数<br/>&nbsp;string&nbsp;字符串表达式，从中返回字符，如果含有NULL，则返回也为NULL<br/>&nbsp;start&nbsp;string中被提取的字符部分的开始位置，如果超过了string中字符的数目，将返回零长度字符串<br/>&nbsp;length&nbsp;要返回的字符串数，如果省略或超过文本的字符数(包括start处的字符)，将返回字符串中从start到字符串结束的所有字符</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎len()长度函数，返回字符串或变量的长度</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎LCase(string)返回字符串小写形式</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎UCase(string)返回字符串大写形式</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎instr([start,]string1,string2[,compare])返回某字符串（string2）在另一个字符串（string1）中出现的位置<br/>&nbsp;参数&nbsp;&nbsp;功能<br/>&nbsp;start&nbsp;&nbsp;数值表达式，设置每次搜索的开始位置<br/>&nbsp;string1&nbsp;&nbsp;接受搜索的字符串表达式（源）<br/>&nbsp;string2&nbsp;&nbsp;要搜索的字符串表达式（目的）<br/>&nbsp;compare&nbsp;&nbsp;同replace中作用一样<br/>&nbsp;返回值：<br/>&nbsp;如果&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回<br/>&nbsp;string1为零长度&nbsp;&nbsp;&nbsp;0<br/>&nbsp;string1为NULL&nbsp;&nbsp;&nbsp;null<br/>&nbsp;string2为零长度&nbsp;&nbsp;&nbsp;start<br/>&nbsp;string2没有找到&nbsp;&nbsp;&nbsp;0<br/>&nbsp;在string1中找到string2&nbsp;找到匹配字符串的位置<br/>&nbsp;start&gt;len(string2)&nbsp;&nbsp;0</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎asc(string)返回字符串的第一个字母的ASCII编码值，十进制</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎CBool(expression)返回表达式的布尔值，只有表达式为0时才返回FALSE，TRUE或FALSE</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎CDbl(expression)其参数可以是任意有效的表达式，返回一个表达式，此表达式已经被转换为双精度值</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎Chr(num)其参数为十进制数值，返回以其为ASC码的字符</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎CInt(expression)将表达式转换为Int型</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎CStr(expression)将表达式转换为string型，若表达式为NULL则会出错</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: black; PADDING-TOP: 5px">◎Eval(string)动态执行string包含的命令<br/>&nbsp;如：eval("1*2+3") &nbsp;返回5<br/>&nbsp;&nbsp;eval("a=b")&nbsp;&nbsp;判断a=b<br/>&nbsp;&nbsp;eval("a=123")&nbsp;赋值语句</DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/55.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=55</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=55&amp;key=927d4268</trackback:ping></item><item><title>JavaScript脚本基础（一）</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/54.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/54.htm</guid><description><![CDATA[<DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎基本格式：&lt;scriptlanguage="JavaScript"&gt;……&lt;/Script&gt;</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎var声明变量,声明的同时进行赋值，JavaScript是严格区分大小写的<br/>&nbsp;var a="a";<br/>&nbsp;变量的第一个字符必须是一个字母或一个下划线，或一个美元符号<br/>&nbsp;变量的第二个字符开始可以是字母，数字，下划线或美元符号<br/>&nbsp;变量名不可以和JAVASCRIPT的关键字重复<br/>&nbsp;如果要声明一个变量并进行初始化，但又不指定特殊值，可以将其指定为NULL，即vara=null;<br/>&nbsp;如果声明了一个变量，但是没有赋值，则变量存在，且为undefined类型，如果此类型参加运算，返回NAN<br/>&nbsp;直接对变量赋值的时候可以隐式声明一个变量</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎数据类型，JAVASCRIPT可以自动转换数据类型<br/>&nbsp;1，浮点数：12.345<br/>&nbsp;2，整数：123<br/>&nbsp;3，Boolean：true,false<br/>&nbsp;4，字符串：\"asdd123"<br/>&nbsp;5，对象：var themonths=new array(12)<br/>&nbsp;6，NULL：什么也不是，空<br/>&nbsp;7，Undefined：只声明而未赋值的变量类型</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎变量类型的转换：<br/>&nbsp;自动转换：<br/>&nbsp;&nbsp;num=2;<br/>&nbsp;&nbsp;a="1"+num;&nbsp;//此时num被转换为字符串，结果为12<br/>&nbsp;强制转换：<br/>&nbsp;&nbsp;parseint()强制转换为整形，只要有可以转换的字符就进行转换，如果没有任何可转换的字符而无法转换，返回NaN<br/>&nbsp;&nbsp;parsefloat()强制转换为浮点型，同上一个函数一样，如果无法转换则返回NaN，注意NaN与包括自身在内的任何值都不相等，只能用ISNaN判断！</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎函数的定义<br/>&nbsp;functionfunctionname([arg1[,arg2[,...[,argN]]]])<br/>&nbsp;{<br/>&nbsp;statements<br/>&nbsp;return(value)<br/>&nbsp;}<br/>&nbsp;已定义的函数在HTML标签的事件中都可以直接调用，如：<br/>&nbsp;&lt;tdonclick="functionname(this)"&gt;就在td标签的单击事件中调用了函数functionname(),其中this指代其所在的标签，也就是这里的当前td</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎setTimeout()函数<br/>&nbsp;window.setTimeout(代码，经过的毫秒数[,使用的语言])<br/>&nbsp;功能：经过设定的时间后触发事件<br/>&nbsp;返回：一个整数标识</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎clearTimeout()函数<br/>&nbsp;window.clearTimeout(整数标识)<br/>&nbsp;功能：清除以前设置的setTimeout函数<br/>&nbsp;整数标识为setTimeout函数的返回值</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎setInterval()函数<br/>&nbsp;window.setInterval(代码，经过时间[，使用的脚本语言])<br/>&nbsp;功能：每隔指定时间就触发指定的代码</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎creatPopup()函数<br/>&nbsp;window.creatPopup([vArgs])<br/>&nbsp;功能：强奸弹出窗口<br/>&nbsp;返回：一个弹出对话框的实例标识<br/>&nbsp;操作方法：实例标识.show(X,Y,宽,高,相对区域)</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎javascript流程控制语句<br/>&nbsp;1，单一选择结构（if）<br/>&nbsp;2，双路选择结构（if、else）<br/>&nbsp;3，内联三元运算符（？：）<br/>&nbsp;4，多路选择结构（switch）</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎if……else<br/>&nbsp;if(condition)<br/>&nbsp;{&nbsp;&nbsp;&nbsp;//只有一条语句的时候，大括号可以省略<br/>&nbsp;statement1;<br/>&nbsp;}<br/>&nbsp;[else&nbsp;&nbsp;//中括号表示可选<br/>&nbsp;{<br/>&nbsp;statement2;<br/>&nbsp;}]</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎条件运算符<br/>&nbsp;(条件表达式)？结果1：结果2<br/>&nbsp;如果条件表达式成立则返回结果1，否则返回结果2<br/>&nbsp;如：<br/>&nbsp;var hours;<br/>&nbsp;hours+=(theHour&gt;=12)?"pm":"am";</DIV><DIV STYLE="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 5px; COLOR: blue; PADDING-TOP: 5px">◎swith(表达式)<br/>{<br/>&nbsp;case 结果1:{处理语句;}<br/>&nbsp;case 结果2:{处理语句;}<br/>&nbsp;case 结果3:{处理语句;}<br/>&nbsp;case 结果4:{处理语句;}<br/>&nbsp;……<br/>&nbsp;default:{处理语句;}<br/>}<br/>注意：其中遇到BREAK;的时候会跳出swith语句，如果没有break则会继续执行下面的CASE.</DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/54.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=54</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=54&amp;key=4e5c27c6</trackback:ping></item><item><title>mysql在phpmyadmin中更改密码后出现错误的解决方法</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/3.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/3.htm</guid><description><![CDATA[<DIV>&nbsp;<DIV CLASS="t_msgfont" ID="postmessage_650103">Mysql 4.1 Windows下升级问题<br/>使用PHPMYADMIN时报错：<br/>Client does not support authentication protocol requested<br/>by server; consider upgrading MySQL client<br/><br/>官方的说法是<br/><br/>MySQL 4.1 and up uses an authentication protocol based on apassword hashing algorithm that is incompatible with that used byolder clients. .....<br/><br/><br/><br/><br/>如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL在WINDOWS是client和server一起装上了的)<br/><br/>请使用以下两种方法之一<br/><br/>其一:<br/><br/>mysql&gt; SET PASSWORD FOR<br/>-&gt; &#39;some_user&#39;@&#39;some_host&#39; = OLD_PASSWORD(&#39;newpwd&#39;);<br/><br/>其二:<br/><br/>mysql&gt; UPDATE mysql.user SET Password =OLD_PASSWORD(&#39;newpwd&#39;)<br/>-&gt; WHERE Host = &#39;some_host&#39; AND User = &#39;some_user&#39;;<br/>mysql&gt; FLUSH PRIVILEGES;<br/><br/><br/>官方连接：<br/><br/><A HREF="http://dev.mysql.com/doc/mysql/en/Old_client.html" TARGET="_blank">http://dev.mysql.com/doc/mysql/en/Old_client.html</A></DIV></DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/3.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=3</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=3&amp;key=806b8111</trackback:ping></item><item><title>【转载】Session丢失的解决办法小结</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/30.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/30.htm</guid><description><![CDATA[<DIV><DIV CLASS="postTitle">最近在做ASP.NET项目时，测试网站老是取不出Session中的值，在网上搜索了一下，找到一些解决方法，记录在这里。最后使用存储在StateServer中的办法解决了问题。<br/></DIV><P>SessionState 的Timeout)，其主要原因有三种。<br/>一：有些杀病毒软件会去扫描您的Web.Config文件，那时Session肯定掉，这是微软的说法。<br/>二:程序内部里有让Session掉失的代码，及服务器内存不足产生的。<br/>三：程序有框架页面和跨域情况。<br/>第一种解决办法是:使杀病毒软件屏蔽扫描Web.Config文件(程序运行时自己也不要去编辑它)<br/>第二种是检查代码有无Session.Abandon()之类的。<br/>第三种是在Window服务中将ASP.NET State Service 启动。<br/></P><P>下面是帮助中的内容:<br/>(ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/cpguide/html/cpconsessionstate.htm)<br/>ASP.NET提供一个简单、易于使用的会话状态模型，您可以使用该模型跨多个 Web请求存储任意数据和对象。它使用基于字典的、内存中的对象引用（这些对象引用存在于IIS进程中）缓存来完成该操作。使用进程内会话状态模式时请考虑下面的限制：</P><P>使用进程内会话状态模式时，如果 aspnet_wp.exe或应用程序域重新启动，则会话状态数据将丢失。这些重新启动通常会在下面的情况中发生：<br/>在应用程序的 Web.config 文件的 &lt;processModel&gt;元素中，设置一个导致新进程在条件被满足时启动的属性，例如memoryLimit。<br/>修改 Global.asax 或 Web.config 文件。<br/>更改到 Web 应用程序的 \Bin 目录。<br/>用杀毒软件扫描并修改 Global.asax 文件、Web.config 文件或 Web应用程序的 \Bin 目录下的文件。<br/>如果在应用程序的 Web.config 文件的 &lt;processModel&gt;元素中启用了网络园模式，请不要使用进程内会话状态模式。否则将发生随机数据丢失。<br/></P><DIV CLASS="postbody">还有这二种：<br/><br/>一：在第一个页面置了SESSION，然后REDIRECT去第二个页面。解决方法是在REDIRECT中设置endResponse为FALSE。<br/><br/>二：ASP.NET中使用了ACCESS数据库，而且数据库是放在bin目录中的。解决方法是不要放会更新的文件在BIN目录中。<br/><br/>参考：<A HREF="http://www.dotnet247.com/247reference/msgs/58/290316.aspx" TARGET="_new"><FONT COLOR="#FF9900">http://www.dotnet247.com/247reference/msgs/58/290316.aspx</FONT></A><br/></DIV><H2><br/>Asp.net 默认配置下，Session莫名丢失的原因及解决办法</H2><P>&nbsp;</P><P>正常操作情况下Session会无故丢失。因为程序是在不停的被操作，排除Session超时的可能。另外，Session超时时间被设定成60分钟，不会这么快就超时的。<br/><br/>这次到CSDN上搜了一下帖子，发现好多人在讨论这个问题，然后我又google了一下，发现微软网站上也有类似的内容。<br/><br/>现在我就把原因和解决办法写出来。<br/><br/></P><H2>原因：</H2><P><br/>由于Asp.net程序是默认配置，所以Web.Config文件中关于Session的设定如下：<br/><FONT COLOR="#008080">&lt;</FONT><FONT COLOR="#008080">sessionState</FONT> <FONT COLOR="#2E8B57"><B>mode</B></FONT>=<FONT COLOR="#FF00FF">&#39;InProc&#39;</FONT><FONT COLOR="#2E8B57"><B>stateConnectionString</B></FONT>=<FONT COLOR="#FF00FF">&#39;tcpip=127.0.0.1:42424&#39;</FONT> <FONT COLOR="#2E8B57"><B>sqlConnectionString</B></FONT>=<FONT COLOR="#FF00FF">&#39;data source=127.0.0.1;Trusted_Connection=yes&#39;</FONT><FONT COLOR="#2E8B57"><B>cookieless</B></FONT>=<FONT COLOR="#FF00FF">&#39;true&#39;</FONT> <FONT COLOR="#2E8B57"><B>timeout</B></FONT>=<FONT COLOR="#FF00FF">&#39;60&#39;</FONT><FONT COLOR="#008080">/&gt;</FONT><br/><br/>我们会发现sessionState标签中有个属性mode，它可以有3种取值：InProc、StateServer?SQLServer（大小写敏感）。默认情况下是InProc，也就是将Session保存在进程内（IIS5是aspnet_wp.exe，而IIS6是W3wp.exe），这个进程不稳定，在某些事件发生时，进程会重起，所以造成了存储在该进程内的Session丢失。<br/><br/>哪些情况下该进程会重起呢？微软的<A HREF="http://support.microsoft.com/default.aspx?scid=kb;EN-US;q324772" TARGET="_blank"><FONT COLOR="#330066">一篇文章</FONT></A>告诉了我们：<br/>1、配置文件中processModel标签的memoryLimit属性<br/>2、Global.asax或者Web.config文件被更改<br/>3、Bin文件夹中的Web程序（DLL）被修改<br/>4、杀毒软件扫描了一些.config文件。<br/>更多的信息请参考<A HREF="http://support.microsoft.com/kb/316148/EN-US/" TARGET="_blank"><FONT COLOR="#330066">PRB: Session variables are lostintermittently in ASP.NET applications</FONT></A><br/><br/></P><H2>解决办法：</H2><P><br/>前面说到的sessionState标签中mode属性可以有三个取值，除了InProc之外，还可以为StateServer、SQLServer。这两种存Session的方法都是进程外的，所以当aspnet_wp.exe重起的时候，不会影响到Session。<br/><br/>现在请将mode设定为StateServer。StateServer是本机的一个服务，可以在系统服务里看到服务名为ASP.NETStateService的服务，默认情况是不启动的。当我们设定mode为StateServer之后，请手工将该服务启动。<br/><br/>这样，我们就能利用本机的StateService来存储Session了，除非电脑重启或者StateService崩掉，否则Session是不会丢的（因Session超时被丢弃是正常的）。<br/><br/>除此之外，我们还可以将Session通过其他电脑的StateService来保存。具体的修改是这样的。同样还在sessionState标签中，有个stateConnectionString=&#39;tcpip=127.0.0.1:42424&#39;属性，其中有个ip地址，默认为本机（127.0.0.1），你可以将其改成你所知的运行了StateService服务的电脑IP，这样就可以实现位于不同电脑上的Asp.net程序互通Session了。<br/><br/>如果你有更高的要求，需要在服务期重启时Session也不丢失，可以考虑将mode设定成SQLServer，同样需要修改sqlConnectionString属性。关于使用SQLServer保存Session的操作，请访问<A HREF="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp12282000.asp" TARGET="_blank"><FONT COLOR="#330066">这里</FONT></A>。<br/><br/>在使用StateServer或者SQLServer存储Session时，所有需要保存到Session的对象除了基本数据类型（默认的数据类型，如int、string等）外，都必须序列化。只需将[Serializable]标签放到要序列化的类前就可以了。<br/>如：<br/>[Serializable]<br/>public class MyClass<br/>{<br/>&nbsp;&nbsp;&nbsp;&nbsp;......<br/>}<br/>具体的序列化相关的知识请参<A HREF="http://www.microsoft.com/china/msdn/archives/library/dndotnet/html/objserializ.asp#objserializ_topic4" TARGET="_blank"><FONT COLOR="#330066">这里</FONT></A>。<br/><br/>至此，问题解决。</P></DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/30.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=30</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=30&amp;key=0143773f</trackback:ping></item><item><title>让IIS支持FSO的设置</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/31.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/31.htm</guid><description><![CDATA[<DIV STYLE="FONT-SIZE: 12px; COLOR: blue; TEXT-INDENT: 2em"><DIV CLASS="cnt"><H2 CLASS="diaryTitle">iis支持FSO的设置-&nbsp;-</H2><P>&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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1、首先在系统盘中查找scrrun.dll，如果存在这个文件，请跳到第三步，如果没有，请执行第二步。<br/>　　2、在安装文件目录i386中找到scrrun.dl_，用winrar解压缩，得scrrun.dll，然后复制到x（你的系统盘）:\windows\system32\目录中<br/>　　3、运行regsvr32&nbsp;scrrun.dll即可。<br/>　　4、如果想关闭FSO组件，请运行&nbsp;regsvr32&nbsp;/u&nbsp;scrrun.dll即可<br/><br/></P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FSO(FileSystemObject)是微软ASP的一个对文件操作的控件，该控件可以对服务器进行读取、新建、修改、删除目录以及文件的操作。是ASP编程中非常有用的一个控件。但是因为权限控制的问题，很多虚拟主机服务器的FSO反而成为这台服务器的一个公开的后门，因为客户可以在自己的ASP网页里面直接就对该控件编程，从而控制该服务器甚至删除服务器上的文件。因此不少业界的虚拟主机提供商都干脆关掉了这个控件，让客户少了很多灵活性。</P></DIV></DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/31.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=31</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=31&amp;key=c4a1af27</trackback:ping></item><item><title>CSS中position的relative（相对）以及absolute（绝对）用法</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/36.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/36.htm</guid><description><![CDATA[<DIV><P>默认的属性值都是static，静态。就不用多说了。最关键的是<br/>relative（相对）以及absolute（绝对）。<br/>往往我们如果是COPY别人的代码，会把absolute属性与left、top配合起来制作相关的“悬浮层”效果。然而有时候我们需要针对某一个容器的悬浮效果，而不是针对窗口的。这时候通过高度、宽度的计算不但麻烦，而且几乎无法完美实现效果。我一开始也无能为力，后来发现只要把其上一级的样式属性position设置为relative就可以了。</P><P>也就是说，position的属性值的效果，直接受其容器样式中position属性值影响。<br/>例如如下A-B的嵌套结构</P><DIV CLASS="code">&lt;div id="A"&gt;<br/>&lt;div id="B"&gt;<br/>&lt;/div&gt;<br/>&lt;/div&gt;</DIV><P>当A的position为relative时，B的position为absolute才有效。这时候left:0、top:0就不再针对窗口文档，而是针对id为A的这个div了。</P><P>这样在开发一些基于B/S应用程序的时候，就能很方便的添加一些UI元素，例如某一个活动层的关闭按钮等。</P></DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/36.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=36</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=36&amp;key=398a4787</trackback:ping></item><item><title>HTML禁止选择，禁止复制，禁止拷贝的代码</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/11.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/11.htm</guid><description><![CDATA[<DIV>&nbsp;刚在一个看一个站点的源代码的的时候发现的，其实原来真的很简单<br/><DIV CLASS="code">&lt;body&nbsp;leftmargin=0&nbsp;topmargin=0&nbsp;oncontextmenu=&#39;return&nbsp;false&#39;&nbsp;ondragstart=&#39;return&nbsp;false&#39;&nbsp;onselectstart&nbsp;=&#39;return&nbsp;false&#39;&nbsp;onselect=&#39;document.selection.empty()&#39;&nbsp;oncopy=&#39;document.selection.empty()&#39;&nbsp;onbeforecopy=&#39;return&nbsp;false&#39;&nbsp;onmouseup=&#39;document.selection.empty()&#39;&gt;</DIV><br/>关键就在&nbsp;&nbsp;<DIV CLASS="code">oncontextmenu=&#39;return&nbsp;false&#39;<br/>ondragstart=&#39;return&nbsp;false&#39;&nbsp;<br/>onselectstart&nbsp;=&#39;return&nbsp;false&#39;&nbsp;<br/>onselect=&#39;document.selection.empty()&#39;&nbsp;<br/>oncopy=&#39;document.selection.empty()&#39;&nbsp;<br/>onbeforecopy=&#39;return&nbsp;false&#39;&nbsp;<br/>onmouseup=&#39;document.selection.empty()&#39;</DIV></DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/11.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=11</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=11&amp;key=632bf554</trackback:ping></item><item><title>学习日记——HTML基础（三）</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/67.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/67.htm</guid><description><![CDATA[<DIV>◎&lt;FORM&gt;表单标记<br/>name="name"&nbsp;&nbsp;&nbsp;设置表单名称<br/>method="get/post"&nbsp;提交表单的方法，有GET和POST，GET限制提交字符255个<br/>action="URL"&nbsp;&nbsp;表单提交对象，即数据处理程序<br/>&nbsp;&lt;form&gt;中的常用标记<br/>&nbsp;&nbsp;&lt;inputtype="…\"&gt;输入域<br/>&nbsp;&nbsp;&lt;input&gt;中一般必须要设置的是type，value，name<br/>&nbsp;&nbsp;&nbsp;type的值包括：<br/>&nbsp;&nbsp;&nbsp;&nbsp;text&nbsp;&nbsp;文本框<br/>&nbsp;&nbsp;&nbsp;&nbsp;password&nbsp;密码框<br/>&nbsp;&nbsp;&nbsp;&nbsp;radio&nbsp;&nbsp;单选按钮<br/>&nbsp;&nbsp;&nbsp;&nbsp;checkbox&nbsp;复选框<br/>&nbsp;&nbsp;&nbsp;&nbsp;submit&nbsp;&nbsp;提交按钮<br/>&nbsp;&nbsp;&nbsp;&nbsp;reset&nbsp;&nbsp;重设为默认值<br/>&nbsp;&nbsp;&nbsp;&nbsp;hidden&nbsp;&nbsp;隐藏域<br/>&nbsp;&nbsp;&nbsp;&nbsp;file&nbsp;&nbsp;文件域<br/>&nbsp;&nbsp;&nbsp;&nbsp;image&nbsp;&nbsp;图像按钮<br/>&nbsp;&nbsp;&nbsp;&nbsp;button&nbsp;&nbsp;按钮，无指定作用<br/>&nbsp;&nbsp;&nbsp;&lt;inputtype="…\"value="默认值\"&gt;&nbsp;&nbsp;value用来设置默认值或者按钮的显示文本<br/>&nbsp;&nbsp;&nbsp;&lt;inputtype="image"src="URL"&gt;&nbsp;&nbsp;图片形式的按钮，src为图片地址<br/>&nbsp;&nbsp;&nbsp;&lt;inputtype="radio" checked value="value"name="name"&gt;&nbsp;checked表示默认选中，同名的RADIO控件为同一组，同组内为单选。<br/>&nbsp;&nbsp;&nbsp;&lt;inputtype="checkbox" checked value="value" name="name"&gt;checked表示默认选中，同名的为一组，按组提交。<br/>&nbsp;&nbsp;&nbsp;&lt;inputtype="file"&gt;提交给处理程序的是文件的路径<br/>&nbsp;&nbsp;&lt;textarea name="name"rows=num cols=numtabindex=num&gt;…&lt;/textarea&gt;多行输入域标记<br/>&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;输入域名称<br/>&nbsp;&nbsp;&nbsp;rows&nbsp;&nbsp;输入域行数<br/>&nbsp;&nbsp;&nbsp;cols&nbsp;&nbsp;输入域列数（单位为字符）<br/>&nbsp;&nbsp;&nbsp;tabindex&nbsp;tab键顺序<br/>&nbsp;&nbsp;&nbsp;wrap&nbsp;&nbsp;是否换行，并非显示区域，而是读取的值中是否按换行加入换行符<br/>&nbsp;&nbsp;&nbsp;&nbsp;取值：off&nbsp;不换行<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;soft&nbsp;软换行<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hard&nbsp;硬换行<br/>&nbsp;&nbsp;&nbsp;…&nbsp;&nbsp;&nbsp;标签之间的值为输入域默认值<br/>&nbsp;&nbsp;&lt;select name=name size=nummultiple&gt;<br/>&nbsp;&nbsp;&lt;option selectedvalue=value1&gt;选项一&lt;/option&gt;<br/>&nbsp;&nbsp;&lt;!--其中&lt;/option&gt;可以省略,value是此项选中以后提交的数据--&gt;<br/>&nbsp;&nbsp;&lt;optionvalue=value2&gt;选项二&lt;/option&gt;<br/>&nbsp;&nbsp;&lt;optionvalue=value3&gt;选项三&lt;/option&gt;<br/>&nbsp;&nbsp;&lt;/select&gt;<br/>&nbsp;&nbsp;&nbsp;name&nbsp;&nbsp;选择列表框的名称<br/>&nbsp;&nbsp;&nbsp;size&nbsp;&nbsp;同时显示选项的数量<br/>&nbsp;&nbsp;&nbsp;multiple&nbsp;允许多选</DIV><DIV>◎&lt;frameset&gt;框架标签，可以用来代替body的位置，其自身可以嵌套<br/>&nbsp;&lt;noframes&gt;&lt;/noframes&gt;设置不支持框架的浏览器的显示内容<br/>&nbsp;&nbsp;&lt;frameset&gt;的属性<br/>&nbsp;&nbsp;&nbsp;rows=size&nbsp;&nbsp;&nbsp;行设置，即每个行有多高，用逗号隔开，页面会被按行分割<br/>&nbsp;&nbsp;&nbsp;cols=size&nbsp;&nbsp;&nbsp;列设置，即每个列有多宽，用逗号分割，页面会被按列分割<br/>&nbsp;&nbsp;&nbsp;noresize&nbsp;&nbsp;&nbsp;禁止改变框架布局<br/>&nbsp;&nbsp;&nbsp;frameborder&nbsp;&nbsp;&nbsp;是否显示页之间的边框<br/>&nbsp;&nbsp;&nbsp;border=num&nbsp;&nbsp;&nbsp;框架中各页之间边框的厚度<br/>&nbsp;&nbsp;&nbsp;framespacing=num&nbsp;框架页面间的距离<br/>&nbsp;&nbsp;&nbsp;bordercolor=#rrggbb&nbsp;边框颜色<br/>&nbsp;&nbsp;使用举例：<br/>&nbsp;&nbsp;&nbsp;&lt;framesetcols=20%,*&gt;<br/>&nbsp;&nbsp;&nbsp;&lt;framesrc="url"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;framesetrows=40%,*&gt;&lt;!--此处分割了剩余的80％为上下部分--&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;framesrc="url"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;framesrc="url"&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/frameset&gt;<br/>&nbsp;&nbsp;&nbsp;&lt;/frameset&gt;<br/>&nbsp;&nbsp;&nbsp;&lt;noframes&gt;<br/>&nbsp;&nbsp;&nbsp;……<br/>&nbsp;&nbsp;&nbsp;&lt;/noframes&gt;<br/>&nbsp;&nbsp;&lt;frame&gt;可以设置的属性<br/>&nbsp;&nbsp;&nbsp;src="url"&nbsp;&nbsp;&nbsp;&nbsp;页面的路径<br/>&nbsp;&nbsp;&nbsp;name="name"&nbsp;&nbsp;&nbsp;&nbsp;框架名称，链接使用&lt;ahref="a.htm"target="name"&gt;&lt;/a&gt;在a.htm的name框架中显示链接，href可省<br/>&nbsp;&nbsp;&nbsp;frameborder=0/1&nbsp;&nbsp;&nbsp;是否显示框架边框，也可以用yes/no<br/>&nbsp;&nbsp;&nbsp;marginwidth=num&nbsp;&nbsp;&nbsp;边框中内容与边框之间的左右边距离<br/>&nbsp;&nbsp;&nbsp;marginheight=num&nbsp;&nbsp;边框中内容与边框之间的上下距离<br/>&nbsp;&nbsp;&nbsp;scrolling=yes/no/auto&nbsp;是否显示滚动条<br/>&nbsp;&nbsp;&nbsp;noresize&nbsp;&nbsp;&nbsp;&nbsp;禁止改变框架布局</DIV><DIV>◎&lt;iframe src=urlname=iframename&gt;……&lt;/iframe&gt;单独的插入一个页面，如果IFRAME无法显示则出现中间的"……\"内容</DIV><DIV>◎&lt;marquee&gt;滚动字幕标签，只有IE支持<br/>&nbsp;&nbsp;direction&nbsp;&nbsp;滚动方向，默认left<br/>&nbsp;&nbsp;behavior&nbsp;&nbsp;滚动方式<br/>&nbsp;&nbsp;&nbsp;scroll默认&nbsp;&nbsp;向某一方向循环<br/>&nbsp;&nbsp;&nbsp;slide&nbsp;&nbsp;&nbsp;从一边到另一边并停下<br/>&nbsp;&nbsp;&nbsp;alternate&nbsp;&nbsp;左右来回走<br/>&nbsp;&nbsp;loop&nbsp;&nbsp;&nbsp;循环次数，默认为无限<br/>&nbsp;&nbsp;scrollamount&nbsp;滚动速度<br/>&nbsp;&nbsp;scrolldelay&nbsp;&nbsp;滚动延时，每走一次停留多久，但不影响总体速度<br/>&nbsp;&nbsp;bgcolor&nbsp;&nbsp;&nbsp;背景颜色<br/>&nbsp;&nbsp;height&nbsp;&nbsp;&nbsp;高度<br/>&nbsp;&nbsp;width&nbsp;&nbsp;&nbsp;宽度</DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/67.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=67</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=67&amp;key=b4454560</trackback:ping></item><item><title>关于PHP分页的教程</title><author>jsy1988@163.com (PisChiao)</author><link>http://www.myjsy.com/Article/79.htm</link><pubDate>Thu, 01 Jan 2004 00:00:00 +0800</pubDate><guid>http://www.myjsy.com/Article/79.htm</guid><description><![CDATA[<DIV>关于PHP分页的文章，转载：</DIV><DIV>单纯搭配&nbsp;MySQL&nbsp;数据库进行增、删、改、查功能，对于一般刚开始学习PHP的朋友已经算是一个里程碑，因为可以延伸出相当多的应用；只是当数据笔数持续成长时，看着画面越拉越长似乎不是办法，这时候就可以尝试进行分页功能。网上查了一下那些狗屁东西，虽是共享出来了，但注释不明，逻辑不清。于是淡水河边这厮就抽空分享一下了。言归正传。<br/>在设计分页功能时，第一个会想到的问题是要分几页？而分页的数量是基于符合条件数据总数计算出来，因此我们先尝试计算这个数字：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">mysql_connect("host","username","pass");<br/>mysql_select_db("dbname");<br/><br/>$result1&nbsp;=&nbsp;mysql_query(&#39;Select&nbsp;count(*)&nbsp;FROM&nbsp;table&#39;);<br/>$data1&nbsp;=&nbsp;mysql_fetch_row($result1);<br/>//&nbsp;$data1[0]&nbsp;就是数据总数</DIV></DIV><br/>接着假定每页要显示&nbsp;20&nbsp;个项目，计算总页数：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">$per&nbsp;=&nbsp;20;&nbsp;//每页显示项目数量<br/>$pages&nbsp;=&nbsp;ceil($data1[0]/$per);&nbsp;//总页数</DIV></DIV><br/>知道总页数之后就可以产生相对页数的连结，像是这样：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">for($i=1;$i&lt;=$pages;$i++)&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;&#39;&lt;a&nbsp;href="?page=&#39;.$i.&#39;"&gt;&#39;&nbsp;.&nbsp;$i&nbsp;.&nbsp;&#39;&lt;/a&gt;&#39;;<br/>}</DIV></DIV><br/>产生的连结是透过网址传递希望浏览的页面数字，我们可以透过全域变量取得；但是使用者提供的数据并非绝对正确，而且可能含有恶意的参数，因此需要增加一些过滤的手续：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">if(!isset($_GET["page"])){<br/>&nbsp;&nbsp;&nbsp;&nbsp;$page=1;&nbsp;//设定起始页<br/>}&nbsp;else&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;$page&nbsp;=&nbsp;intval($_GET["page"]);&nbsp;//确认页数只能够是数值数据<br/>&nbsp;&nbsp;&nbsp;&nbsp;$page&nbsp;=&nbsp;($page&nbsp;&gt;&nbsp;0)&nbsp;?&nbsp;$page&nbsp;:&nbsp;1;&nbsp;//确认页数大于零<br/>&nbsp;&nbsp;&nbsp;&nbsp;$page&nbsp;=&nbsp;($pages&nbsp;&gt;&nbsp;$page)&nbsp;?&nbsp;$page&nbsp;:&nbsp;$pages;&nbsp;//确认使用者没有输入太神奇的数字<br/>}</DIV></DIV><br/>现在程序流程已经可以知道使用者位于哪个页面，接着计算该页面需要出现哪些数据？因为刚刚已经设定了每页显示&nbsp;20&nbsp;笔数据，因此我们只需要计算这&nbsp;20&nbsp;笔数据要从哪里开始：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">$start&nbsp;=&nbsp;($page-1)*$per;&nbsp;//每页起始数据序号</DIV></DIV><br/>因为&nbsp;MySQL&nbsp;数据库的第一笔数据序号为零，因此第一页的数据是从第零笔开始。<br/><br/>到这里需要的参数都准备好了，我们就正式到数据库去取得所需要的数据，并且将它显示在画面上：<br/><DIV CLASS="UBBPanel"><DIV CLASS="UBBTitle">程序代码</DIV><DIV CLASS="UBBContent">$result2&nbsp;=&nbsp;mysql_query(&#39;Select&nbsp;*&nbsp;FROM&nbsp;table&nbsp;LIMIT&nbsp;&#39;&nbsp;.&nbsp;$start&nbsp;.&nbsp;&#39;,&nbsp;&#39;&nbsp;.&nbsp;$per);<br/>while($data2&nbsp;=&nbsp;mysql_fetch_row($result2))&nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;print_r($data2);<br/>}</DIV></DIV><br/>这里有两个需要注意的地方：<br/>1.&nbsp;养成习惯，取得需要的字段就好，不要每次都尝试用星号(*)取得全部资料<br/>2.&nbsp;实际的操作中记得先确认有没有符合条件的数据(&nbsp;mysql_num_rows()&nbsp;)，避免程序空转或是发生未能预期的错误<br/>为了不要模糊焦点，这里选择了比较粗糙的方式处理，如果实用的话,要再加些修饰和处理。</DIV>]]></description><category>网页·网站</category><comments>http://www.myjsy.com/Article/79.htm#comment</comments><wfw:comment>http://www.myjsy.com/</wfw:comment><wfw:commentRss>http://www.myjsy.com/feed.asp?cmt=79</wfw:commentRss><trackback:ping>http://www.myjsy.com/cmd.asp?act=tb&amp;id=79&amp;key=90b2b343</trackback:ping></item></channel></rss>
