<?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>艺创</title>
	<atom:link href="http://www.ycspace.com/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.ycspace.com</link>
	<description>前进中的梦想</description>
	<lastBuildDate>Tue, 31 Aug 2010 23:25:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>OA登录界面</title>
		<link>http://www.ycspace.com/?p=190</link>
		<comments>http://www.ycspace.com/?p=190#comments</comments>
		<pubDate>Tue, 31 Aug 2010 23:25:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[个人案例]]></category>
		<category><![CDATA[oa登录界面]]></category>
		<category><![CDATA[后台登陆界面]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=190</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<div id="attachment_191" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.ycspace.com/wp-content/uploads/2010/08/main-x.jpg" rel="lightbox[190]"><img class="size-full wp-image-191" title="main-x" src="http://www.ycspace.com/wp-content/uploads/2010/08/main-x.jpg" alt="OA登录界面,后台登陆界面设计" width="600" height="375" /></a><p class="wp-caption-text">OA登录界面,后台登陆界面设计</p></div>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=190</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>浏览器专属CSS Hack： 区分各种不同浏览器</title>
		<link>http://www.ycspace.com/?p=187</link>
		<comments>http://www.ycspace.com/?p=187#comments</comments>
		<pubDate>Tue, 31 Aug 2010 05:41:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[xhtml/css]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[web标准化]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=187</guid>
		<description><![CDATA[CSS Hack 是在标准 CSS 没办法兼容各浏览器显示效果时才会用上的补救方法,在各浏览器厂商解析 CSS 没有达成一致前,我们只能用这样的方法来完成这样的任务。网上你可能能搜索到一大堆的 CSS Hack，但是我今天发布的你可能并不都很了解，因为这些都是只针对单独一个浏览器的 CSS Hack。 为了向你展示这些 CSS Hack 是否正常运作，我新建六个 P 标签，并给每一个 P 标签一个特有的 id。这将向你展示 CSS Hack 的运作情况。 &#60;p id=&#8221;opera&#8221;&#62;我来自 Opera 7.2 &#8211; 9.5&#60;/p&#62; &#60;p id=&#8221;safari&#8221;&#62;我是神奇的 Safari&#60;/p&#62; &#60;p id=&#8221;firefox&#8221;&#62;我来自 Firefox&#60;/p&#62; &#60;p id=&#8221;firefox12&#8243;&#62;我是FF前辈 Firefox 1 &#8211; 2 &#60;/p&#62; &#60;p id=&#8221;ie7&#8243;&#62;我是囧 IE 7&#60;/p&#62; &#60;p id=&#8221;ie6&#8243;&#62;我是残品 IE 6&#60;/p&#62; 然后我让这些 P 标签默认都不显示 &#60;style type=&#8221;text/css&#8221;&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>CSS Hack 是在标准 CSS 没办法兼容各浏览器显示效果时才会用上的补救方法,在各浏览器厂商解析 CSS  没有达成一致前,我们只能用这样的方法来完成这样的任务。网上你可能能搜索到一大堆的 CSS  Hack，但是我今天发布的你可能并不都很了解，因为这些都是只针对单独一个浏览器的 CSS Hack。</p>
<p>为了向你展示这些 CSS Hack 是否正常运作，我新建六个 P 标签，并给每一个 P 标签一个特有的 id。这将向你展示 CSS Hack 的运作情况。</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">&lt;p id=&#8221;opera&#8221;&gt;我来自 Opera 7.2 &#8211; 9.5&lt;/p&gt;<br />
&lt;p id=&#8221;safari&#8221;&gt;我是神奇的 Safari&lt;/p&gt;<br />
&lt;p id=&#8221;firefox&#8221;&gt;我来自 Firefox&lt;/p&gt;<br />
&lt;p id=&#8221;firefox12&#8243;&gt;我是FF前辈 Firefox 1 &#8211; 2 &lt;/p&gt;<br />
&lt;p id=&#8221;ie7&#8243;&gt;我是囧 IE 7&lt;/p&gt;<br />
&lt;p id=&#8221;ie6&#8243;&gt;我是残品 IE 6&lt;/p&gt;</td>
</tr>
</tbody>
</table>
<p>然后我让这些 P 标签默认都不显示</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">&lt;style type=&#8221;text/css&#8221;&gt;<br />
body p{display: none;}<br />
&lt;/style&gt;</td>
</tr>
</tbody>
</table>
<p><strong>使用 IE CSS 条件注释区分 IE 浏览器</strong></p>
<p>最简单的区分IE浏览器的方法自然是使用他们的条件注释。微软创建了一个强大的语法来让我们去实现这个功能。我不想再详细地介绍 IE 条件注释了，我想你在搜索引擎能搜索到上万个搜索条目，我这里只要这两个：</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">&lt;!&#8211;[if IE 7]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</p>
<p>&lt;!&#8211;[if IE 6]&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
&lt;/style&gt;<br />
&lt;![endif]&#8211;&gt;</td>
</tr>
</tbody>
</table>
<p><strong>使用 CSS 解析器 Hacks 区分 IE</strong></p>
<p>虽说 IE 条件注释十分简单好用，但是如果你想把全部的 CSS 放到一个文件里的话，那么你不得不使用别的方法。注意这里的 IE 7  Hack将只对 IE7 有效，因为 IE6 根本不知道 &gt; 选择符。同时你也得注意 &gt; 选择符对于其他浏览器同样是无效的。</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">/* IE 7 */<br />
html &gt; body #ie7<br />
{*display: block;}</p>
<p>/* IE 6 */<br />
body #ie6<br />
{_display: block;}</td>
</tr>
</tbody>
</table>
<p><strong>CSS Hack 区分 Firefox</strong></p>
<p>第一个使用了 body:empty 来区分 Firefox 1 和 2 。第二个 hack使用了全部 Firefox 浏览器的专有扩展 -moz。 -moz 只对 Firefox有效，使用这个 Hack 大可不必担心其他浏览器的影响。</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">/* Firefox 1 &#8211; 2 */<br />
body:empty #firefox12<br />
{display: block;}</p>
<p>/* Firefox */<br />
@-moz-document url-prefix()<br />
{#firefox { display: block; }}</td>
</tr>
</tbody>
</table>
<p><strong>CSS Hack 区分 Safari</strong></p>
<p>Safari 的 CSS hack 与 Firefox 的 hack 看起来很像，使用的是 Safari浏览器的专有扩展 -webkit 且只对 Safari 浏览器有效。</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">/* Safari */<br />
@media screen and (-webkit-min-device-pixel-ratio:0)<br />
{#safari { display: block; }}</td>
</tr>
</tbody>
</table>
<p><strong>CSS Hack 区分 Opera</strong></p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">/* Opera */<br />
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)<br />
{head~body #opera { display: block; }}</td>
</tr>
</tbody>
</table>
<p>然后，全部合在一起便是</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb">&lt;!DOCTYPE HTML PUBLIC &#8220;-//W3C//DTD HTML 4.01//EN&#8221; &#8220;http://www.w3.org/TR/html4/strict.dtd&#8221;&gt;<br />
&lt;html lang=&#8221;en&#8221;&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&gt;<br />
&lt;title&gt;CSS Browser Hacks&lt;/title&gt;<br />
&lt;style type=&#8221;text/css&#8221;&gt;<br />
body p<br />
{<br />
display: none;<br />
}<br />
/* Opera */<br />
html:first-child #opera<br />
{<br />
display: block;<br />
}<br />
/* IE 7 */<br />
html &gt; body #ie7<br />
{<br />
*display: block;<br />
}<br />
/* IE 6 */<br />
body #ie6<br />
{<br />
_display: block;<br />
}<br />
/* Firefox 1 &#8211; 2 */<br />
body:empty #firefox12<br />
{<br />
display: block;<br />
}<br />
/* Firefox */<br />
@-moz-document url-prefix()<br />
{<br />
#firefox { display: block; }<br />
}<br />
/* Safari */<br />
@media screen and (-webkit-min-device-pixel-ratio:0)<br />
{<br />
#safari { display: block; }<br />
}<br />
/* Opera */<br />
@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0)<br />
{<br />
head~body #opera { display: block; }<br />
}<br />
&lt;/style&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;p id=&#8221;opera&#8221;&gt;我来自 Opera 7.2 &#8211; 9.5&lt;/p&gt;<br />
&lt;p id=&#8221;safari&#8221;&gt;我是神奇的 Safari&lt;/p&gt;<br />
&lt;p id=&#8221;firefox&#8221;&gt;我来自 Firefox&lt;/p&gt;<br />
&lt;p id=&#8221;firefox12&#8243;&gt;我是FF前辈 Firefox 1 &#8211; 2 &lt;/p&gt;<br />
&lt;p id=&#8221;ie7&#8243;&gt;我是囧 IE 7&lt;/p&gt;<br />
&lt;p id=&#8221;ie6&#8243;&gt;我是残品 IE 6&lt;/p&gt;&lt;/body&gt;<br />
&lt;/html&gt;</td>
</tr>
</tbody>
</table>
<p>不为了标准而标准。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=187</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6下png透明问题解决的最佳方案</title>
		<link>http://www.ycspace.com/?p=184</link>
		<comments>http://www.ycspace.com/?p=184#comments</comments>
		<pubDate>Tue, 31 Aug 2010 05:34:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[设计资源]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[png]]></category>
		<category><![CDATA[透明]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=184</guid>
		<description><![CDATA[本来只是一张png透明图片，在IE下是很好解决的，我也尝试了很多种，包括js法，滤镜css法等等，感觉总体来说都不是很完美，而且如果同时使用Sprites方法，就不是那么简单容易的事情了。 最终发现了使用htc方法嵌到css文件中基本可以一次性解决大部分的透明问题。 这种方法已经有很多人介绍过了，但是因为页面是英文，很少有人翻译，也就很少人会去使用。 下面就详细介绍下这种方法： 此方法本身的demo地址：http://www.twinhelix.com/css/iepngfix/demo/ （说过了是全英文的，不要着急哦） 可解决： 1、页面中使用《img》标签加入的png透明图像 2、css中使用background加入的png透明背景（支持多种版本） 3、某些版本的background的png透明，需要在当前页添加一个js解决 下载文件包:http://www.twinhelix.com/css/iepngfix/iepngfix.zip 1、下载后，解压出来，会有很多文件，其中我们需要用到的有3个文件： iepngfix.htc，blank.gif，iepngfix_tilebg.js 2、你可以把他们分别传到相应的css，js和images目录中，当然，也可以建立新的文件夹，比如名为：iepng的文件夹，把他们传到其中 3、添加第一句代码，这是在html文件中添加的格式，不要忘记修改htc文件的路径，如果怕出错，直接使用相对根目录的路径，比如/iepng /iepngfix.htc，这样一般不会出错，当然你也可以把behavior： url（iepngfix.htc）这句添加到你的reset.css文件中去 &#60;style type=&#8221;text/css&#8221;&#62; img, div { behavior: url(iepngfix.htc); } &#60;/style&#62; 4、使用记事本，或类似的工具打开iepngfix.htc文件，将其中blankImg的文件路径替换成你自己的，比如/iepng/blank.gif，根据自己的实际情况。 IEPNGFix.blankImg = &#8216;/images/blank.gif&#8217;; 5、将下面这句js调用代码加到需要页面的《head》中去（此步不是必须的，如果你的head部分的include统一调用的，推荐一定加上这句） &#60;script type=&#8221;text/javascript&#8221; src=&#8221;iepngfix_tilebg.js&#8221;&#62;&#60;/script&#62; 经过以上步骤，基本可以实现IE下png的透明效果了 至少我现在没发现什么问题，如果有出现问题，欢迎一起讨论下，记得跟我说下哦，谢谢啦！ 原文地址：http://blog.sina.com.cn/s/blog_62a8de7a0100ksh2.html]]></description>
			<content:encoded><![CDATA[<p>本来只是一张png透明图片，在IE下是很好解决的，我也尝试了很多种，包括js法，滤镜css法等等，感觉总体来说都不是很完美，而且如果同时使用Sprites方法，就不是那么简单容易的事情了。</p>
<p>最终发现了使用htc方法嵌到css文件中基本可以一次性解决大部分的透明问题。</p>
<p>这种方法已经有很多人介绍过了，但是因为页面是英文，很少有人翻译，也就很少人会去使用。</p>
<p>下面就详细介绍下这种方法：</p>
<p>此方法本身的demo地址：http://www.twinhelix.com/css/iepngfix/demo/</p>
<p>（说过了是全英文的，不要着急哦）</p>
<p><strong>可解决：</strong></p>
<p>1、页面中使用《img》标签加入的png透明图像</p>
<p>2、css中使用background加入的png透明背景（支持多种版本）</p>
<p>3、某些版本的background的png透明，需要在当前页添加一个js解决</p>
<p>下载文件包:http://www.twinhelix.com/css/iepngfix/iepngfix.zip</p>
<p>1、下载后，解压出来，会有很多文件，其中我们需要用到的有3个文件：</p>
<p>iepngfix.htc，blank.gif，iepngfix_tilebg.js</p>
<p>2、你可以把他们分别传到相应的css，js和images目录中，当然，也可以建立新的文件夹，比如名为：iepng的文件夹，把他们传到其中</p>
<p>3、添加第一句代码，这是在html文件中添加的格式，不要忘记修改htc文件的路径，如果怕出错，直接使用相对根目录的路径，比如/iepng /iepngfix.htc，这样一般不会出错，当然你也可以把behavior：  url（iepngfix.htc）这句添加到你的reset.css文件中去</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb"><span style="font-family: NSimsun;">&lt;style type=&#8221;text/css&#8221;&gt;<br />
img, div { behavior: url(iepngfix.htc); }<br />
&lt;/style&gt;</span></td>
</tr>
</tbody>
</table>
<p>4、使用记事本，或类似的工具打开iepngfix.htc文件，将其中blankImg的文件路径替换成你自己的，比如/iepng/blank.gif，根据自己的实际情况。</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb"><span style="font-family: NSimsun;">IEPNGFix.blankImg = &#8216;/images/blank.gif&#8217;;</span></td>
</tr>
</tbody>
</table>
<p>5、将下面这句js调用代码加到需要页面的《head》中去（此步不是必须的，如果你的head部分的include统一调用的，推荐一定加上这句）</p>
<table border="0" cellspacing="0" cellpadding="6" width="95%" align="center">
<tbody>
<tr>
<td bgcolor="#ddedfb"><span style="font-family: NSimsun;">&lt;script type=&#8221;text/javascript&#8221; src=&#8221;iepngfix_tilebg.js&#8221;&gt;&lt;/script&gt;</span></td>
</tr>
</tbody>
</table>
<p>经过以上步骤，基本可以实现IE下png的透明效果了</p>
<p>至少我现在没发现什么问题，如果有出现问题，欢迎一起讨论下，记得跟我说下哦，谢谢啦！</p>
<p>原文地址：http://blog.sina.com.cn/s/blog_62a8de7a0100ksh2.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=184</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>彷淘宝导航拼音检索-JS代码</title>
		<link>http://www.ycspace.com/?p=182</link>
		<comments>http://www.ycspace.com/?p=182#comments</comments>
		<pubDate>Tue, 31 Aug 2010 05:20:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[js代码收集]]></category>
		<category><![CDATA[JS代码]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=182</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /&#62; &#60;title&#62;仿taobao效果&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; *{ margin:0;padding:0;} body{ font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center;} #warpper{ position:absolute; left:100px; top:100px;} h5{ float:left;} a{ text-decoration:underline; cursor:pointer; font-weight:bold;} dl{ height:18px; line-height:18px; background:#f7f7f7; padding:0 10px;} dt,.normal{ float:left; padding:0 10px; border-right:1px solid #ccc; text-decoration:none; width:auto; cursor:pointer;} [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="overflow-y:visible;width:700px;font-size:12px" class="runcode_text" id="runcode_VEqUlt">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-loose.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;
&lt;title&gt;仿taobao效果&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
	*{ margin:0;padding:0;}
	body{ font:normal 12px Verdana, Arial, Helvetica, sans-serif; text-align:center;}
	#warpper{ position:absolute; left:100px; top:100px;}
	h5{ float:left;}
	a{ text-decoration:underline; cursor:pointer; font-weight:bold;}
	dl{ height:18px; line-height:18px; background:#f7f7f7; padding:0 10px;}
	dt,.normal{ float:left; padding:0 10px; border-right:1px solid #ccc; text-decoration:none; width:auto; cursor:pointer;}
	dt.over{ position:relative;border:1px solid #86e5f0; padding:0 10px 15px 10px; border-bottom:1px solid #caf1f1; margin:-1px 0 0 -1px; z-index:1000; color:#ff6026; text-decoration:underline; background:#caf1f1; height:12px; }
	li{ float:left; list-style-type:none; margin:5px 10px; width:120px;}
	dl dd{ position:absolute; width:500px; left:0;top:17px!important; border:1px solid #86e5f0; background:#caf1f1; filter:progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=120, color=#cccccc); padding:10px 0;}
	.block{ display:block;}
	.none{ display:none;}
&lt;/style&gt;
&lt;script language=&quot;javascript&quot;&gt;
	function $(str){ return document.getElementById(str);}
	function $$(str){ return document.getElementsByTagName(str);}
	var timer;
	function changeMenu(thisObj,num){
		if(thisObj.className==&quot;over&quot;) return false;
		hids(thisObj);
		thisObj.className=&quot;over&quot;;
		$(&quot;c&quot;+(num+1)).className=&quot;block&quot;;
		$(&quot;c&quot;+(num+1)).onmouseover=function(){clearTimeout(timer);}
		$(&quot;c&quot;+(num+1)).onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},500)}
		thisObj.onmouseout=function(){timer=setTimeout(function(){hids(thisObj);},3000)}
	}
	function hids(thisObj){
		clearTimeout(timer);
		var tabObj=thisObj.parentNode.getAttribute(&quot;id&quot;);
		var obj_dt=$(tabObj).getElementsByTagName(&quot;dt&quot;);
		for(var i=0;i&lt;obj_dt.length;i++){
			obj_dt[i].className=&quot;normal&quot;;
			$(&quot;c&quot;+(i+1)).className=&quot;none&quot;;
		}
	}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;dl id=&quot;warpper&quot;&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,0);&quot;&gt;乱飞的鱼&lt;/dt&gt;
		&lt;dd id=&quot;c1&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;Font Size=3 Face=&quot;@楷体_GB2312&quot;&gt;
&lt;Font Color=&quot;#FF00FF&quot;&gt;虚&lt;/Font&gt;&lt;Font Color=&quot;#DC00FF&quot;&gt;拟&lt;/Font&gt;&lt;Font Color=&quot;#B900FF&quot;&gt;系&lt;/Font&gt;&lt;Font Color=&quot;#9500FF&quot;&gt;统&lt;/Font&gt;&lt;Font Color=&quot;#7200FF&quot;&gt;可&lt;/Font&gt;&lt;Font Color=&quot;#4E00FF&quot;&gt;让&lt;/Font&gt;&lt;Font Color=&quot;#2B00FF&quot;&gt;您&lt;/Font&gt;&lt;Font Color=&quot;#0800FF&quot;&gt;放&lt;/Font&gt;&lt;Font Color=&quot;#0015FF&quot;&gt;心&lt;/Font&gt;&lt;Font Color=&quot;#0030FF&quot;&gt;大&lt;/Font&gt;&lt;Font Color=&quot;#004AFF&quot;&gt;胆&lt;/Font&gt;&lt;Font Color=&quot;#0065FF&quot;&gt;尝&lt;/Font&gt;&lt;Font Color=&quot;#0080FF&quot;&gt;试&lt;/Font&gt;&lt;Font Color=&quot;#009AFF&quot;&gt;各&lt;/Font&gt;&lt;Font Color=&quot;#00B5FF&quot;&gt;种&lt;/Font&gt;&lt;Font Color=&quot;#00C0EA&quot;&gt;安&lt;/Font&gt;&lt;Font Color=&quot;#00C0C7&quot;&gt;软&lt;/Font&gt;&lt;Font Color=&quot;#00C0A3&quot;&gt;、&lt;/Font&gt;&lt;Font Color=&quot;#00C080&quot;&gt;测&lt;/Font&gt;&lt;Font Color=&quot;#00C05D&quot;&gt;试&lt;/Font&gt;&lt;Font Color=&quot;#00C039&quot;&gt;病&lt;/Font&gt;&lt;Font Color=&quot;#00C016&quot;&gt;毒&lt;/Font&gt;&lt;Font Color=&quot;#0EC000&quot;&gt;样&lt;/Font&gt;&lt;Font Color=&quot;#31C000&quot;&gt;本&lt;/Font&gt;&lt;Font Color=&quot;#55C000&quot;&gt;，&lt;/Font&gt;&lt;Font Color=&quot;#78C000&quot;&gt;而&lt;/Font&gt;&lt;Font Color=&quot;#9BC000&quot;&gt;不&lt;/Font&gt;&lt;Font Color=&quot;#BFC000&quot;&gt;必&lt;/Font&gt;&lt;Font Color=&quot;#E2C000&quot;&gt;担&lt;/Font&gt;&lt;Font Color=&quot;#FFBB00&quot;&gt;心&lt;/Font&gt;&lt;Font Color=&quot;#FFA000&quot;&gt;自&lt;/Font&gt;&lt;Font Color=&quot;#FF8600&quot;&gt;己&lt;/Font&gt;&lt;Font Color=&quot;#FF6B00&quot;&gt;的&lt;/Font&gt;&lt;Font Color=&quot;#FF5000&quot;&gt;数&lt;/Font&gt;&lt;Font Color=&quot;#FF3600&quot;&gt;据&lt;/Font&gt;&lt;Font Color=&quot;#FF1B00&quot;&gt;安&lt;/Font&gt;&lt;Font Color=&quot;#FF0000&quot;&gt;全&lt;/Font&gt;
&lt;/Font&gt;
&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,1);&quot;&gt;北方星空&lt;/dt&gt;
		&lt;dd id=&quot;c2&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;殊途同归&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;饮鸩止渴&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,2);&quot;&gt;萝卜白菜&lt;/dt&gt;
		&lt;dd id=&quot;c3&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;日月同辉&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;摧枯拉朽&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;月风陨石&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,3);&quot;&gt;轻微污染&lt;/dt&gt;
		&lt;dd id=&quot;c4&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;丢三落四&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;秋叶濛濛&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;快乐男孩&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;欠妳緈諨&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,4);&quot;&gt;大漠笛声&lt;/dt&gt;
		&lt;dd id=&quot;c5&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;唇枪舌剑&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;吹灯拔蜡&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;天不藏奸&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;完美卸载&lt;/a&gt;&lt;/li&gt;
				&lt;li&gt;&lt;a herf=&quot;#&quot;&gt;有始无终&lt;/a&gt;&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
		&lt;dt onmouseover=&quot;changeMenu(this,5);&quot;&gt;黑色男爵&lt;/dt&gt;
		&lt;dd id=&quot;c6&quot; class=&quot;none&quot;&gt;
			&lt;ul&gt;
				&lt;li&gt;&lt;Font Size=3 Face=&quot;楷体_GB2312&quot;&gt;
&lt;Font Color=&quot;#FF00FF&quot;&gt;于&lt;/Font&gt;&lt;Font Color=&quot;#B000FF&quot;&gt;逆&lt;/Font&gt;&lt;Font Color=&quot;#6000FF&quot;&gt;境&lt;/Font&gt;&lt;Font Color=&quot;#1000FF&quot;&gt;中&lt;/Font&gt;&lt;Font Color=&quot;#0030FF&quot;&gt;，&lt;/Font&gt;&lt;Font Color=&quot;#006CFF&quot;&gt;不&lt;/Font&gt;&lt;Font Color=&quot;#00A8FF&quot;&gt;折&lt;/Font&gt;&lt;Font Color=&quot;#00C0D0&quot;&gt;不&lt;/Font&gt;&lt;Font Color=&quot;#00C080&quot;&gt;屈&lt;/Font&gt;&lt;Font Color=&quot;#00C030&quot;&gt;，&lt;/Font&gt;&lt;Font Color=&quot;#1FC000&quot;&gt;才&lt;/Font&gt;&lt;Font Color=&quot;#6FC000&quot;&gt;是&lt;/Font&gt;&lt;Font Color=&quot;#BFC000&quot;&gt;北&lt;/Font&gt;&lt;Font Color=&quot;#FFB400&quot;&gt;方&lt;/Font&gt;&lt;Font Color=&quot;#FF7800&quot;&gt;汉&lt;/Font&gt;&lt;Font Color=&quot;#FF3C00&quot;&gt;子&lt;/Font&gt;&lt;Font Color=&quot;#FF0000&quot;&gt;。&lt;/Font&gt;
&lt;/Font&gt;
&lt;/li&gt;
			&lt;/ul&gt;
		&lt;/dd&gt;
	&lt;/dl&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea></p>
<script type="text/javascript">function changeTsize(){document.getElementById("runcode_VEqUlt").style.height = document.getElementById("runcode_VEqUlt").scrollHeight + "px";}window.setTimeout(changeTsize,0);</script><p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_VEqUlt');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_VEqUlt');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_VEqUlt','runcode_VEqUlt');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=182</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>select选择框美化</title>
		<link>http://www.ycspace.com/?p=178</link>
		<comments>http://www.ycspace.com/?p=178#comments</comments>
		<pubDate>Tue, 31 Aug 2010 05:13:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[js代码收集]]></category>
		<category><![CDATA[JS代码]]></category>
		<category><![CDATA[下拉框select]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=178</guid>
		<description><![CDATA[&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#62; &#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&#62; &#60;head&#62; &#60;title&#62;下拉select选择框&#60;/title&#62; &#60;meta http-equiv=&#34;content-type&#34; content=&#34;text/html;charset=gb2312&#34;&#62; &#60;style type=&#34;text/css&#34;&#62; body{margin:20px auto;font-family:Arial,Helvetica,sans-serif;font-size:12px;width:950px;height:400px;border:solid 1px #aaa;position:relative;padding:10px;} h1{font-size:12px;color:#444;} ul{margin:0;padding:0;list-style:none;} .dropDownList{position:absolute;left:100px;top:100px;} .dropDownList div.dropdown{float:left;margin-right:120px;} .dropDownList span{display:block;width:146px;height:26px;background:url(http://www.codefans.net/jscss/demoimg/201003/selectbg.gif) left top no-repeat;line-height:26px;text-indent:12px;border:solid 1px #83BBD9;cursor:default;} .dropDownList span.over{background-position:left bottom;border-color:#B4C91A;} .dropDownList ul{width:200px;display:none;position:absolute;} .dropDownList ul li{background:#eee;height:20px;width:100%;padding:3px 0;text-indent:12px;cursor:default;line-height:20px;} /*普通状态下的样式*/ .dropDownList ul li.normal{background:#eee;} /*鼠标移上的样式*/ .dropDownList ul li.over{background:#ccc;} /*被选中的样式*/ .dropDownList ul li.current{background:#c2c2c2;font-weight:bold;} .dropDownList [...]]]></description>
			<content:encoded><![CDATA[<div class="runcode">
<p><textarea name="runcode" style="overflow-y:visible;width:700px;font-size:12px" class="runcode_text" id="runcode_ybF_Dx">&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;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
&lt;title&gt;下拉select选择框&lt;/title&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html;charset=gb2312&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
body{margin:20px auto;font-family:Arial,Helvetica,sans-serif;font-size:12px;width:950px;height:400px;border:solid 1px #aaa;position:relative;padding:10px;}
h1{font-size:12px;color:#444;}
ul{margin:0;padding:0;list-style:none;}
.dropDownList{position:absolute;left:100px;top:100px;}
.dropDownList div.dropdown{float:left;margin-right:120px;}
.dropDownList span{display:block;width:146px;height:26px;background:url(http://www.codefans.net/jscss/demoimg/201003/selectbg.gif) left top no-repeat;line-height:26px;text-indent:12px;border:solid 1px #83BBD9;cursor:default;}
.dropDownList span.over{background-position:left bottom;border-color:#B4C91A;}
	.dropDownList ul{width:200px;display:none;position:absolute;}
		.dropDownList ul li{background:#eee;height:20px;width:100%;padding:3px 0;text-indent:12px;cursor:default;line-height:20px;}
		/*普通状态下的样式*/
		.dropDownList ul li.normal{background:#eee;}
		/*鼠标移上的样式*/
		.dropDownList ul li.over{background:#ccc;}
		/*被选中的样式*/
		.dropDownList ul li.current{background:#c2c2c2;font-weight:bold;}
	.dropDownList ul.show{display:block;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form action=&quot;#&quot; method=&quot;get&quot;&gt;
&lt;div class=&quot;dropDownList&quot;&gt;
	&lt;div id=&quot;dropDownList1&quot; class=&quot;dropdown&quot;&gt;
		&lt;select name=&quot;birthday&quot;&gt;
			&lt;option&gt;请选择&lt;/option&gt;
			&lt;option&gt;1986&lt;/option&gt;
			&lt;option&gt;1987&lt;/option&gt;
			&lt;option selected=&quot;selected&quot;&gt;1988&lt;/option&gt;
			&lt;option&gt;1989&lt;/option&gt;
			&lt;option&gt;1990&lt;/option&gt;
		&lt;/select&gt;
		&lt;span&gt;请选择年份&lt;/span&gt;
		&lt;ul&gt;&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div id=&quot;dropDownList2&quot; class=&quot;dropdown&quot;&gt;
		&lt;select name=&quot;sex&quot;&gt;
			&lt;option&gt;性别&lt;/option&gt;
			&lt;option&gt;男&lt;/option&gt;
			&lt;option selected=&quot;selected&quot;&gt;女&lt;/option&gt;
			&lt;option&gt;不是男，也不是女&lt;/option&gt;
		&lt;/select&gt;
		&lt;span&gt;请选择性别&lt;/span&gt;
		&lt;ul&gt;&lt;/ul&gt;
	&lt;/div&gt;
	&lt;div id=&quot;dropDownList3&quot; class=&quot;dropdown&quot;&gt;
		&lt;select name=&quot;student&quot;&gt;
			&lt;option&gt;幼儿班&lt;/option&gt;
			&lt;option&gt;小学&lt;/option&gt;
			&lt;option selected=&quot;selected&quot;&gt;初中&lt;/option&gt;
			&lt;option&gt;高中&lt;/option&gt;
		&lt;/select&gt;
		&lt;span&gt;请选择学历&lt;/span&gt;
		&lt;ul&gt;&lt;/ul&gt;
	&lt;/div&gt;
&lt;/div&gt;
&lt;/form&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var ____configArray;
function __initDropDownList(configArray){
	//获取Select菜单
	____configArray=configArray;
	var existArray=configArray.split(&quot;|&quot;);
	for(var i=0;i&lt;existArray.length;i++){
		if(existArray[i].length&lt;1){return;}
		//根据参数分别获取div，并分别添加事件
		var parentContainer=document.getElementById(existArray[i]);
		if(!parentContainer){return;}
		//获取下面的select，且获取其中的option
		var selectObj=parentContainer.getElementsByTagName(&quot;select&quot;);
		if(selectObj.length&lt;1){return;}
		var optionArray=selectObj[0].getElementsByTagName(&quot;option&quot;);
		//获取option，并分别添加到各个li
		var optionLength=optionArray.length;
		for(var j=0;j&lt;optionLength;j++){
			//获取ul，以便能够添加项目
			var ulObj=parentContainer.getElementsByTagName(&quot;ul&quot;);
			if(ulObj.length&lt;1){return;}
			//获取span，以便能显示当前选择的项目
			var spanObj=parentContainer.getElementsByTagName(&quot;span&quot;);
			if(spanObj.length&lt;1){return;}
			var liObj=document.createElement(&quot;li&quot;);
			var textNode=document.createTextNode(optionArray[j].firstChild.nodeValue)
			liObj.appendChild(textNode);
			liObj.setAttribute(&quot;currentIndex&quot;,j);
			//如果option的selected=&quot;selected&quot;
			if (optionArray[j].selected){
				selectCurrentItem(ulObj[0],liObj);
			}
			//给每个liObj添加事件
			liObj.onclick=function(){
				selectCurrentItem(this.parentNode,this);
			}
			liObj.onmouseover=function(){if(this.className.indexOf(&quot;current&quot;)&lt;0){this.className=&quot;over&quot;;}}
			liObj.onmouseout=function(){if(this.className.indexOf(&quot;current&quot;)&lt;0){this.className=&quot;normal&quot;;}}
			ulObj[0].appendChild(liObj);
			spanObj[0].onclick=function(event){
				//如果当前是显示的，就隐藏，反之亦然
				showHiddenUl(this);
			}
			spanObj[0].onmouseover=function(){this.className='over';}
			spanObj[0].onmouseout=function(){this.className=&quot;&quot;;};
			ulObj[0].onclick=function(){this.className=&quot;&quot;;}
		}
		parentContainer.onclick=function(event){
			if(!event){event=window.event;}
				event.cancelBubble=true;
				var eventUlObj=this.getElementsByTagName(&quot;ul&quot;)[0];
				bodyClickHiddenUl(eventUlObj);
		}
	}
}
function selectCurrentItem(ulObj,currentObj){
	var parentObj=ulObj.parentNode;
	var spanObj=parentObj.getElementsByTagName(&quot;span&quot;)[0];
	spanObj.firstChild.nodeValue=currentObj.firstChild.nodeValue;
	var selectObj=parentObj.getElementsByTagName(&quot;select&quot;)[0];
	selectObj.selectedIndex=parseInt(currentObj.getAttribute(&quot;currentIndex&quot;));
	var ulLiObj=ulObj.getElementsByTagName(&quot;li&quot;);
	var length=ulLiObj.length;
	var currentLiObj=null;
	for(var i=0;i&lt;length;i++){
		currentLiObj=ulLiObj[i];
		currentLiObj.className=&quot;normal&quot;;
	}
	currentObj.className=&quot;current&quot;;
}
function showHiddenUl(currentObj){
	var parentNode=currentObj.parentNode;
	var ulObj=parentNode.getElementsByTagName(&quot;ul&quot;)[0];
	if(ulObj.className==&quot;&quot;){
		ulObj.className=&quot;show&quot;;
	}else{
		ulObj.className=&quot;&quot;;
	}
}
//点击body区域（非“下拉菜单”）隐藏菜单
function addBodyClick(func) {
	var bodyObj=document.getElementsByTagName(&quot;body&quot;)[0];
	var oldBodyClick = bodyObj.onclick;
		if (typeof bodyObj.onclick != 'function') {
			bodyObj.onclick = func;
		} else {
			bodyObj.onclick = function() {
			oldBodyClick();
			func();
		}
	}
}
//隐藏所有的UL
function bodyClickHiddenUl(eventUlObj){
	var existArray=____configArray.split(&quot;|&quot;);
	for(var i=0;i&lt;existArray.length;i++){
		if(existArray[i].length&lt;1){return;}
		//寻找所有UL并且隐藏
		var parentContainer=document.getElementById(existArray[i]);
		if(!parentContainer){return;}
		var ulObj=parentContainer.getElementsByTagName(&quot;ul&quot;);
		if(eventUlObj!=ulObj[0]){
			ulObj[0].className=&quot;&quot;;
		}
	}
}
var __dropDownList=&quot;dropDownList1|dropDownList2|dropDownList3&quot;;
__initDropDownList(__dropDownList);
//添加这个可以确保点击body区域的时候 也可以隐藏菜单
addBodyClick(bodyClickHiddenUl);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</textarea></p>
<script type="text/javascript">function changeTsize(){document.getElementById("runcode_ybF_Dx").style.height = document.getElementById("runcode_ybF_Dx").scrollHeight + "px";}window.setTimeout(changeTsize,0);</script><p><input type="button" value="运行" class="runcode_button" onclick="runcode_open_new('runcode_ybF_Dx');"/> <input type="button" value="复制" class="runcode_button" onclick="runcode_copy('runcode_ybF_Dx');"/> <input type="button" value="另存代码" class="runcode_button" onclick="saveCode('runcode_ybF_Dx','runcode_ybF_Dx');"/> 提示：你可以先修改部分代码再运行。</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=178</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>联系方式</title>
		<link>http://www.ycspace.com/?p=173</link>
		<comments>http://www.ycspace.com/?p=173#comments</comments>
		<pubDate>Mon, 30 Aug 2010 00:34:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[联系方式]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=173</guid>
		<description><![CDATA[如有建站业务需要请联系我哦 姓名：田智伟 qq:38493196 电话：13936595796]]></description>
			<content:encoded><![CDATA[<p>如有建站业务需要请联系我哦</p>
<p>姓名：田智伟</p>
<p>qq:38493196</p>
<p>电话：13936595796</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=173</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>哎！作为男人也想被人哄啊</title>
		<link>http://www.ycspace.com/?p=170</link>
		<comments>http://www.ycspace.com/?p=170#comments</comments>
		<pubDate>Sat, 28 Aug 2010 15:00:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[个人日记]]></category>
		<category><![CDATA[压力]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=170</guid>
		<description><![CDATA[哎 没人理解我的苦闷 只是看到我整天乐哈哈的混混度日 却看不到的满心的忧愁 没有哭的权利，那就只能去笑了 悲剧鸟 本来应该是个高兴的事情 但是却感觉到了无限压力 未来的压力]]></description>
			<content:encoded><![CDATA[<p>哎 没人理解我的苦闷</p>
<p>只是看到我整天乐哈哈的混混度日</p>
<p>却看不到的满心的忧愁</p>
<p>没有哭的权利，那就只能去笑了</p>
<p>悲剧鸟</p>
<p>本来应该是个高兴的事情</p>
<p>但是却感觉到了无限压力</p>
<p>未来的压力</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=170</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一款活动效果的导航&#8212;&#8211;Sunflowamedia</title>
		<link>http://www.ycspace.com/?p=167</link>
		<comments>http://www.ycspace.com/?p=167#comments</comments>
		<pubDate>Sat, 28 Aug 2010 14:18:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[js代码收集]]></category>
		<category><![CDATA[JS代码]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=167</guid>
		<description><![CDATA[最近看到一个不错的导航效果，把 CSS 和 JS 都做了处理，现在和大家一起分享这个效果的导航。 演示地址: http://sunflowamedia.com/web-design/examples/navigation/20100723/ Step 1. 首先创建 HTML 框架，这部分很简单，代码如下: &#60;ul id=&#8221;topnav&#8221;&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Home&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Portfolio&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Blog&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;About&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Contact&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#8221;#&#8221;&#62;Rss&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; Step 2. 写 CSS: 复制内容到剪贴板 代码: ul#topnav { margin: 15px 0 50px 0; padding: 0; list-style: none; float: left; font-size: 1.1em; } ul#topnav li { margin: 0; padding: [...]]]></description>
			<content:encoded><![CDATA[<p>最近看到一个不错的导航效果，把 CSS 和 JS 都做了处理，现在和大家一起分享这个效果的导航。</p>
<p>演示地址: <a href="http://sunflowamedia.com/web-design/examples/navigation/20100723/" target="_blank"><span style="color: royalblue;">http://sunflowamedia.com/web-design/examples/navigation/20100723/</span></a></p>
<p>Step  1. 首先创建 HTML 框架，这部分很简单，代码如下:</p>
<p>&lt;ul id=&#8221;topnav&#8221;&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Portfolio&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Blog&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;About&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href=&#8221;#&#8221;&gt;Rss&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</p>
<p>Step 2. 写 CSS:</p>
<div><em onclick="copycode($('code0'));">复制内容到剪贴板</em></p>
<h5>代码:</h5>
<p><code id="code0">ul#topnav {<br />
margin: 15px 0 50px 0;<br />
padding: 0;<br />
list-style: none;<br />
float: left;<br />
font-size:  1.1em;<br />
}<br />
ul#topnav li {<br />
margin: 0;<br />
padding: 0;<br />
overflow: hidden;  /*--Important - Masking out the hover state by  default--*/<br />
float: left;<br />
height: 40px;<br />
}<br />
ul#topnav li.home  {<br />
width: 75px;<br />
}<br />
ul#topnav li.Rss {<br />
width:  75px;<br />
}<br />
ul#topnav li.Portfolio {<br />
width: 105px;<br />
}<br />
ul#topnav  li.Blog {<br />
width: 75px;<br />
}<br />
ul#topnav li.About {<br />
width:  80px;<br />
}<br />
ul#topnav li.Contact {<br />
width: 95px;<br />
}<br />
ul#topnav a,  ul#topnav span { /*--The &lt;a&gt; and &lt;span&gt; share the same properties  since the &lt;span&gt;  will be a duplicate of the &lt;a&gt; tag--*/<br />
padding: 10px 20px;<br />
float: left;<br />
text-decoration: none;<br />
color: #fff;<br />
background: url(a_bg.gif) repeat-x;<br />
text-transform:  uppercase;<br />
clear: both;<br />
width: 100%;<br />
height:  20px;<br />
line-height: 20px; /*--Vertical alignment of  text--*/<br />
}<br />
ul#topnav a{ /*--This is basically the hover state of  navigation--*/<br />
color: #555;<br />
background-position: left  bottom;<br />
}<br />
ul#topnav span { /*--Default state of navigation--*/<br />
background-position: left top;<br />
}<br />
ul#topnav.v2 span {<br />
background:  transparent url(../images/a_bg.gif) repeat-x left top;<br />
}<br />
ul#topnav.v2 a  {<br />
background: transparent url(../images/a_bg.gif) repeat-x left  bottom;<br />
color: #555;<br />
}</code></div>
<p><span style="color: red;">*li 里是导航的内容，设置 li  的宽度来调整您自己所需要字符宽度。</span></p>
<p>Step 3. 插入 jQuery:</p>
<div><em onclick="copycode($('code1'));">复制内容到剪贴板</em></p>
<h5>代码:</h5>
<p><code id="code1">&lt;script type="text/javascript"  src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;&lt;/script&gt;</code></div>
<p>Step  4. 插入一段脚本，里面包含了 jQuery 运行的原理:</p>
<div><em onclick="copycode($('code2'));">复制内容到剪贴板</em></p>
<h5>代码:</h5>
<p><code id="code2">$(document).ready(function() {<br />
$("#topnav  li").prepend("&lt;span&gt;&lt;/span&gt;"); //Throws an empty span tag right  before the a tag<br />
$("#topnav li").each(function() { //For each list  item...<br />
var linkText = $(this).find("a").html(); //Find the text inside of  the &lt;a&gt; tag<br />
$(this).find("span").show().html(linkText); //Add the text  in the &lt;span&gt; tag<br />
});<br />
$("#topnav li").hover(function() { //On  hover...<br />
$(this).find("span").stop().animate({<br />
marginTop: "-40" //Find the  &lt;span&gt; tag and move it up 40 pixels<br />
}, 250);<br />
} , function() { //On  hover out...<br />
$(this).find("span").stop().animate({<br />
marginTop: "0" //Move  the &lt;span&gt; back to its original state (0px)<br />
},  250);<br />
});<br />
});</code></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=167</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>隔行变色表格，鼠标经过变色，选中变色</title>
		<link>http://www.ycspace.com/?p=162</link>
		<comments>http://www.ycspace.com/?p=162#comments</comments>
		<pubDate>Sat, 28 Aug 2010 14:12:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[js代码收集]]></category>
		<category><![CDATA[JS代码]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=162</guid>
		<description><![CDATA[神奇的隔行变色 &#8211;&#62; // 神奇的隔行变色 // 收集与&#8212;&#8212;-www.blueidea.com]]></description>
			<content:encoded><![CDATA[<p>神奇的隔行变色</p>
<p><!--<br />
<!  A{ FONT-SIZE: 14px; COLOR: #CC6666; TEXT-DECORATION: none} #senfe { width: 300px; border-top: #000 1px solid; border-left: #000 1px solid; } #senfe td { border-right: #000 1px solid; border-bottom: #000 1px solid; } --><br />
&#8211;&gt;<br />
<script>// <![CDATA[
function senfe(o,a,b,c,d){
var t=document.getElementById(o).getElementsByTagName("tr");
for(var i=0;i<t.length;i++){   t[i].style.backgroundColor=(t[i].sectionRowIndex%2==0)?a:b;   t[i].onclick=function(){    if(this.x!="1"){     this.x="1";//本来打算直接用背景色判断，FF获取到的背景是RGB值，不好判断     this.style.backgroundColor=d;    }else{     this.x="0";     this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b;    }   }   t[i].onmouseover=function(){    if(this.x!="1")this.style.backgroundColor=c;   }   t[i].onmouseout=function(){    if(this.x!="1")this.style.backgroundColor=(this.sectionRowIndex%2==0)?a:b;   } } }
// ]]&gt;</script></p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center"><a name="top"> </a></p>
<table border="0" cellspacing="0" cellpadding="0" width="95%">
<tbody>
<tr>
<td height="40"></td>
</tr>
<tr>
<td align="center">
<h4><strong>神奇的隔行变色</strong></h4>
</td>
</tr>
<tr>
<td height="2" bgcolor="#cc6666"></td>
</tr>
<tr>
<td height="3" bgcolor="#ecf2f4"></td>
</tr>
<tr>
<td height="1" bgcolor="#cc6666"></td>
</tr>
<tr>
<td height="20" bgcolor="#ecf2f4"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table id="senfe" border="0" cellspacing="0" cellpadding="0" align="center">
<tbody>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p><script>// <![CDATA[
 //senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景"); senfe("senfe","#fff","#ccc","#cfc","#f00");
// ]]&gt;</script></td>
</tr>
<tr>
<td>
<table border="0" width="95%" align="center" bgcolor="#ecf2f4">
<tbody>
<tr>
<td height="20" bgcolor="#ecf2f4"></td>
</tr>
<tr>
<td align="right" bgcolor="#ecf2f4"></td>
</tr>
<tr>
<td height="10" bgcolor="#ecf2f4"></td>
</tr>
<tr>
<td height="1" bgcolor="#cc6666"></td>
</tr>
<tr>
<td height="2" bgcolor="#ecf2f4"></td>
</tr>
<tr></tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<p>收集与&#8212;&#8212;-<a href="http://www.blueidea.com" target="_blank">www.blueidea.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=162</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>午夜的生活</title>
		<link>http://www.ycspace.com/?p=154</link>
		<comments>http://www.ycspace.com/?p=154#comments</comments>
		<pubDate>Sat, 28 Aug 2010 14:01:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[个人日记]]></category>
		<category><![CDATA[心情记录]]></category>

		<guid isPermaLink="false">http://www.ycspace.com/?p=154</guid>
		<description><![CDATA[每天都在午夜入睡 喜欢午夜的感觉，安静的听着音乐 不管是工作还是游戏都是如此 只有在那个时候才可以彻底的放松下来 这已经是个习惯 虽然每天早上都不愿起来 不过午夜却依然值得回味 午夜里宣泄着白天的烦闷，宣泄着生活的压抑 哎 懒惰已经逐渐蔓延，希望不会继续下去吧]]></description>
			<content:encoded><![CDATA[<p>每天都在午夜入睡<br />
喜欢午夜的感觉，安静的听着音乐<br />
不管是工作还是游戏都是如此<br />
只有在那个时候才可以彻底的放松下来<br />
这已经是个习惯<br />
虽然每天早上都不愿起来<br />
不过午夜却依然值得回味</p>
<p>午夜里宣泄着白天的烦闷，宣泄着生活的压抑<br />
哎<br />
懒惰已经逐渐蔓延，希望不会继续下去吧<a href="http://www.ycspace.com/wp-content/uploads/2010/08/tou.jpg" rel="lightbox[154]"><img src="http://www.ycspace.com/wp-content/uploads/2010/08/tou.jpg" alt="" title="tou" width="120" height="140" class="aligncenter size-full wp-image-159" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ycspace.com/?feed=rss2&amp;p=154</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
