<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>baalchina &#187; 网页制作</title>
	<atom:link href="http://www.baalchina.net/tag/%e7%bd%91%e9%a1%b5%e5%88%b6%e4%bd%9c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.baalchina.net</link>
	<description>baalchina技术日志</description>
	<lastBuildDate>Tue, 27 Sep 2011 07:12:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PNG透明背景在IE6下显示灰色的解决方案</title>
		<link>http://www.baalchina.net/2008/12/png-ie6/</link>
		<comments>http://www.baalchina.net/2008/12/png-ie6/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 05:07:53 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[Comsenz]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Web应用]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[网页制作]]></category>

		<guid isPermaLink="false">http://www.baalchina.net/2008/12/png%e9%80%8f%e6%98%8e%e8%83%8c%e6%99%af%e5%9c%a8ie6%e4%b8%8b%e6%98%be%e7%a4%ba%e7%81%b0%e8%89%b2%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%a1%88/</guid>
		<description><![CDATA[
?View Code JAVASCRIPT1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
&#60;script language=&#34;JavaScript&#34;&#62; 
function correctPNG&#40;&#41; // correctly handle PNG transparency in Win IE 5.5 &#38; 6. 
&#123; 
    var arVersion = navigator.appVersion.split&#40;&#34;MSIE&#34;&#41; 
    var version = parseFloat&#40;arVersion&#91;1&#93;&#41; 
    if &#40;&#40;version &#62;= 5.5&#41; &#38;&#38; &#40;document.body.filters&#41;&#41; 
    &#123; 
      [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p239code2'); return false;">View Code</a> JAVASCRIPT</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p2392"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code" id="p239code2"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script language<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;JavaScript&quot;</span><span style="color: #339933;">&gt;</span> 
<span style="color: #003366; font-weight: bold;">function</span> correctPNG<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #006600; font-style: italic;">// correctly handle PNG transparency in Win IE 5.5 &amp; 6. </span>
<span style="color: #009900;">&#123;</span> 
    <span style="color: #003366; font-weight: bold;">var</span> arVersion <span style="color: #339933;">=</span> navigator.<span style="color: #660066;">appVersion</span>.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;MSIE&quot;</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #003366; font-weight: bold;">var</span> version <span style="color: #339933;">=</span> parseFloat<span style="color: #009900;">&#40;</span>arVersion<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>version <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">5.5</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #009900;">&#40;</span>document.<span style="color: #660066;">body</span>.<span style="color: #660066;">filters</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> 
    <span style="color: #009900;">&#123;</span> 
       <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> j<span style="color: #339933;">&lt;</span>document.<span style="color: #660066;">images</span>.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> 
       <span style="color: #009900;">&#123;</span> 
          <span style="color: #003366; font-weight: bold;">var</span> img <span style="color: #339933;">=</span> document.<span style="color: #660066;">images</span><span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span> 
          <span style="color: #003366; font-weight: bold;">var</span> imgName <span style="color: #339933;">=</span> img.<span style="color: #660066;">src</span>.<span style="color: #660066;">toUpperCase</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> 
          <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>imgName.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span>imgName.<span style="color: #660066;">length</span><span style="color: #339933;">-</span><span style="color: #CC0000;">3</span><span style="color: #339933;">,</span> imgName.<span style="color: #660066;">length</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;PNG&quot;</span><span style="color: #009900;">&#41;</span> 
          <span style="color: #009900;">&#123;</span> 
             <span style="color: #003366; font-weight: bold;">var</span> imgID <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">id</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;id='&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">id</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;' &quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;&quot;</span> 
             <span style="color: #003366; font-weight: bold;">var</span> imgClass <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">className</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;class='&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">className</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;' &quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;&quot;</span> 
             <span style="color: #003366; font-weight: bold;">var</span> imgTitle <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">title</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;title='&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">title</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;' &quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;title='&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">alt</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;' &quot;</span> 
             <span style="color: #003366; font-weight: bold;">var</span> imgStyle <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;display:inline-block;&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">style</span>.<span style="color: #660066;">cssText</span> 
             <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">align</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;left&quot;</span><span style="color: #009900;">&#41;</span> imgStyle <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;float:left;&quot;</span> <span style="color: #339933;">+</span> imgStyle 
             <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">align</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;right&quot;</span><span style="color: #009900;">&#41;</span> imgStyle <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;float:right;&quot;</span> <span style="color: #339933;">+</span> imgStyle 
             <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>img.<span style="color: #660066;">parentElement</span>.<span style="color: #660066;">href</span><span style="color: #009900;">&#41;</span> imgStyle <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;cursor:hand;&quot;</span> <span style="color: #339933;">+</span> imgStyle 
             <span style="color: #003366; font-weight: bold;">var</span> strNewHTML <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;&lt;span &quot;</span> <span style="color: #339933;">+</span> imgID <span style="color: #339933;">+</span> imgClass <span style="color: #339933;">+</span> imgTitle 
             <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot; style=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;width:&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">width</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px; height:&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">height</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;px;&quot;</span> <span style="color: #339933;">+</span> imgStyle <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;;&quot;</span> 
             <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader&quot;</span> 
             <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;(src=<span style="color: #000099; font-weight: bold;">\'</span>&quot;</span> <span style="color: #339933;">+</span> img.<span style="color: #660066;">src</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;<span style="color: #000099; font-weight: bold;">\'</span>, sizingMethod='scale');<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&lt;/span&gt;&quot;</span> 
             img.<span style="color: #660066;">outerHTML</span> <span style="color: #339933;">=</span> strNewHTML 
             j <span style="color: #339933;">=</span> j<span style="color: #339933;">-</span><span style="color: #CC0000;">1</span> 
          <span style="color: #009900;">&#125;</span> 
       <span style="color: #009900;">&#125;</span> 
    <span style="color: #009900;">&#125;</span>     
<span style="color: #009900;">&#125;</span> 
window.<span style="color: #660066;">attachEvent</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;onload&quot;</span><span style="color: #339933;">,</span> correctPNG<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2008/12/png-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Discuz发表框添加背景图片</title>
		<link>http://www.baalchina.net/2008/08/discuz%e5%8f%91%e8%a1%a8%e6%a1%86%e6%b7%bb%e5%8a%a0%e8%83%8c%e6%99%af%e5%9b%be%e7%89%87/</link>
		<comments>http://www.baalchina.net/2008/08/discuz%e5%8f%91%e8%a1%a8%e6%a1%86%e6%b7%bb%e5%8a%a0%e8%83%8c%e6%99%af%e5%9b%be%e7%89%87/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 06:23:49 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[网页制作]]></category>
		<category><![CDATA[Discuz]]></category>

		<guid isPermaLink="false">http://baalchina.nau.edu.cn/?p=22</guid>
		<description><![CDATA[其实就是一个背景图片了。很简单。
首先做一个图片，比如叫做images/post_bg.gif，背景设为透明。
修改forumdisplay.htm以及viewthread.htm模板，找到

?View Code HTML&#60;textarea rows=&#34;7&#34; cols=&#34;80&#34; class=&#34;autosave&#34; name=&#34;message&#34; id=&#34;message&#34; onKeyDown=&#34;ctlent(event);&#34; tabindex=&#34;2&#34;&#62;
&#60;/textarea&#62;

修改为：

?View Code HTML&#60;textarea rows=&#34;7&#34; cols=&#34;80&#34; class=&#34;autosave&#34; name=&#34;message&#34; id=&#34;message&#34; style=&#34;background:#F5FBFF url(images/post_bg.gif) no-repeat right bottom;&#34; onKeyDown=&#34;ctlent(event);&#34; tabindex=&#34;2&#34;&#62;
&#60;/textarea&#62;

红色为修改部分。
注：D61和D6相同，无需修改。
]]></description>
			<content:encoded><![CDATA[<p>其实就是一个背景图片了。很简单。</p>
<p>首先做一个图片，比如叫做<em>images/post_bg.gif</em>，背景设为透明。</p>
<p>修改forumdisplay.htm以及viewthread.htm模板，找到</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code5'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p225"><td class="code" id="p22code5"><pre class="html" style="font-family:monospace;">&lt;textarea rows=&quot;7&quot; cols=&quot;80&quot; class=&quot;autosave&quot; name=&quot;message&quot; id=&quot;message&quot; onKeyDown=&quot;ctlent(event);&quot; tabindex=&quot;2&quot;&gt;
&lt;/textarea&gt;</pre></td></tr></table></div>

<p>修改为：</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p22code6'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p226"><td class="code" id="p22code6"><pre class="html" style="font-family:monospace;">&lt;textarea rows=&quot;7&quot; cols=&quot;80&quot; class=&quot;autosave&quot; name=&quot;message&quot; id=&quot;message&quot; style=&quot;background:#F5FBFF url(images/post_bg.gif) no-repeat right bottom;&quot; onKeyDown=&quot;ctlent(event);&quot; tabindex=&quot;2&quot;&gt;
&lt;/textarea&gt;</pre></td></tr></table></div>

<p>红色为修改部分。</p>
<p>注：D61和D6相同，无需修改。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2008/08/discuz%e5%8f%91%e8%a1%a8%e6%a1%86%e6%b7%bb%e5%8a%a0%e8%83%8c%e6%99%af%e5%9b%be%e7%89%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>将Discuz!的登陆默认cookie时间修改为1小时</title>
		<link>http://www.baalchina.net/2008/08/%e5%b0%86discuz%e7%9a%84%e7%99%bb%e9%99%86%e9%bb%98%e8%ae%a4cookie%e6%97%b6%e9%97%b4%e4%bf%ae%e6%94%b9%e4%b8%ba1%e5%b0%8f%e6%97%b6/</link>
		<comments>http://www.baalchina.net/2008/08/%e5%b0%86discuz%e7%9a%84%e7%99%bb%e9%99%86%e9%bb%98%e8%ae%a4cookie%e6%97%b6%e9%97%b4%e4%bf%ae%e6%94%b9%e4%b8%ba1%e5%b0%8f%e6%97%b6/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 05:54:00 +0000</pubDate>
		<dc:creator>baalchina</dc:creator>
				<category><![CDATA[网页制作]]></category>
		<category><![CDATA[Discuz]]></category>

		<guid isPermaLink="false">http://baalchina.nau.edu.cn/?p=15</guid>
		<description><![CDATA[很多人在机房上BBS，结束了之后不退出，可能造成账号丢失。
修改login.htm
找到：

?View Code HTML&#60;label&#62;
&#60;input class=&#34;radio&#34; type=&#34;radio&#34; name=&#34;cookietime&#34; value=&#34;3600&#34; tabindex=&#34;11&#34; $cookietimecheck[3600] /&#62;
 {lang login_one_hour}
&#60;/label&#62;

修改为

?View Code HTML1
2
3
4
&#60;label&#62;
&#60;input class=&#34;radio&#34; type=&#34;radio&#34; name=&#34;cookietime&#34; value=&#34;3600&#34; tabindex=&#34;11&#34; $cookietimecheck[3600] checked=&#34;checked&#34; /&#62;
 {lang login_one_hour}
&#60;/label&#62;

]]></description>
			<content:encoded><![CDATA[<p>很多人在机房上BBS，结束了之后不退出，可能造成账号丢失。</p>
<p>修改login.htm</p>
<p>找到：</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p15code9'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p159"><td class="code" id="p15code9"><pre class="html" style="font-family:monospace;">&lt;label&gt;
&lt;input class=&quot;radio&quot; type=&quot;radio&quot; name=&quot;cookietime&quot; value=&quot;3600&quot; tabindex=&quot;11&quot; $cookietimecheck[3600] /&gt;
 {lang login_one_hour}
&lt;/label&gt;</pre></td></tr></table></div>

<p>修改为</p>

<div class="wp_codebox_msgheader wp_codebox_hide"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p15code10'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p1510"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p15code10"><pre class="html" style="font-family:monospace;">&lt;label&gt;
&lt;input class=&quot;radio&quot; type=&quot;radio&quot; name=&quot;cookietime&quot; value=&quot;3600&quot; tabindex=&quot;11&quot; $cookietimecheck[3600] checked=&quot;checked&quot; /&gt;
 {lang login_one_hour}
&lt;/label&gt;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.baalchina.net/2008/08/%e5%b0%86discuz%e7%9a%84%e7%99%bb%e9%99%86%e9%bb%98%e8%ae%a4cookie%e6%97%b6%e9%97%b4%e4%bf%ae%e6%94%b9%e4%b8%ba1%e5%b0%8f%e6%97%b6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

