<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>目标：创造价值！</title> 
<link>http://blog.8s8s.net/index.php</link> 
<description>路在脚下，怎么走，看自己喽!</description> 
<language>zh-cn</language> 
<copyright>Powered by Bo-blog 2.0.2 sp2</copyright>
<item>
<link>http://blog.8s8s.net/read.php?374</link>
<title>PHP繁简体转换的问题</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Tech</category>
<pubDate>Sat, 20 Jun 2009 07:46:33 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?374</guid> 
<description>
<![CDATA[ 
	PHP的繁体与简体有一下的划分。<br/><br/>繁体包括：big5繁体，UTF-8繁体<br/><br/>简体包括：gb2312简体，UTF-8简体<br/><br/>如果是UTF-8的繁体转换为纯GB2312的简体，首先需要将UTF-8的繁体转换为UTF-8简体，然后通过iconv将UTF-8简体转换为gb2312简体。<br/><br/>附一个PHP繁体与简体转换类。<br/><br/><a href="attachment/1245484037_0.rar">点击这里下载文件</a><br/><br/><div class="code"><br/><br/>include &quot;bg2gb/big2gb.php&quot;; &nbsp; <br/>$obj=new big2gb; &nbsp; <br/>/*<br/>简体 转换 繁体<br/>$string_big5 = $obj-&gt;chg_utfcode($string_gb,&#039;big5&#039;); &nbsp; <br/>繁体 转换 简体 &nbsp; <br/>$string_gb = $obj-&gt;chg_utfcode($string_big5,&#039;gb2312&#039;);<br/>*/<br/><br/></div><br/><br/><br/>Tags - <a href="http://blog.8s8s.net/tag.php?tag=php" rel="tag">php</a> , <a href="http://blog.8s8s.net/tag.php?tag=%E7%B9%81%E7%AE%80%E4%BD%93%E8%BD%AC%E6%8D%A2" rel="tag">繁简体转换</a> , <a href="http://blog.8s8s.net/tag.php?tag=%E7%B9%81%E4%BD%93" rel="tag">繁体</a> , <a href="http://blog.8s8s.net/tag.php?tag=%E7%AE%80%E4%BD%93" rel="tag">简体</a>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?373</link>
<title>mysql按多个条件排序</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Tech</category>
<pubDate>Thu, 18 Jun 2009 07:34:37 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?373</guid> 
<description>
<![CDATA[ 
	例子：<br/><br/>按类别倒序，按日期顺序。<br/><br/>SELECT * <br/>FROM `data_base` <br/>WHERE `id` <100<br/>ORDER BY `type` DESC,`date`<br/><br/>注意DESC关键字仅适用于在它前面的列名(type)；不影响date列的排序顺序。<br/>Tags - <a href="http://blog.8s8s.net/tag.php?tag=mysql" rel="tag">mysql</a>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?372</link>
<title>css实现ul li居中</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Default</category>
<pubDate>Thu, 04 Jun 2009 06:53:50 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?372</guid> 
<description>
<![CDATA[ 
	前提条件是ul的宽大于等于所有li的宽之和，实现li区块默认居中。<br/><br/>实例：<br/><br/><div class="code">&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;style&gt;<br/>body{<br/> &nbsp; &nbsp;font-size: 13px;<br/> &nbsp; &nbsp;font-family: Times New Roman;<br/>}<br/><br/>#navcontainer{<br/> &nbsp; &nbsp;width: 780px;<br/> &nbsp; &nbsp;margin: 0px auto;<br/> &nbsp; &nbsp;padding: 2px 0px 2px 0px;<br/>background:#cccccc;<br/>}<br/>#navcontainer ul{<br/> &nbsp; &nbsp;margin: 0 auto;<br/> &nbsp; &nbsp;text-align: center;<br/>}<br/>#navcontainer li{<br/> &nbsp; &nbsp;float: left !important;<br/> &nbsp; &nbsp;float: none;<br/> &nbsp; &nbsp;display: inline;<br/>background:#ffffff;<br/>}<br/><br/>#navcontainer a{<br/> &nbsp; &nbsp;font-size:13px;<br/> &nbsp; &nbsp;color:#333333;<br/> &nbsp; &nbsp;text-decoration:none;<br/>}<br/><br/>#navcontainer a:link{<br/> &nbsp; &nbsp;font-size:13px;<br/> &nbsp; &nbsp;color:#333333;<br/> &nbsp; &nbsp;text-decoration:none;<br/>}<br/><br/>#navcontainer a:hover{<br/> &nbsp; &nbsp;font-size:13px;<br/> &nbsp; &nbsp;color:#457892;<br/> &nbsp; &nbsp;border:solid 1px #457892;<br/> &nbsp; &nbsp;text-decoration:none;<br/>}<br/><br/>&lt;/style&gt;<br/>&lt;body&gt;<br/>&lt;div id=&quot;navcontainer&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;ul id=&quot;navlist&quot;&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a id=&quot;current&quot; href=&quot;/&quot;&gt;网站首页&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;/Demo/Default.aspx&quot;&gt;新闻动态&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;重要通知&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;在线订阅&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;联系我们&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;公司简介&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;产品展厅&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;动感地带&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;暴风影音&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;li&gt;&lt;a href=&quot;#&quot;&gt;爱普成败&lt;/a&gt;&lt;/li&gt;<br/> &nbsp; &nbsp; &nbsp; &nbsp;&lt;/ul&gt;<br/> &nbsp; &nbsp;&lt;/div&gt;<br/>&lt;/body&gt;<br/>&lt;/html&gt;</div>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?371</link>
<title>html标签fieldset</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Other</category>
<pubDate>Wed, 03 Jun 2009 02:43:45 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?371</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>&lt;fieldset&gt;<br/>&lt;legend&gt;健康信息：&lt;/legend&gt;<br/>&lt;form&gt;<br/>&lt;label&gt;身高：&lt;input type=&quot;text&quot; /&gt;&lt;/label&gt;<br/>&lt;label&gt;体重：&lt;input type=&quot;text&quot; /&gt;&lt;/label&gt;<br/>&lt;/form&gt;<br/>&lt;/fieldset&gt;<br/></div><br/>实例：<br/><br/><fieldset><br/><legend>健康信息：</legend><br/><form><br/><label>身高：<input type="text" /></label><br/><label>体重：<input type="text" /></label><br/></form><br/></fieldset>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?370</link>
<title>php使用正则表达式提取网页超级链接url的函数</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Other</category>
<pubDate>Wed, 27 May 2009 09:06:07 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?370</guid> 
<description>
<![CDATA[ 
	<div class="code">function match_links($document) { &nbsp; &nbsp;<br/> &nbsp; &nbsp;preg_match_all(&quot;&#039;&lt;&#92;s*a&#92;s.*?href&#92;s*=&#92;s*(&#91;&#92;&quot;&#92;&#039;&#93;)?(?(1)(.*?)&#92;&#92;1&#124;(&#91;^&#92;s&#92;&gt;&#93;+))&#91;^&gt;&#93;*&gt;?(.*?)&lt;/a&gt;&#039;isx&quot;,$document,$links); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/> &nbsp; &nbsp;while(list($key,$val) = each($links&#91;2&#93;)) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;if(!empty($val))<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$match&#91;&#039;link&#039;&#93;&#91;&#93; = $val;<br/> &nbsp; &nbsp;}<br/> &nbsp; &nbsp;while(list($key,$val) = each($links&#91;3&#93;)) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;if(!empty($val))<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$match&#91;&#039;link&#039;&#93;&#91;&#93; = $val;<br/> &nbsp; &nbsp;} &nbsp; &nbsp; &nbsp; &nbsp;<br/> &nbsp; &nbsp;while(list($key,$val) = each($links&#91;4&#93;)) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;if(!empty($val))<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$match&#91;&#039;content&#039;&#93;&#91;&#93; = $val;<br/> &nbsp; &nbsp;}<br/> &nbsp; &nbsp;while(list($key,$val) = each($links&#91;0&#93;)) {<br/> &nbsp; &nbsp; &nbsp; &nbsp;if(!empty($val))<br/> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$match&#91;&#039;all&#039;&#93;&#91;&#93; = $val;<br/> &nbsp; &nbsp;} &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br/> &nbsp; &nbsp;return $match;<br/>}</div>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?369</link>
<title>Mysql数据编码utf-8转换到gb2312过程</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Tech</category>
<pubDate>Thu, 14 May 2009 08:36:00 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?369</guid> 
<description>
<![CDATA[ 
	1、复制原始数据表结构<br/><br/>2、将原始表数据导出到文件<br/><br/><div class="code"><br/>C:&#92;Mysql&#92;bin&gt;mysql -u******* -p******<br/>Welcome to the MySQL monitor. &nbsp;Commands end with ; or &#92;g.<br/>Your MySQL connection id is 6196 to server version: ****-alpha-nt<br/><br/>Type &#039;help;&#039; or &#039;&#92;h&#039; for help. Type &#039;&#92;c&#039; to clear the buffer.<br/><br/>mysql&gt; use utf82gb<br/>Database changed<br/>mysql&gt; show tables;<br/>+-------------------------+<br/>&#124; Tables_in_utf82gb &nbsp; &nbsp; &nbsp; &#124;<br/>+-------------------------+<br/>&#124; duolaimi_wentihuid_boy &nbsp;&#124;<br/>&#124; duolaimi_wentihuid_boy2 &#124;<br/>&#124; duolaimi_wentihuid_girl &#124;<br/>+-------------------------+<br/>3 rows in set (0.00 sec)<br/><br/>mysql&gt; select * from duolaimi_wentihuid_girl into outfile &#039;girl.sql&#039;;<br/>Query OK, 535608 rows affected (0.55 sec)<br/><br/></div><br/><br/>3、用Ultraedit编辑器转换导出的MYSQL数据文件编码。<br/><br/>4、将转换后的数据重新导入数据表。<br/><br/><div class="code">load data infile &#039;girl.sql&#039; into table utf82gb.duolaimi_wentihuid_girl2;</div><br/>Tags - <a href="http://blog.8s8s.net/tag.php?tag=mysql" rel="tag">mysql</a>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?368</link>
<title>js动态加载css</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Default</category>
<pubDate>Tue, 28 Apr 2009 07:49:19 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?368</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/> &nbsp; &nbsp; &nbsp; &nbsp;var head = document.getElementsByTagName(&#039;HEAD&#039;).item(0);<br/> &nbsp; &nbsp; &nbsp; &nbsp;//新建Link节点<br/> &nbsp; &nbsp; &nbsp; &nbsp;var style = document.createElement(&#039;link&#039;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;style.href = &quot;/style/css/1.css&quot;;<br/> &nbsp; &nbsp; &nbsp; &nbsp;style.rel = &quot;stylesheet&quot;;<br/> &nbsp; &nbsp; &nbsp; &nbsp;style.type = &quot;text/css&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//-------------------------------------------------<br/> &nbsp; &nbsp; &nbsp; &nbsp;var thickbox = document.createElement(&#039;link&#039;);<br/> &nbsp; &nbsp; &nbsp; &nbsp;thickbox.href = &quot;ajax/thickbox.css&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;thickbox.rel = &quot;stylesheet&quot;;<br/> &nbsp; &nbsp; &nbsp; &nbsp;thickbox.type = &quot;text/css&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;//--------------------------------------------------<br/> &nbsp; &nbsp; &nbsp; &nbsp;//添加Link节点<br/> &nbsp; &nbsp; &nbsp; &nbsp;head.appendChild(style);<br/>&nbsp;&nbsp;&nbsp;&nbsp;head.appendChild(thickbox);<br/></div>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?367</link>
<title>通过“查看源文件”打开后是乱码</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>Other</category>
<pubDate>Mon, 27 Apr 2009 02:59:04 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?367</guid> 
<description>
<![CDATA[ 
	基于UTF-8编码的页面用IE6,IE7可以正常浏览，但是通过“查看源文件”打开后却显示乱码。<br/><br/>这时候用notepad++或其他的编辑器转换一下编码到UTF-8即可。
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?366</link>
<title>js删除之前已经调用的CSS</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>css</category>
<pubDate>Fri, 17 Apr 2009 09:42:55 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?366</guid> 
<description>
<![CDATA[ 
	<div class="code">&lt;link title=&quot;style&quot; href=&quot;/style.css&quot; type=&quot;text/css&quot; rel=&quot;stylesheet&quot;&gt;</div><br/><br/><div class="code">function disablecss(){<br/> &nbsp; &nbsp;for (var i = 0; i &lt; document.styleSheets.length; i++ )<br/> &nbsp; &nbsp;{<br/>&nbsp;&nbsp;&nbsp;&nbsp;void(document.styleSheets.item(i).disabled=true);<br/> &nbsp; &nbsp;}<br/>&nbsp;&nbsp;var aStyle = document.getElementsByTagName(&#039;style&#039;);<br/>&nbsp;&nbsp;var aLink = document.getElementsByTagName(&#039;link&#039;);<br/>&nbsp;&nbsp;for(var i = 0; i &lt; aStyle.length; i++){<br/>&nbsp;&nbsp;&nbsp;&nbsp;var o = aStyle&#91;i&#93;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;o.parentNode.removeChild(o);<br/>&nbsp;&nbsp;}<br/>&nbsp;&nbsp;for(var i = 0; i &lt; aLink.length; i++){<br/>&nbsp;&nbsp;&nbsp;&nbsp;var o = aLink&#91;i&#93;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;o.parentNode.removeChild(o);<br/>&nbsp;&nbsp;}<br/>}</div><br/>Tags - <a href="http://blog.8s8s.net/tag.php?tag=css" rel="tag">css</a>
  ]]> 
</description>
</item><item>
<link>http://blog.8s8s.net/read.php?365</link>
<title>IE中的HTML注释引起CSS定义错误显示</title> 
<author>sheup &lt;cj1581@msn.com&gt;</author>
<category>css</category>
<pubDate>Mon, 13 Apr 2009 02:38:20 +0000</pubDate> 
<guid>http://blog.8s8s.net/read.php?365</guid> 
<description>
<![CDATA[ 
	　　在IE中的HTML注释引起CSS定义区域的文字出现复制<br/><br/>　　当多个浮动的元素彼此跟随，中间加注释的时候，最后一个浮动元素内的文本偶然会复制到最下面去。貌似称为DuplicateCharactersBug。<br/><br/>　　可以通过以下的办法来解决：<br/><div class="code">　　　1、不放置注释。最简单、最快捷的解决方法<br/>　　　2、注释不要放置于2个浮动的区块之间。<br/>　　　3、将文字区块包含在新的&lt;div&gt;&lt;/div&gt;之间，如：&lt;div style=&quot;float:right;width:400px&quot;&gt;&lt;div&gt;↓这就是多出来的那只猪&lt;/div&gt;&lt;/div&gt;。<br/>　　　4、去除文字区块的固定宽度，与3有相似之处。<br/>　　　5、有的人在猪后加一个&lt;br /&gt;或者空格，但只是消除现象。<br/>　　　6、不要给浮动元素设置多宽度，使其不会到达包含元素的底部，或者对最后一个元素设置margin-right: -3px;或者更小。<br/>　　　7、注释可以这样写：&lt;!--&#91;if !IE&#93;&gt;Put your commentary in here...&lt;!&#91;endif&#93;--&gt; </div><br/><br/><br/>Tags - <a href="http://blog.8s8s.net/tag.php?tag=css" rel="tag">css</a>
  ]]> 
</description>
</item>
</channel>
</rss>