<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[沧海一粟]]></title> 
<link>http://www.dzhope.com/index.php</link> 
<description><![CDATA[Web系统架构与服务器运维,php开发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[沧海一粟]]></copyright>
<item>
<link>http://www.dzhope.com/post//</link>
<title><![CDATA[优酷搜索框美化代码]]></title> 
<author>jed &lt;jed521@163.com&gt;</author>
<category><![CDATA[代码编程]]></category>
<pubDate>Thu, 13 Dec 2012 22:17:44 +0000</pubDate> 
<guid>http://www.dzhope.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;<br/>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;head&gt;<br/>&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=GB2312&quot;&gt;<br/><br/> <br/><br/>&lt;title&gt;CSS样式搜索框美化系列(4)&lt;/title&gt;<br/>&lt;meta name=&quot;Generator&quot; content=&quot;EditPlus&quot;&gt;<br/>&lt;meta name=&quot;Author&quot; content=&quot;&quot;&gt;<br/>&lt;meta name=&quot;Keywords&quot; content=&quot;&quot;&gt;<br/>&lt;meta name=&quot;Description&quot; content=&quot;&quot;&gt;<br/>&lt;style&gt;<br/>/*basic*/<br/>*&#123;padding:0;margin:0;color:#000;font:12px/20px Arial,Sans-serif,&quot;宋体&quot;;&#125;<br/>/*elements*/<br/>.clear&#123;clear:both;height:0px;overflow:hidden;&#125;<br/>ul,li,ol&#123;list-style-type:none;list-style-position:outside;&#125;<br/>button,.btnNormal&#123;height:22px;line-height:18px;padding:0 9px!important;padding:0 5px;&#125;<br/>a&#123;color:#0042ff;text-decoration:underline;&#125;<br/>a,a *&#123;cursor:pointer;&#125;<br/>a img&#123;border:0;&#125;<br/>.searchTool&#123;float:left;width:520px;&#125;<br/>.searchTool .searchExtend&#123;float:left;line-height:24px;_padding-top:5px;&#125;<br/>.searchTool .radio&#123;vertical-align:middle;margin-left:10px;margin-right:2px;*margin-right:0;&#125;<br/>.searchTool .txtSearch&#123;float:left;width:232px;padding:2px 2px 0 2px;height:20px;line-height:20px;vertical-align:bottom;border:1px solid #3e99d4;&#125;<br/>.searchTool .selSearch&#123;float:left;width:60px;background:#fff;height:22px;line-height:22px;border:1px solid #3e99d4;border-left:0;&#125;<br/>.searchTool .nowSearch&#123;float:left;width:40px;height:20px;line-height:22px;overflow:hidden;padding-left:4px;&#125;<br/>.searchTool .btnSel&#123;float:right;border-left:1px solid #3e99d4;width:14px;height:22px;&#125;<br/>.searchTool .btnSel a&#123;background:url(http://static.youku.com/v1.0.0217/index/img/btn_sel.gif) no-repeat center center;display:block;width:14px;height:22px;&#125;<br/>.searchTool .btnSel a:hover&#123;background:url(http://static.youku.com/v1.0.0217/index/img/btn_sel_over.gif) no-repeat center center;border:1px solid #fff;width:12px;height:20px;&#125;<br/>.searchTool .selOption&#123;z-index:9999;position:absolute;margin-left:-1px;width:60px;background:#fff;border:1px solid #3e99d4;&#125;<br/>.searchTool .selOption a&#123;display:block;height:21px;padding-left:5px;line-height:21px;color:#000;text-decoration:none;&#125;<br/>.searchTool .selOption a:hover&#123;color:#fff;background:#95d5f1;&#125;<br/>.searchTool .btnSearch&#123;float:left;margin-left:10px;width:58px;height:22px;line-height:22px;border:1px solid #3e99d4;overflow:hidden;&#125;<br/>.searchTool .btnSearch a&#123;background:url(http://static.youku.com/v1.0.0217/index/img/bg_nav_option.gif) repeat-x center -6px;display:block;text-decoration:none;height:22px;line-height:22px;overflow:hidden;&#125;<br/>.searchTool .btnSearch a:hover&#123;background:url(http://static.youku.com/v1.0.0217/index/img/bg_nav_option_over.gif) repeat-x center center;border:1px solid #fff;height:20px;line-height:20px;&#125;<br/>.searchTool .btnSearch .lbl&#123;cursor:pointer;display:block;width:40px;padding-left:5px;letter-spacing:5px;text-align:center;height:18px;padding-top:1px;margin:0 auto;filter:progid:DXImageTransform.Microsoft.DropShadow(color=#daeefa,offX=1,offY=1,positives=true);&#125;<br/>.searchTool .btnSearch a:hover .lbl&#123;padding-top:0px;&#125;<br/>&lt;/style&gt;<br/>&lt;script&gt;<br/>function drop_mouseover(pos)&#123;<br/> try&#123;window.clearTimeout(timer);&#125;catch(e)&#123;&#125;<br/>&#125;<br/>function drop_mouseout(pos)&#123;<br/> var posSel=document.getElementById(pos+&quot;Sel&quot;).style.display;<br/> if(posSel==&quot;block&quot;)&#123;<br/>&nbsp;&nbsp;timer = setTimeout(&quot;drop_hide(&#039;&quot;+pos+&quot;&#039;)&quot;, 1000);<br/> &#125;<br/>&#125;<br/>function drop_hide(pos)&#123;<br/> document.getElementById(pos+&quot;Sel&quot;).style.display=&quot;none&quot;;<br/>&#125;<br/>function search_show(pos,searchType,href)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(pos+&quot;SearchType&quot;).value=searchType;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(pos+&quot;Sel&quot;).style.display=&quot;none&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(pos+&quot;Slected&quot;).innerHTML=href.innerHTML;<br/>&nbsp;&nbsp;&nbsp;&nbsp;document.getElementById(pos+&#039;q&#039;).focus();<br/>&nbsp;&nbsp;&nbsp;&nbsp;var sE = document.getElementById(&quot;searchExtend&quot;);<br/>&nbsp;&nbsp;&nbsp;&nbsp;if(sE != undefined &amp;&amp; searchType == &quot;bar&quot;)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; sE.style.display=&quot;block&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;else if(sE != undefined)&#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp; sE.style.display=&quot;none&quot;;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&#125;<br/> try&#123;window.clearTimeout(timer);&#125;catch(e)&#123;&#125;<br/> return false;<br/>&#125;<br/>&lt;/script&gt;<br/>&lt;/head&gt;&lt;body&gt;<br/>&lt;h3&gt;&lt;a href=&quot;http://www.dzhope.com/&quot; style=&quot;color: rgb(0, 0, 0);&quot;&gt;www.dzhope.com&lt;/a&gt;&lt;/h3&gt;<br/>&lt;div class=&quot;searchTool&quot;&gt;<br/>&lt;form method=&quot;get&quot; action=&quot;http://so.youku.com/search_playlist&quot; name=&quot;headSearchForm&quot; id=&quot;headSearchForm&quot; onsubmit=&quot;return dosearch(this);&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;input class=&quot;txtSearch&quot; id=&quot;headq&quot; name=&quot;q&quot; value=&quot;DIV+CSS模板&quot; type=&quot;text&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name=&quot;searchdomain&quot; value=&quot;http://so.youku.com&quot; type=&quot;hidden&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;input id=&quot;headSearchType&quot; name=&quot;searchType&quot; value=&quot;playlist&quot; type=&quot;hidden&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;selSearch&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;nowSearch&quot; id=&quot;headSlected&quot; onclick=&quot;if(document.getElementById(&#039;headSel&#039;).style.display==&#039;none&#039;)&#123;document.getElementById(&#039;headSel&#039;).style.display=&#039;block&#039;;&#125;else &#123;document.getElementById(&#039;headSel&#039;).style.display=&#039;none&#039;;&#125;;return false;&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;DIV模板&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;btnSel&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;if(document.getElementById(&#039;headSel&#039;).style.display==&#039;none&#039;)&#123;document.getElementById(&#039;headSel&#039;).style.display=&#039;block&#039;;&#125;else &#123;document.getElementById(&#039;headSel&#039;).style.display=&#039;none&#039;;&#125;;return false;&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;&lt;/a&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;ul class=&quot;selOption&quot; id=&quot;headSel&quot; style=&quot;display: none;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show(&#039;head&#039;,&#039;video&#039;,this)&quot; onmouseover=&quot;drop_mouseover(&#039;head&#039;);&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;后台模板&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show(&#039;head&#039;,&#039;playlist&#039;,this)&quot; onmouseover=&quot;drop_mouseover(&#039;head&#039;);&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;图片图标&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show(&#039;head&#039;,&#039;user&#039;,this)&quot; onmouseover=&quot;drop_mouseover(&#039;head&#039;);&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;CSS代码&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show(&#039;head&#039;,&#039;bar&#039;,this)&quot; onmouseover=&quot;drop_mouseover(&#039;head&#039;);&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;CSS菜单&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show(&#039;head&#039;,&#039;pk&#039;,this)&quot; onmouseover=&quot;drop_mouseover(&#039;head&#039;);&quot; onmouseout=&quot;drop_mouseout(&#039;head&#039;);&quot;&gt;CSS图表&lt;/a&gt;&lt;/li&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/ul&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div class=&quot;btnSearch&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;a href=&quot;http://www.dzhope.com/&quot; onclick=&quot;javascript:return dosearch(document.getElementById(&#039;headSearchForm&#039;));&quot;&gt;&lt;span class=&quot;lbl&quot;&gt;搜索&lt;/span&gt;&lt;/a&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;searchExtend&quot; id=&quot;searchExtend&quot; name=&quot;searchExtend&quot; style=&quot;display: none;&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input class=&quot;radio&quot; name=&quot;sbt&quot; value=&quot;post&quot; onclick=&quot;csbt(this,this.form.sbts);&quot; type=&quot;radio&quot;&gt;搜贴子&lt;input name=&quot;sbt&quot; value=&quot;user&quot; onclick=&quot;csbt(this,this.form.sbts);&quot; class=&quot;radio&quot; type=&quot;radio&quot;&gt;按作者搜&lt;input name=&quot;sbts&quot; value=&quot;bar&quot; type=&quot;hidden&quot;&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form&gt;<br/>&nbsp;&nbsp; &lt;/div&gt;<br/>&nbsp;&nbsp; &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br/>&nbsp;&nbsp;<br/> <br/>&lt;/body&gt;&lt;/html&gt;<br/></div>
]]>
</description>
</item><item>
<link>http://www.dzhope.com/post//#blogcomment</link>
<title><![CDATA[[评论] 优酷搜索框美化代码]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.dzhope.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>