<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[王国安博客 wangguoan.com]]></title>
<link>http://wangguoan.com/</link>
<description><![CDATA[知者乐水，仁者乐山；知者动，仁者静；知者乐，仁者寿。]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[gooann@gmail.com(Andrew)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>王国安博客 wangguoan.com</title>
	<url>http://wangguoan.com/images/logos.gif</url>
	<link>http://wangguoan.com/</link>
	<description>王国安博客 wangguoan.com</description>
</image>

			<item>
			<link>http://wangguoan.com/article/271.htm</link>
			<title><![CDATA[量化商业需求的必要因素一：“低调但聪明”的处理注册流程]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[网站应用]]></category>
			<pubDate>Wed,22 Oct 2008 16:11:22 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=271</guid>
		<description><![CDATA[互联网上任何产品的发布都存在其隐性或显现的商业需求，实现这些需求的前提少不了人气，就是要让很多人去参与近来。不管是浏览信息也好、发布信息也好。总之得有人关注，用一句时髦的话说就是“注意力经济”<br/>，而注意力是对互联网产品而言一种稀缺资源，大家都争先恐后，不管正经也好，扯淡也罢，反正得&#34;出镜&#34;。<br/><br/>但是如何你的产品拥有更多的用户呢？是你的信息够吸引人，还是你制定的游戏规则本身具备相当的吸引力？在“WEBX.0时代”，制定游戏规则让用户有兴趣来发布信息成为关注的焦点，当然这一结果必须是双赢的。现在很多的网站由于其商业上的需求，需要用户先注册才能参与信息的发布，但是我作为一个互联网用户对于这样麻烦的操作是感同身受，我经常能感觉到其他用户经常有类似的抱怨，“我只想发一条信息，我只想体验一下，为什么要让我一定要先填一堆又长又臭的表单，刚有兴趣就被注册/登陆的提示给打断，很不爽！”。<br/><br/>用户不爽，后果当然很严重！大多数商业网站都需要先注册再进行其他操作，这个流程却给很多意向并不是特别高的用户设置了很高的门槛，个人觉得注册流程是不可少的部分，毕竟商业需求摆在那里，但是这个过程必须做的“低调”一些，但不能缺乏优秀的品质，尽量让用户在操作过程中忘记注册是负担，甚至忘记注册的存在。下面分享一些“低调但优秀”的注册流程：<br/><br/>1、例如&nbsp;&nbsp;<a target="_blank" href="http://www.ioffer.com" rel="external">ioffer.com </a><br/><br/><img src="http://wangguoan.com/attachments/month_0810/020081022162919.gif" border="0" alt=""/><br/><br/>一家美国的C2C网站。用户点页面上方的“sell”直接来到产品的发布表单，完成产品发布预览的同时，提示用户注册或登陆来确认产品的发布。用户完成了来网站的主要目的-发布产品。注册流程就不会显得让人讨厌。<br/><br/><br/>2、一个基于家族族谱的SNS网站，<a target="_blank" href="http://www.geni.com" rel="external">geni.com</a><br/><br/><img src="http://wangguoan.com/attachments/month_0810/o2008102216178.gif" border="0" alt=""/><br/><br/><br/>这家网站的注册流程可谓是相当的“低调”，你几乎感觉不到他的存在。在完成创建自己族谱的同时，无形中已经注册成功。有一点不好的地方就是并没有提醒用户初始密码是发送到邮箱里的。<br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/270.htm</link>
			<title><![CDATA[谷歌发布了十周年庆典站点:10的100次方”奖励计划]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[网站应用]]></category>
			<pubDate>Sat,27 Sep 2008 16:34:15 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=270</guid>
		<description><![CDATA[谷歌发布了十周年庆典站点<a target="_blank" href="http://www.google.com/tenthbirthday/" rel="external">www.google.com/tenthbirthday/</a>并推出了“10的100次方”奖励计划：<br/><br/>据说：大家可以在10月20日前提交自己的好点子，谷歌将于2009年1月27日宣布最好的100个点子，由网友投票选出前20名。然后，谷歌将成立一个监理委员会选出最多五个优胜点子，为其提供1000万美元的资金。太吸引人了！！！！！！！！！！<br/><br/>庆典站点的操作体验：<br/>每刷新一次刷新随机出现5个问题。<br/><img src="http://wangguoan.com/attachments/month_0809/c2008927162442.jpg" border="0" alt=""/><br/><br/>点击任何一条问题后，会进入该事件所对应的Google大事年表（1995~2008），<br/>并弹出该事件详细信息。<br/><br/><img src="http://wangguoan.com/attachments/month_0809/s200892716304.jpg" border="0" alt=""/><br/><br/>查看Google大事年表的方法：<br/>1、可使用鼠标点击或拖动下方的时间轴来进行浏览，赞一个!<br/>2、利用搜索功能搜索大事年表<br/><br/>总体感觉：界面清爽、人性化的界面交互、操作简便、是一个前台开发和UI设计的完美结合!<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/269.htm</link>
			<title><![CDATA[选项卡切换]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Tue,09 Sep 2008 13:58:57 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=269</guid>
		<description><![CDATA[一个选项卡切换 效果<br/>下面这个标签是关键所在，共有5个参数，来赋予切换的功能。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;input type=&#34;hidden&#34; id=&#34;kp_OtherRegional&#34; value=&#34;nav,li,cardarea,item,current_tab&#34; /&gt;</div></div><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp9421">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<title>选项卡</title>
<style type=&#34;text/css&#34;>
/*
	选项卡
----------------------------------------------------------------
*/
body{font-size:12px;font-family:Arial,Helvetica,sans-serif;text-align:center;margin:12px auto 0 auto;width:600px;}
h1,h2,h3,h4,h5,h6,p,form,dl,dt,dd,ul,ol{margin:0;padding:0;font-size:100%;}
ul{list-style:none;}
a{text-decoration:none;}
.display_none{display:none;}
/*选项卡的样式*/
.convention_tab{clear:both;width:100%;float:left;margin:15px 0 0 0;
background:url(/attachments/month_0809/2200899135553.gif) left bottom repeat-x;padding-bottom:3px;overflow:hidden;padding-right:0px;}
/*如果下面的区域是table，那么padding-right:2px;*/
	.convention_tab li{float:left;background:url(/attachments/month_0809/2200899135553.gif) right top no-repeat;margin-left:-12px;padding:0 30px 0 11px;}
		.convention_tab li a,.convention_tab li.normal_tab b{color:#fff;display:block;height:19px;float:left; 
background:#3C6084;padding-top:3px;}
	.convention_tab li.current_tab{background-position:right -100px;border-left:solid 2px #fff; padding-bottom:2px;}
		.convention_tab li.current_tab a{background-color:#98B1C5;color:#000;}
	.convention_tab li.start_tab{margin-left:0;padding-left:0;border-left:none;}
		.convention_tab li.start_tab a{padding-left:10px;}
	.convention_tab li#end_tab{background-position:right -50px;}
		.convention_tab li#end_tab a{padding-left:10px;}
	.convention_tab li.current_tab#end_tab{background-position:right -140px;}
		.convention_tab li.current_tab#end_tab a{background-color:#98B1C5;}
	/*每个item*/
	#cardarea,#cardarea2
{border:solid 1px #3D5F85;clear:both;border-top:none;}
		#cardarea p,#cardarea2 p{padding:20px;text-align:left;line-height:23px;}
	#cardarea2 dl{text-align:left;padding:20px;line-height:23px;}
</style>
</head>
<body>
<div class=&#34;container&#34;>
	<ul id=&#34;nav&#34; class=&#34;convention_tab&#34;>
		<li class=&#34;start_tab current_tab&#34;><a href=&#34;#&#34;>选项卡001</a></li>
		<li><a href=&#34;#&#34;>缺点</a></li>
		<li><a href=&#34;#&#34;>仅供娱乐</a></li>
		<li><a href=&#34;#&#34;>选项卡004</a></li>
		<li id=&#34;end_tab&#34;><a href=&#34;#&#34;>选项卡005</a></li>
	</ul>
	<div id=&#34;cardarea&#34;>
		<div class=&#34;item&#34;><p>这里是div中的p标签，因为没有指定class为item，所以我不参与切换。</p></div>
		<p class=&#34;item display_none&#34;>我在页面加载完成后才添加的事件，可有的图片加载很慢，所以有时候可以把外部js中的addLoadEvent(getConfigInputObj);删除掉，然后直接书写 getConfigInputObj();当然要放在</html>以保证xhtml已经加载完毕</p>
		<p class=&#34;item display_none&#34;>看网上演示Jquery的tab插件更加强大，不过我这个更为实用，o(∩_∩)o...。</p>
		<p class=&#34;item display_none&#34;>第四个</p>
		<p class=&#34;item display_none&#34;>第五个</p>
	</div>
	<ul id=&#34;nav2&#34; class=&#34;convention_tab&#34;>
		<li class=&#34;start_tab current_tab&#34;><a href=&#34;#&#34;>优点</a></li>
		<li><a href=&#34;#&#34;>使用方法</a></li>
		<li><a href=&#34;#&#34;>参数的意思</a></li>
		<li><a href=&#34;#&#34;>第4个</a></li>
		<li id=&#34;end_tab&#34;><a href=&#34;#&#34;>最后一个</a></li>
	</ul>
	<div id=&#34;cardarea2&#34;>
		<p class=&#34;item&#34;>重用性极高,在IE6+,Firefox2+,Opera9中均能正常工作，且并没有使用hack。</p>
		<p class=&#34;item display_none&#34;> <span style=&#34;font-family:Georgia, 'Times New Roman', Times, serif;&#34;> <input type=&#34;hidden&#34; id=&#34;kp_OtherRegional&#34; value=&#34;nav,li,cardarea,item,current_tab|nav2,li,cardarea2,item,current_tab&#34; title=&#34;这个必不可少&#34; /> </span>即可完成事件添加,多个区域用竖线隔开。</p>
			<div class=&#34;item display_none&#34;>
			<dl>
				<dt>id为kp_OtherRegional的input元素共有5个参数</dt>
				<dd>第一个:表示id为nav的那个元素。</dd>
				<dd>第二个:获取到第一步的元素，遍历指定的元素，这取决于你写的什么标签，写的li它就会遍历li。</dd>
				<dd>第三个:切换区域的父容器,切换区域的父容器ID</dd>
				<dd>第四个:<p class=&#34;item&#34;,这里没有限定是什么元素，而是限定带有指定class的才能参与切换。</dd>
				<dd>第五个:切换标签后当前标签的样式名。</dd>
			</dl>
		</div>
		<p class=&#34;item display_none&#34;>这里是第四个区域</p>
		<p class=&#34;item display_none&#34;>第五个</p>
	</div>
</div>
<input type=&#34;hidden&#34; id=&#34;kp_OtherRegional&#34; value=&#34;nav,li,cardarea,item,current_tab|nav2,li,cardarea2,item,current_tab&#34; title=&#34;这个必不可少&#34; />
<script type=&#34;text/javascript&#34;>
/*addLoadEvent.js*/
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      oldonload();
      func();
    }
  }
}
/*addLoadEvent.js结束*/
/*switch_display_area.js*/
function getConfigInputObj(){
	if(!document.getElementById || !document.getElementsByTagName)return;
	var configObj=document.getElementById(&#34;kp_OtherRegional&#34;);if(configObj==null)return;
	var configValue=configObj.getAttribute(&#34;value&#34;).replace(/\s/g,&#34;&#34;);
	var configArray=configValue.split(&#34;|&#34;)
	var length=configArray.length;
	var childConfigArray=null;
	var childConfigValue=&#34;&#34;;
	for(var i=0;i<length;i++){
		childConfigArray=configArray[i].split(&#34;,&#34;);
		giveEvent(childConfigArray);
	}
	//destroy(getConfigInputObj);
}
function giveEvent(obj){
	if(obj==null){return;}
	var parentId=obj[0];
	var whichToTrigger=obj[1];
	var itemParent=obj[2];
	var itemClass=obj[3];
	var currentClassName=obj[4];
	var listerEvent=obj[5];
	if(!parentId || !whichToTrigger || !itemParent || !itemClass)return;
	var parentObj=null;
	var whichToTriggerObj=null;
	var itemParentObj=null;
	var itemObj=null;
	/*准备好各个元素*/
	parentObj=document.getElementById(parentId);
	if(!parentObj){return;}
	itemParentObj=document.getElementById(itemParent);
	whichToTriggerObj=parentObj.getElementsByTagName(whichToTrigger);//获取事件源对象的集合
	if(!parentObj || !itemParentObj || !whichToTriggerObj)return;
	itemObj=itemParentObj.getElementsByTagName(&#34;*&#34;);
	var length=itemObj.length;
	var objArray=new Array();
	for(var i=0;i<itemObj.length;i++){
		if(itemObj[i].className.indexOf(itemClass)>-1){
			objArray.push(itemObj[i]);
		}
	}
	var whichToTriggerObjLength=whichToTriggerObj.length;//获取事件源对象的长度
	for(var i=0;i<whichToTriggerObjLength;i++){
		whichToTriggerObj[i].setAttribute(&#34;oldClassName&#34;,whichToTriggerObj[i].className.replace(currentClassName));
		whichToTriggerObj[i].setAttribute(&#34;currentNum&#34;,i);
		if(listerEvent==null){
			whichToTriggerObj[i].onclick=function(){
				//return 
				return correspondingRegion(this,objArray,currentClassName,whichToTriggerObj);
			}
		}else{
			whichToTriggerObj[i].onmouseover=function(){
				//return 
				return correspondingRegion(this,objArray,currentClassName,whichToTriggerObj);
			}
		}
		whichToTriggerObj[i].onfocus=function(){
			this.blur();
		}
	}
	//destroy(giveEvent);
}
//功能; 根据传递的参数切换（显示或隐藏）各个区域
function correspondingRegion(obj,objArray,currentClassName,whichToTriggerObj){
	var length=objArray.length;
	var currentNum=parseInt(obj.getAttribute(&#34;currentNum&#34;),10);
	if(!objArray[currentNum]){
		/*alert(&#34;该div不存在&#34;);*/
		return;
	}else{
		/*先将所有样式 “归零”*/
		for(var i=0;i<length;i++){
			objArray[i].style.display=&#34;none&#34;;
			if(whichToTriggerObj[i]==null){continue;}
			//如果有老的样式
			if(whichToTriggerObj[i].getAttribute(&#34;oldClassName&#34;)!=&#34;&#34; &amp;&amp; whichToTriggerObj[i].getAttribute(&#34;oldClassName&#34;).indexOf(currentClassName)<0){
				whichToTriggerObj[i].className=whichToTriggerObj[i].getAttribute(&#34;oldClassName&#34;);
			}else if(whichToTriggerObj[i].getAttribute(&#34;oldClassName&#34;)!=&#34;&#34;){
				whichToTriggerObj[i].className=whichToTriggerObj[i].getAttribute(&#34;oldClassName&#34;);
			}else{
				whichToTriggerObj[i].className=&#34;&#34;;
			}
		}
		//然后单独给当前对象加上className
		if(objArray[currentNum]!=null){
			objArray[currentNum].style.display=&#34;block&#34;;
			if(obj.getAttribute(&#34;oldClassName&#34;)!=&#34;&#34;){
				obj.className=currentClassName+&#34; &#34;+obj.getAttribute(&#34;oldClassName&#34;);
			}else{
				obj.className=currentClassName;
			}
			//return false;
		}else{
			//return true;
		}
		return false;
	}
}
addLoadEvent(getConfigInputObj);
/*switch_display_area.js结束*/
</script>
</body>
</html>

</TEXTAREA><br/><INPUT onclick="runEx('temp9421')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp9421')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/>已经封装好了的，如果你要使用，就把其中的js做成外部文件。<br/>实现，只需要两步。<br/>1：引入外部js；<br/>2：然后书写那个input正确的参数，多个的话用 | 隔开。<br/>3：addLoadEvent一定要放在所有script标签第一行。<br/>如果body标签已经绑定onload函数，那么还要把script移到&lt;/html&gt;之后。<br/><br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/268.htm</link>
			<title><![CDATA[弹窗演示]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Sun,31 Aug 2008 15:47:20 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=268</guid>
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp1135"><html> 
<head> 
<title>LIGHTBOX EXAMPLE</title> 
<style> 
  .black_overlay{  display: none;  position: absolute;  top: 0%;  left: 0%;  width: 100%;  height: 100%;  background-color: black;  z-index:1001;  -moz-opacity: 0.8;  opacity:.80;  filter: alpha(opacity=80);  }  .white_content {  display: none;  position: absolute;  top: 25%;  left: 25%;  width: 50%;  height: 50%;  padding: 16px;  border: 16px solid o&#114;ange;  background-color: white;  z-index:1002;  overflow: auto;  }  </style> 
</head> 
<body> 
可以根据自己要求修改css样式<a href=&#34;javascript:void(0)&#34; onclick=&#34;document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'&#34;>点击这里打开窗口</a> 
<div id=&#34;light&#34; class=&#34;white_content&#34;> 
    This is the lightbox content. 
    <a href=&#34;javascript:void(0)&#34; onclick=&#34;document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'&#34;> 
    Close</a></div> 
<div id=&#34;fade&#34; class=&#34;black_overlay&#34;> 
</div> 
</body> 
</html> </TEXTAREA><br/><INPUT onclick="runEx('temp1135')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp1135')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/267.htm</link>
			<title><![CDATA[界面实现技术选择]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[网站应用]]></category>
			<pubDate>Thu,28 Aug 2008 16:39:41 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=267</guid>
		<description><![CDATA[C/S结构、<br/>B/S结构 、<br/>RIA&nbsp;&nbsp;-----------<br/>(RIA是Rich Internet Applications的缩写，翻译成中文为富因特网应用程序（Macromedia中文网站翻译为Rich Internet应用程序）)<br/>“富”的概念包含两方面，分别是数据模型的丰富和用户界面的丰富。<br/><br/><br/>界面实现技术选择：<br/><img src="http://wangguoan.com/attachments/month_0808/f200882816397.png" border="0" alt=""/><br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/266.htm</link>
			<title><![CDATA[让层垂直居中于浏览器窗口]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Thu,28 Aug 2008 15:44:18 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=266</guid>
		<description><![CDATA[<br/>让层垂直居中于浏览器窗口<br/><br/> 解决的思路是这样的：首们需要position:absolute;绝对定位。而层的定位点，使用外补丁margin负值的方法。负值的大小为层自身宽度高度除以二。 <br/><br/>如：一个层宽度是400，高度是300。使用绝对定位距离上部与左部都设置成50%。而margin-top的值为－150。margin-left的值为－200。这样我们就实现了层垂直居中于浏览器的样式编写。<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp74049"><style type=&#34;text/css&#34;>
<!-- 
div {
	position:absolute;
	top:50%;
	left:50%;
	margin:-150px 0 0 -200px;
	width:400px;
	height:300px;
	border:1px solid #008800;
	}
-->
</style>
<div>让层垂直居中于浏览器窗口</div>
</TEXTAREA><br/><INPUT onclick="runEx('temp74049')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp74049')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/265.htm</link>
			<title><![CDATA[div布局设计]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Thu,28 Aug 2008 15:42:07 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=265</guid>
		<description><![CDATA[自由伸展的三栏式版面,div布局，非绝对定位，IE,FireFox都OK.<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp1107">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;../../../www.w3.org/TR/xhtml1/DTD/strict.dtd&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34; xml:lang=&#34;zh-CN&#34; lang=&#34;zh-CN&#34;>
<head>
<title>自由伸展的三栏式版面</title>
<meta name=&#34;Big John&#34; content=&#34;August 24, 2002&#34; />
<meta http-equiv=&#34;content-Type&#34; content=&#34;text/html; charset=GB2312&#34; />
<meta name=&#34;mssmarttagspreventparsing&#34; content=&#34;true&#34; />
<meta name=&#34;keywords&#34; content=&#34;demo,test,big john,big,john,positioniseverything,css,html,what else do you want from me!?&#34; />
<meta name=&#34;description&#34; content=&#34;A demo of 3 fluid, full height columns, including header and footer, all with different BGs. &#34; />
<meta name=&#34;distribution&#34; content=&#34;global&#34; />
<meta name=&#34;resource-type&#34; content=&#34;document&#34; />
<meta name=&#34;robots&#34; content=&#34;all&#34; />
<meta http-equiv=&#34;imagetoolbar&#34; content=&#34;no&#34; />
<meta http-equiv=&#34;pragma&#34; content=&#34;no-cache&#34; />
<style type=&#34;text/css&#34;>
<!--

html {margin: 0; padding: 0;}

body {margin: 0; padding: 0; font-family: &#34;Palatino Linotype&#34;, Georgia, &#34;Times New Roman&#34;, Times, serif; 
  font-size: small; background: #ee8 repeat-y url(images/browncol.gif);}
/*** Image is 180px wide, and 20px high ***/

pre {margin: 0; font-family: verdana, sans-serif; font-size: .9em;}

a {color: #000;}

.alignright {margin-top: 0; text-align: right;}

.small {font-size: .9em;}

.return {position: absolute; top: 0; right: 0; text-align: right; padding: .5em;}

/*******************************************************************************
                       Positioning rules
*******************************************************************************/
h1, h2 {
font-size: 22px;
margin: 0;
color: #040;
background-color: #c83;    /*** The header and footer have backgrounds, to cover the 2-tone body BG  ***/
border-top: 4px solid #000;
border-bottom: 5px solid #000;
padding: 3px 0 3px 1em;
}

h2 {background-color: #638; color: #fff;}

div#leftbox {      /*** No side padding o&#114; borders, to avoid the IE5.x box model problem ***/
position: absolute;
left: 10px;
width: 150px;
color: #ee8;
padding-top: 10px;
}

#middlebox {
margin: 0 34% 0 170px;
border-left: 3px solid #000;
border-right: 3px solid #000;
padding: 10px;
background-color: #dda;     /*** This div has a background to cover the 2-tone body BG ***/
}

div#rightbox {    /*** No side padding o&#114; borders, to avoid the IE5.x box model problem ***/
position: absolute;
right: 25px;     /*** IE5/mac will show a horizontal scrollbar 
		if this is less than 16px, o&#114; other units are used
		<a href="http://www.l-c-n.com/IE5tests/right_pos/" target="_blank" rel="external">http://www.l-c-n.com/IE5tests/right_pos/</a> ***/           
width: 30%;
color: #820;
padding-top: 10px;
}

-->
</style>
</head>
<body>
<h1>
自由伸展的三栏式版面（Three Column Stretch）（页首）
</h1>
<div id=&#34;leftbox&#34;>
<pre>
<strong>#leftbox</strong> {
position: absolute;
left: 10px;
width: 180px(150px?);
}
</pre>
<p>
<strong>这个栏段</strong>的背景是利用 body 卷标设定的图片，以垂直方向重复贴上所产生的。图片的宽度和中间栏段的左边界(margin)相等，高度为20px，这样可以减少图片重复的次数，加快演算上色的速度。
<p>
</p>
这一栏的内容(#leftbox)以绝对位置(absolutely positioned)的方式放在左边的区域。另外因为底层背景图片的尺寸限制，需要给定一个以像素作单位的“宽度(width)”值。
</p>
<p>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><strong>测试用连结</strong></a>
</p>
</div>
<div id=&#34;rightbox&#34;>
<pre>
<strong>#rightbox</strong> {
position: absolute;
right: 2%;
width: 30%;
}
</pre>
<p>
<strong>这个栏段</strong>也能显示“body”的背景，但是因为“body”的背景
图片只在垂直方向重复，而且仅与中间栏段的左边界同宽，所以这边显示的是“body”的背景颜色(background-color)。
这个栏段的“宽度(width)”和右边界的区域是用百分比作单位，你想用其它单位也可以。
</p>
<p>
如果页面比 640px 还窄，中间和右边栏段使用的“pre”卷标会导致内容重叠。
</p>
<p>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><strong>测试用连结</strong></a>
</p>
</div>
<div id=&#34;middlebox&#34;>
<div class=&#34;return&#34;>
<a href=&#34;index.html&#34; _fcksavedurl=&#34;index.html&#34;><strong>返回 p.i.e.</strong></a>
</div>
<pre>
<strong>#middlebox</strong> {
margin: 0 34% 0 170px;
border-left: 2px solid #000;
border-right: 2px solid #000;
padding: 0 10px 10px;
background-color: #6b9;
}
</pre>
<p>
<strong>中间栏段</strong>有设定背景色，以便跟右边栏段作区分。
这个栏段也需要补白(padding)和边框(border)，不过因为没有设定“宽度(width)”属性，并不会触发 IE5.x 的区块模块(box model)问题。
</p>
<p>
这个栏段也必须是最长的栏段，并且用你支持的最大分辨率(resolution)浏览时，仍要能够延伸到检视区(viewport)底端下方，否则“body”的背景就会在页尾(footer)下方出现。
</p>
<p>
<strong>这整个范例</strong>没有在任何栏段里宣告“高度(height)”属性，这是为了避掉一些浏览器表现“高度(height)”属性的独特方式。
因为这些条件的限制，这个版面非常适合那些总是有很长的中间栏段的网页，像是 weblogs。
</p>
<p>
页首、页尾和中间栏段是“固定的(static)”（或说“相对的(relative)”），而这三者一起定义了网页的尺寸。你可以帮页首和页尾指定“高度(height)”。
</p>
<p>
在原始文件里，以绝对位置表示的 div#rightbox 放置在 div#leftbox 之后，
因此这些 div 的“top”属性可以忽略。
这会让它们待在它们该在的垂直方向起点，也就是说它们是固定的（直接连在固定的页首下）。
所以如果页首因为额外的内容扩大，三个栏段都会往下调整，这样不是很棒吗？
</p>
<p>
<strong>Mozilla 中</strong>，因为垂直方向的舍入误差(rounding error)，在某些分辨率里，页尾下方可能有 1px 的空隙，
<a href=&#34;mozshift.html&#34; _fcksavedurl=&#34;mozshift.html&#34;>这个范例</a>描述得更详细。
</p>
<p>
<strong>Nav4 中</strong>没办法使用像“div#leftbox”这类语法，所以请用“#leftbox”来代替。我的写法只是为了要明确地表示。
</p>
<p>
<strong>致谢：</strong>再次感谢<a href=&#34;../../../www.l-c-n.com/default.htm&#34; _fcksavedurl=&#34;../../../www.l-c-n.com/default.htm&#34;>Philippe Wittenbergh</a>
，因为他的帮忙，让这个范例更为完善。<strong>更感谢</strong>
<a href=&#34;../../../www.mark.ac/help/default.htm&#34; _fcksavedurl=&#34;../../../www.mark.ac/help/default.htm&#34;>Mark Howells</a>
，因为他提供了最初的 body 背景点子。
</p>
<p  class=&#34;small alignright&#34;>
<a href=&#34;../../../users.rraz.net/mc_on_the_rocks/default.htm&#34; _fcksavedurl=&#34;../../../users.rraz.net/mc_on_the_rocks/default.htm&#34;
title=&#34; My mountain bike site &#34;><strong>Big John</strong></a>
<a href=&#34;mailto:johnthebig66@yahoo.com&#34; _fcksavedurl=&#34;mailto:johnthebig66@yahoo.com&#34; title=&#34;If you've found something new and
interesting to say about any CSS subject, please contact me. I want to know! &#34;>e-mail</a>
©positioniseverything<br />
最后更新日期： September 6, 2002<br />
Cr&#101;ated August 24, 2002
</p>
<p class=&#34;small alignright&#34;>
<a href=&#34;../../../ccca.nctu.edu.tw/~hlb/trans/pie/thr.col.stretch.html&#34; _fcksavedurl=&#34;../../../ccca.nctu.edu.tw/~hlb/trans/pie/thr.col.stretch.html&#34; title=&#34;&#34;>繁体中文翻译：</a><strong>yyhuang</strong>

简体中文转换:<br />
<a href=&#34;../../../www.onestab.net/default.htm&#34; _fcksavedurl=&#34;../../../www.onestab.net/default.htm&#34;><strong>onestab</strong></a>


<p>
<strong>以下是填满栏段用的</strong><br /><br />
Why don't cannibals eat clowns?<br />
Answer: They taste funny.<br /><br />
What is the difference between a lousy golfer and a lousy skydiver?<br />
Answer: A lousy golfer goes WHAP! &#34;Oh crap!&#34;. A lousy skydiver goes &#34;Oh crap!&#34; WHAP!<br /><br />
Did you hear about the geneticist that tried to cross a potato and a chicken?<br />
He wanted to produce a chicken that would definitely NOT cross the road, but instead,
got a bunch of potatoes that sat around pecking eachother's eyes out.<br /><br />
How many Psychiatrists does it take to change a light bulb?<br />
Answer: Only one, but the bulb has to really <em>want</em> to change.<br /><br />
Why did the egg cross the road?<br />
Answer: It had an inclination.
</p>
</div>
<h2>
自由伸展的三栏式版面（Three Column Stretch）（页尾）
</h2>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp1107')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp1107')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/264.htm</link>
			<title><![CDATA[按钮设计]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Thu,28 Aug 2008 15:15:41 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=264</guid>
		<description><![CDATA[CSS自适应宽度按钮<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp76312">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>CSS自适应宽度圆角按钮 @</title>
<style>
*{margin:0; padding:0;}
body{padding:10px; font-size:12px;}
h1{margin:0; padding:10px 0; font-size:14px; font-weight:bold;}
a{background:url(/attachments/month_0808/j2008828152352.gif) left 0;  color:#fff; text-decoration:none; height:30px; float:left; cursor:hand; margin:0 5px 0 0;}
a:hover{background:url(/attachments/month_0808/j2008828152352.gif) left -30px;height:30px;}
a span{background:url(/attachments/month_0808/j2008828152352.gif) right 0;  padding:9px 8px 5px 0; margin:0 0 0 8px; float:left; height:16px;}
a:hover span{background:url(/attachments/month_0808/j2008828152352.gif) right -30px; color:#000;  padding:9px 8px 5px 0; margin:0 0 0 8px; height:16px;  }
</style>
</head>
<body>
<h1><strong>CSS自适应宽度圆角按钮 @wanggoan.com</strong></h1>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><span>首页</span></a>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><span>不是首页</span></a>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><span>他也许是首页</span></a>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><span>.................................</span></a>
<a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;><span>好了，就这样把。别扯了~</span></a>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp76312')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp76312')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/><br/><br/>图片型按钮的写法<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp58559">
<style>.button {
font: 12px Tahoma, Verdana;
padding: 0 5px;
color: #D3E0E7;
background-image: url(&#34;/attachments/month_0808/8200882815268.gif&#34;);
background-repeat: repeat-x;
background-position: 0 50%;
outline: 1px solid #D3E0E7;
border: 1px solid #FFF !important;
height: 19px !important;
border: 1px solid #D3E0E7;
height: 21px;
line-height: 17px;
}
</style>
<form><input class=&#34;button&#34; type=&#34;submit&#34; name=&#34;rulesubmit&#34; value=&#34;同 意&#34; style=&#34;height: 23px&#34;>
<input class=&#34;button&#34; type=&#34;button&#34; name=&#34;return&#34; value=&#34;不同意&#34; style=&#34;height: 23px&#34;></form>
</TEXTAREA><br/><INPUT onclick="runEx('temp58559')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp58559')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/263.htm</link>
			<title><![CDATA[CSS打造经典鼠标触发显示选项]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Thu,28 Aug 2008 15:03:10 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=263</guid>
		<description><![CDATA[CSS打造经典鼠标触发显示选项<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp79030"><!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; />
<meta http-equiv=&#34;Content-Language&#34; content=&#34;zh-CN&#34; />
<title>css打造鼠标触发效果</title>
<style type=&#34;text/css&#34;>
<!--
body {
margin: 0;
padding: 0;
color: #000;
font-size: 12px;
line-height: 160%;
text-align: left;
height: 100%;
font-family: '宋体',Tahoma ,arial,verdana,sans-serif,'Lucida Grande','Lucida Sans Unicode';
}
*{ margin:0; padding:0;}
h2,h2 a:link,h2 a:hover,h2 a:visited{
font-size: 14px;
text-decoration: none;
color: #000000;
}
.kw_from {
padding:20px 0 0 0px;
margin: auto;
height: 300px;
overflow: hidden;
width: 650px;
}
.kw_from .sbtn{
float:left;
width:80px;
padding: 16px 0 0 0;
}
.kw_from .searchMore{
float:left;
width:80px;
padding: 4px;
}
#searchNav {
width:430px;
float: left;
}
#searchNav #conter1, #searchNav #conter3{
float:left;
width:250px;
}
#searchNav #conter2, #searchNav #conter4{
float:left;
width:180px;
}
#searchNav ul { 
padding: 0;
margin: 0;
list-style: none;
}
#searchNav li {
float: left; 
}
#searchNav li ul { 
display: none; 
top: 20px; 
}
#searchNav li:hover ul, #searchNav li.over ul {
display: block;
float:left;
}
#searchNav ul li a{
float:left;
display:block;
font-size:12px;
padding:3px;
text-decoration: none;
color: #777;
}
#searchNav ul li a:hover{
background-color:#f4f4f4;
}
#searchNav #jobKw{
width:220px;
height:18px;
}
#searchNav #cityKw{
width:130px;
height:18px;
}
-->
</style>
<script type=&#34;text/javascript&#34;>
<!--//--><![CDATA[//>
<!--
startList = function() {
if (document.all&amp;&amp;document.getElementById) {
navRoot = document.getElementById(&#34;searchNav&#34;);
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName==&#34;LI&#34;) {
node.onmouseover=function() {
this.className+=&#34; over&#34;;
}
node.onmouseout=function() {
this.className=this.className.replace(&#34; over&#34;, &#34;&#34;);
}
}
}
}
}
window.onload=startList;
//--><!]]>
</script>
</head>
<body>
<div class=&#34;kw_from&#34;>
<form action=&#34;/search.html&#34; method=&#34;get&#34; name=&#34;searchForm&#34; id=&#34;searchForm&#34; onsubmit=&#34;return check()&#34;>
<ul id=&#34;searchNav&#34;>
<li id=&#34;conter1&#34;><h2>找什么</h2>
<input id=&#34;jobKw&#34; name=&#34;jobKw&#34; type=&#34;text&#34; />
<ul id=&#34;conter3&#34;>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>会计</a> </li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>网页设计</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>翻译</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>家教</a></li>
<li><span class=&#34;moreCity&#34;><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>更多>> </a></span></li>
</ul>
</li>
<li id=&#34;conter2&#34;><h2>在那里</h2>
<input id=&#34;cityKw&#34; name=&#34;cityKw&#34; type=&#34;text&#34; />
<ul id=&#34;conter4&#34;>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>北京</a> </li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>上海</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>广州</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>深圳</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>南京</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>天津</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>杭州</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>成都</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>重庆</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>武汉</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>西安</a></li>
<li><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>沈阳</a></li>
<li><span class=&#34;moreCity&#34;><a href=&#34;#&#34; _fcksavedurl=&#34;#&#34;>更多城市>></a></span></li>
</ul>
</li>
</ul>
<div class=&#34;sbtn&#34;>
<input name=&#34;submit&#34; type=&#34;submit&#34; class=&#34;btn4&#34; style=&#34;margin:0px 15px 2px 0;&#34; value=&#34;搜索工作&#34; />
</div>
<div class=&#34;searchMore&#34;>
<a href=&#34;search_expert.html&#34; _fcksavedurl=&#34;search_expert.html&#34;>高级搜索</a><br /><a href=&#34;search_sort.html&#34; _fcksavedurl=&#34;search_sort.html&#34;>分类搜索</a> </div>
</form>
</div>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp79030')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp79030')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>]]></description>
		</item>
		
			<item>
			<link>http://wangguoan.com/article/262.htm</link>
			<title><![CDATA[CSS左右两列自适应高]]></title>
			<author>gooann@gmail.com(andrew)</author>
			<category><![CDATA[设计技术]]></category>
			<pubDate>Thu,28 Aug 2008 14:50:43 +0800</pubDate>
			<guid>http://wangguoan.com/default.asp?id=262</guid>
		<description><![CDATA[CSS左右两列自适应高<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://wangguoan.com/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp98920">
<!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank" rel="external">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank" rel="external">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>无标题文档</title>
<style type=&#34;text/css&#34;>
<!--
*{
	margin :0px;
	padding: 0px;
}
.da_div{
	width: 750px;
	background-image: url(<a href="http://www.as1983.com/blog/attachments/month_0708/z200782114026.gif" target="_blank" rel="external">http://www.as1983.com/blog/attachments/month_0708/z200782114026.gif</a>);
	margin:0px auto;
	margin-top:3px;
	overflow:hidden
}
.top_200{
	border-top:1px solid #afafaf;
	width: 200px;
	float: left;
	overflow:hidden
}
.t200_text{
	width: 200px;
	line-height:1.6em;
	font-size: 12px;
}
.top_540{
	width :540px;
	height: 12px;
	float:right;
	border-top: 1px solid #afafaf;
}
.t540_text{
	font-size: 12px;
	width: 200px;
	line-height:1.6em;
}
.da_div_xia{
	width: 750px;
	margin: 0px auto 0px auto;
}
-->
</style>
</head>
<body>
<div class=&#34;da_div&#34;>
<div class=&#34;top_540&#34;>
<div class=&#34;t540_text&#34;>fdsfjdsklfds</div>
</div>
<div class=&#34;top_200&#34;>
<div class=&#34;t200_text&#34;>fdfdsfdsfdsfds<br />
fdsfdsfds<br />

fds</div>
</div>
</div>
<div class=&#34;da_div_xia&#34;>
<div class=&#34;top_540&#34;> </div>
<div class=&#34;top_200&#34;> </div>
</div>
</body>
</html>
</TEXTAREA><br/><INPUT onclick="runEx('temp98920')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp98920')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
</channel>
</rss>
