<?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>web集结号 &#187; 导航菜单</title>
	<atom:link href="http://www.songlecn.com/tag/%e5%af%bc%e8%88%aa%e8%8f%9c%e5%8d%95/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.songlecn.com</link>
	<description>专注于web表现层技术</description>
	<lastBuildDate>Wed, 04 Nov 2009 02:46:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>jQuery插件-竖形动感菜单</title>
		<link>http://www.songlecn.com/2009/03/632/</link>
		<comments>http://www.songlecn.com/2009/03/632/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 17:20:22 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[jQuery插件]]></category>
		<category><![CDATA[导航菜单]]></category>
		<category><![CDATA[竖形动感菜单]]></category>
		<category><![CDATA[黑色菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=632</guid>
		<description><![CDATA[jQuery插件-竖形动感菜单，比昨天发布的横向菜单更酷，效果图： Demo链接：http://nettuts.s3.amazonaws.com/004_Moo/tutorial/demo/demo.html]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/03/632/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>纯CSS网站后台管理菜单</title>
		<link>http://www.songlecn.com/2009/03/571/</link>
		<comments>http://www.songlecn.com/2009/03/571/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 06:43:17 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[css特效]]></category>
		<category><![CDATA[CSS菜单]]></category>
		<category><![CDATA[导航菜单]]></category>
		<category><![CDATA[菜单效果]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=571</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>纯CSS网站后台管理菜单，运行代码查看效果 &#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;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /&#62; &#60;title&#62;纯css管理菜单&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; body{font-size:12px;} ul,li,h2{margin:0;padding:0;} ul{list-style:none;} #top{width:900px;height:40px;margin:0 auto;background-color:#cc0} #top h2{width:150px;height:40px;background-color:#9c0;float:left;font-size:14px;text-align:center;line-height:40px;} #topTags{width:750px;height:40px;margin:0 auto;background-color:#cc0;float:left} #topTags ul li{float:left;width:100px;height:25px;margin-right:5px;display:block;text-align:center;cursor:pointer;padding-top:15px;} #main{width:900px;height:500px;margin:0 auto;background-color:#F5F7E6;} #leftMenu{width:150px;height:500px;background-color:#009900;float:left} #leftMenu ul{margin:10px;} #leftMenu ul li{width:130px;height:30px;display:block;background:#9c0;cursor:pointer;line-height:30px;text-align:center;margin-bottom:5px;} #leftMenu ul li a{color:#000000;text-decoration:none;} #content{width:750px;height:500px;float:left} .content{width:740px;height:490px;display:none;padding:5px;overflow-y:auto;line-height:30px;} #footer{width:900px;height:30px;margin:0 auto;background-color:#ccc;line-height:30px;text-align:center;} .content1 {width:740px;height:490px;display:block;padding:5px;overflow-y:auto;line-height:30px;} &#60;/style&#62; &#60;script type=&#34;text/javascript&#34;&#62; window.onload=function(){ function [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/03/571/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>仿瑞星网站导航菜单</title>
		<link>http://www.songlecn.com/2009/03/569/</link>
		<comments>http://www.songlecn.com/2009/03/569/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 06:39:37 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[js代码]]></category>
		<category><![CDATA[js特效]]></category>
		<category><![CDATA[仿瑞星]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=569</guid>
		<description><![CDATA[仿瑞星网站导航菜单，效果不错，有预览有Demo还有下载 Demo链接：http://www.songlecn.com/wp-content/supload/2009/03/22/demo.html]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/03/569/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery插件 &#8211; 菜单（导航条）背景动画</title>
		<link>http://www.songlecn.com/2009/03/466/</link>
		<comments>http://www.songlecn.com/2009/03/466/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 02:56:26 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[jQuery插件]]></category>
		<category><![CDATA[导航菜单]]></category>
		<category><![CDATA[菜单效果]]></category>
		<category><![CDATA[菜单特效]]></category>
		<category><![CDATA[菜单（导航条）背景动画]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=466</guid>
		<description><![CDATA[jQuery插件 &#8211; 菜单（导航条）背景动画，其实就是根据鼠标动作控制背景图的背景位置，很简单，但效果很好，推荐 Demo链接http://www.songlecn.com/wp-content/supload/2009/03/11/Demo.htm]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/03/466/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>中英文双语导航菜单</title>
		<link>http://www.songlecn.com/2009/02/319/</link>
		<comments>http://www.songlecn.com/2009/02/319/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 02:44:38 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[css]]></category>
		<category><![CDATA[双语]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=319</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>中英文双语导航菜单，点击运行查看效果，纯css技巧实现的效果 &#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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=utf-8&#34; /&#62; &#60;meta name=&#34;Keywords&#34; content=&#34;导航,菜单&#34; /&#62; &#60;meta http-equiv=&#34;Description&#34; content=&#34;中英文双语导航菜单的演示&#34; /&#62; &#60;meta content=&#34;all&#34; name=&#34;robots&#34; /&#62; &#60;title&#62;中英文双语导航菜单&#60;/title&#62; &#60;style type=&#34;text/css&#34; media=&#34;all&#34;&#62; #nav { padding: 10px 10px 0; font-size: 12px; font-weight: bold; font-family:Arial, Helvetica, sans-serif,宋体; margin: 1em 0 0; list-style:none; } #nav li { [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/319/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>超酷仿GOOGLE首页导航菜单效果</title>
		<link>http://www.songlecn.com/2009/02/266/</link>
		<comments>http://www.songlecn.com/2009/02/266/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 03:20:28 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[导航菜单]]></category>
		<category><![CDATA[效果]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/?p=266</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>超酷仿GOOGLE首页导航菜单效果，google的首页菜单导航相信大家已经非常熟悉了，想不想自己也拥有一个呢?下面是代码，运行就可以看到效果，这里除了javascript以外，还用到了css sprites &#60;html&#62; &#60;head&#62; &#60;title&#62;超酷仿GOOGLE首页导航菜单效果&#60;/title&#62; &#60;meta http-equiv=&#34;content-Type&#34; content=&#34;text/html;charset=gb2312&#34;&#62; &#60;/head&#62; &#60;body&#62; &#60;!--把下面代码加到&#60;body&#62;与&#60;/body&#62;之间--&#62; &#60;script&#62; window.google={kEI:&#34;HBnlR8bgAorksALn3dTbBw&#34;,kEXPI:&#34;17259,17735,18065&#34;,kHL:&#34;zh-CN&#34;}; function sf(){document.f.q.focus()} window.clk=function(b,c,d,e,f,g){if(document.images){var a=encodeURIComponent&#124;&#124;escape;(new Image).src=&#34;/url?sa=T&#34;+(c?&#34;&#38;oi=&#34;+a(c):&#34;&#34;)+(d?&#34;&#38;cad=&#34;+a(d):&#34;&#34;)+&#34;&#38;ct=&#34;+a(e)+&#34;&#38;cd=&#34;+a(f)+(b?&#34;&#38;url=&#34;+a(b.replace(/#.*/,&#34;&#34;)).replace(/\+/g,&#34;%2B&#34;):&#34;&#34;)+&#34;&#38;ei=HBnlR8bgAorksALn3dTbBw&#34;+g}return true}; window.gbar={};(function(){var b=window.gbar,c,g,h;function n(d,f,e){d.visibility=h?&#34;hidden&#34;:&#34;visible&#34;;d.left=f+&#34;px&#34;;d.top=e+&#34;px&#34;}b.tg=function(d){var f=0,e=0,a,i=0,o,l=window.navExtra,m,j=document,k=0;g=g&#124;&#124;j.getElementById(&#34;gbar&#34;).getElementsByTagName(&#34;span&#34;);(d&#124;&#124;window.event).cancelBubble=!i;if(!c){c=j.createElement(Array.every&#124;&#124;window.createPopup?&#34;iframe&#34;:&#34;DIV&#34;);c.frameBorder=&#34;0&#34;;c.scrolling=&#34;no&#34;;c.src=&#34;#&#34;;g[7].parentNode.appendChild(c).id=&#34;gbi&#34;;if(l&#38;&#38;g[7])for(o in l){m=j.createElement(&#34;span&#34;);m.appendChild(l[o]);g[7].parentNode.insertBefore(m,g[7]).className=&#34;gb2&#34;}j.onclick=b.close}while(a=g[++i]){if(e){n(a.style,e+1,f+25);k=Math.max(k,a.firstChild.tagName==&#34;A&#34;&#38;&#38;a.offsetWidth);f+=a.firstChild.tagName==&#34;DIV&#34;?9:20}if(a.className==&#34;gb3&#34;){do e+=a.offsetLeft;while(a=a.offsetParent)}}{i=0;while(a=g[++i])if(a.className==&#34;gb2&#34;)a.style.width=k+&#34;px&#34;;c.style.width=k+&#34;px&#34;}c.style.height=f+&#34;px&#34;;n(c.style,e,24);h=!h};b.close=function(d){h&#38;&#38;b.tg(d)}})(); (function(){ function g(a,b,c){var d=&#34;on&#34;+b;if(a.addEventListener){a.addEventListener(b,c,false)}else if(a.attachEvent){a.attachEvent(d,c)}else{var e=a[d];a[d]=function(){var f=e.apply(this,arguments),h=c.apply(this,arguments);return f==undefined?h:(h==undefined?f:h&#38;&#38;f)}}};var aa,i,j,l,n=&#34;&#34;,o,p=null,q=null,r=null,s=-1,t,u,v,w,x=null,y=null,z,A,ba={},B=null,C,F=0,G=0,H=0,I=null,J,K=false,L=false,M,N;{var ca=navigator.userAgent.toLowerCase();M=ca.indexOf(&#34;opera&#34;)!=-1;N=ca.indexOf(&#34;msie&#34;)!=-1&#38;&#38;!M}var O=null,da=new RegExp(&#34;^[\\s\\u1100-\\u11FF\\u3040-\\u30FF\\u3130-\\u318F\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\u9FFF\\uAC00-\\uD7A3\\uF900-\\uFAFF\\uFF65-\\uFFDC]+$&#34;),P=&#34;google-ac-&#34;,ea=true;function fa(a,b,c,d,e,f,h,m){t=a;u=b;aa=d;O=e;ea=f;if(ga()==null){return}var k=window.google.kHL; J=/^(zh-(CN&#124;TW)&#124;ja&#124;ko)$/.test(k);if(c==&#34;search&#34;)c=&#34;&#34;;C=&#34;/complete/search?hl=&#34;+k+(c?&#34;&#38;ds=&#34;+c:&#34;&#34;)+(m?&#34;&#38;pq=&#34;+ha(m):&#34;&#34;)+(h?&#34;&#38;expid=&#34;+h:&#34;&#34;)+&#34;&#38;client=suggest&#34;;t.onsubmit=ia;u.setAttribute(&#34;autocomplete&#34;,&#34;off&#34;);g(u,&#34;blur&#34;,ja);g(u,&#34;beforedeactivate&#34;,ka);if(u.addEventListener){u.onkeypress=la;u.onkeyup=na}else{g(u,N?&#34;keydown&#34;:&#34;keypress&#34;,la);g(u,&#34;keyup&#34;,na)}j=(l=(i=u.value));o=oa(u);v=document.createElement(&#34;table&#34;);v.id=&#34;completeTable&#34;;v.cellSpacing=(v.cellPadding=&#34;0&#34;);w=v.style;v.className=P+&#34;m&#34;;Q();document.body.appendChild(v); if(N){x=document.createElement(&#34;iframe&#34;);y=x.style;x.id=&#34;completeIFrame&#34;;y.zIndex=&#34;1&#34;;y.position=&#34;absolute&#34;;y.display=&#34;block&#34;;y.borderWidth=0;document.body.appendChild(x)}R();pa(&#34;&#34;,[],[]);qa();g(window,&#34;resize&#34;,R);g(window,&#34;pageshow&#34;,ra);if(J)window.setInterval(sa,10);z=ta(&#34;aq&#34;,&#34;f&#34;,false);A=ta(&#34;oq&#34;,&#34;&#34;,true);S()}function ra(a){if(a.persisted)z.value=&#34;f&#34;;A.value=&#34;&#34;}function qa(){var a=document.body.dir==&#34;rtl&#34;,b=a?&#34;right&#34;:&#34;left&#34;,c=a?&#34;left&#34;:&#34;right&#34;,d=document.getElementsByTagName(&#34;head&#34;)[0],e=document.createElement(&#34;style&#34;), f=null,h=null,m=false;if(document.styleSheets){d.appendChild(e);m=true;f=e.sheet?e.sheet:e.styleSheet}if(!f){h=document.createTextNode(&#34;&#34;);e.appendChild(h)}var k=function(D,E){var ma=D+&#34; { &#34;+E+&#34; }&#34;;if(f){if(f.insertRule){f.insertRule(ma,f.cssRules.length)}else if(f.addRule){f.addRule(D,E)}}else{h.data+=ma+&#34;\n&#34;}};k(&#34;.&#34;+P+&#34;m&#34;,&#34;font-size:13px;font-family:arial,sans-serif;cursor:default;line-height:17px;border:1px solid black;z-index:99;position:absolute;background-color:white;margin:0;&#34;);k(&#34;.&#34;+P+&#34;a&#34;, &#34;background-color:white;&#34;);k(&#34;.&#34;+P+&#34;b&#34;,&#34;background-color:#36c;color:white;&#34;);k(&#34;.&#34;+P+&#34;c&#34;,&#34;white-space:nowrap;overflow:hidden;text-align:&#34;+b+&#34;;padding-&#34;+b+&#34;:3px;&#34;+(N&#124;&#124;M?&#34;padding-bottom:1px;&#34;:&#34;&#34;));k(&#34;.&#34;+P+&#34;d&#34;,&#34;white-space:nowrap;overflow:hidden;font-size:10px;text-align:&#34;+c+&#34;;color:green;padding-&#34;+b+&#34;:3px;padding-&#34;+c+&#34;:3px;&#34;);k(&#34;.&#34;+P+&#34;b [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/266/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>jQuery SuperMenu</title>
		<link>http://www.songlecn.com/2009/02/157/</link>
		<comments>http://www.songlecn.com/2009/02/157/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 03:39:32 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/157/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>代码如下: &#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;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;无标题文档&#60;/title&#62; &#60;script src=&#34;http://www.songlecn.com/wp-content/files/jquery-1.2.6.pack.js&#34; type=&#34;text/javascript&#34;&#62;&#60;/script&#62; &#60;script type=&#34;text/javascript&#34;&#62; $(function(){ $(&#34;.menubt&#34;).click(function(){ $(this).blur(); if($(this).siblings(&#34;div&#34;).css(&#34;display&#34;) == &#34;none&#34;) { $(&#34;.menucount:visible&#34;).slideUp(200,function(){ $(this).parent().css(&#34;zIndex&#34;,&#34;100&#34;);}); $(this).siblings(&#34;div&#34;).slideDown(200,function(){ $(this).parent().css(&#34;zIndex&#34;,&#34;10&#34;);}); $(this).siblings(&#34;div&#34;).attr(&#34;id&#34;,&#34;#boxOpen&#34;); } else { $(this).siblings(&#34;div&#34;).slideUp(200,function(){ $(this).parent().css(&#34;zIndex&#34;,&#34;100&#34;);}); } }) }) &#60;/script&#62; &#60;style type=&#34;text/css&#34;&#62; body{ margin:0; padding:0; } .menubox{ position:absolute; width:100%; z-index:100; } [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/157/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>可折叠展开的导航菜单(酷)</title>
		<link>http://www.songlecn.com/2009/02/146/</link>
		<comments>http://www.songlecn.com/2009/02/146/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 09:26:12 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/146/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>Slashdot Menu 是从Slashdot 上发现的一个别具特色的可折叠式效果的导航菜单，可使用不同的方式配置，如哪些子菜单默认情况下是展开的，是否使用Cookies ，以及菜单展开、折叠的速度等。非常酷！简单翻译了一下注释。 代码如下： &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62;&#60;link href=&#34;http://www.songlecn.com/wp-content/supload/2009/02/03/sdmenu/sdmenu.css&#34; type=&#34;text/css&#34; rel=&#34;stylesheet&#34; /&#62;&#60;script type=&#34;text/javascript&#34; src=&#34;http://www.songlecn.com/wp-content/supload/2009/02/03/sdmenu/sdmenu.js&#34;&#62; /*********************************************** * Slashdot Menu script- By DimX * Submitted to Dynamic Drive DHTML code library: http://www.dynamicdrive.com * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ &#60;/script&#62;&#60;script type=&#34;text/javascript&#34;&#62; // &#60;![CDATA[ var myMenu; window.onload = function() { myMenu [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/146/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>仿Chinaz首页菜单导航</title>
		<link>http://www.songlecn.com/2009/02/144/</link>
		<comments>http://www.songlecn.com/2009/02/144/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 08:34:52 +0000</pubDate>
		<dc:creator>船长</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[导航菜单]]></category>

		<guid isPermaLink="false">http://www.songlecn.com/2009/02/144/</guid>
		<description><![CDATA[<script type="text/javascript">
function runcode_open_new(element)
{
	var code = document.getElementById(element).value;
	var win = window.open("", "", "");
	win.opener = null;
	win.document.write(code);
	win.document.close();
}
function runcode_copy(element)
{
	var codeobj = document.getElementById(element);
	var meintext = codeobj.value;
	try {
	 if (window.clipboardData)
	   {
	   window.clipboardData.setData("Text", meintext);
	   }
	   else if (window.netscape)
	   {
	   netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
	   var clip = Components.classes['@mozilla.org/widget/clipboard;1']
					 .createInstance(Components.interfaces.nsIClipboard);
	   if (!clip) return;
	   var trans = Components.classes['@mozilla.org/widget/transferable;1']
					  .createInstance(Components.interfaces.nsITransferable);
	   if (!trans) return;
	   trans.addDataFlavor('text/unicode');
	   var str = new Object();
	   var len = new Object();
	   var str = Components.classes["@mozilla.org/supports-string;1"]
					.createInstance(Components.interfaces.nsISupportsString);
	   var copytext=meintext;
	   str.data=copytext;
	   trans.setTransferData("text/unicode",str,copytext.length*2);
	   var clipid=Components.interfaces.nsIClipboard;
	   if (!clip) return false;
	   clip.setData(trans,null,clipid.kGlobalClipboard);
	   }
	} catch (e) {alert('因为安全策略的原因，此项功能已被您的浏览器禁止。关闭此窗口，然后按下“Ctrl+C”组合键完成复制。');		codeobj.focus();
	}
	codeobj.select();
   return false;
}
</script>仿Chinaz首页菜单导航代码如下: &#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;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; /&#62; &#60;title&#62;Chinaz菜单导航&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; &#60;!-- div, ul, p{ margin: 0; padding: 0; font-weight: normal; font-style: normal; font-size: 100%; font-family: inherit; } body { color: #333; background: #deebf3; text-align: center; font: 12px/1.5 Tahoma, Helvetica, Arial, sans-serif; } a:link, a:visited { [...]]]></description>
		<wfw:commentRss>http://www.songlecn.com/2009/02/144/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

