<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[WEB前端DEMO]]></title>
<link>http://www.9demo.com/</link>
<description><![CDATA[]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[feiwen8772@hotmail.com(愚人码头)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>WEB前端DEMO</title> 
	<url>http://www.9demo.com/images/logos.gif</url> 
	<link>http://www.9demo.com/</link> 
	<description>WEB前端DEMO</description> 
</image>

			<item>
			<link>http://www.9demo.com/default.asp?id=274</link>
			<title><![CDATA[用li实现分页源码示例]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,23 Apr 2008 23:01:25 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=274</guid>	
		<description><![CDATA[&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt;<br />&lt;title&gt;有序列表分页源码/样式示例&lt;/title&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />.pagination{<br />&nbsp;overflow:hidden;<br />&nbsp;margin:0;<br />&nbsp;padding:10px 10px 6px 10px;<br />&nbsp;border-top:1px solid #f60;<br />&nbsp;_zoom:1;<br />}<br />.pagination *{<br />&nbsp;display:inline;<br />&nbsp;float:left;<br />&nbsp;margin:0;<br />&nbsp;padding:0;<br />&nbsp;font-size:12px;<br />}<br />.pagination i{<br />&nbsp;float:none;<br />&nbsp;padding-right:1px;<br />}<br />.currentPage b{<br />&nbsp;float:none;<br />&nbsp;color:#f00;<br />}<br />.pagination li{<br />&nbsp;list-style:none;<br />&nbsp;margin:0 5px;<br />}<br />.pagination li li{<br />&nbsp;position:relative;<br />&nbsp;margin:-2px 0 0;<br />&nbsp;font-family: Arial, Helvetica, sans-serif<br />}<br />.firstPage a,.previousPage a,.nextPage a,.lastPage a{<br />&nbsp;overflow:hidden;<br />&nbsp;height:0;<br />&nbsp;text-indent:-9999em;<br />&nbsp;border-top:8px solid #fff;<br />&nbsp;border-bottom:8px solid #fff;<br />}<br />.pagination li li a{<br />&nbsp;margin:0 1px;<br />&nbsp;padding:0 4px;<br />&nbsp;border:3px double #fff;<br />&nbsp;+border-color:#eee;<br />&nbsp;background:#eee;<br />&nbsp;color:#06f;<br />&nbsp;text-decoration:none;<br />}<br />.pagination li li a:hover{<br />&nbsp;background:#f60;<br />&nbsp;border-color:#fff;<br />&nbsp;+border-color:#f60;<br />&nbsp;color:#fff;<br />}<br />li.firstPage{<br />&nbsp;margin-left:40px;<br />&nbsp;border-left:3px solid #06f;<br />}<br />.firstPage a,.previousPage a{<br />&nbsp;border-right:12px solid #06f;<br />}<br />.firstPage a:hover,.previousPage a:hover{<br />&nbsp;border-right-color: #f60;<br />}<br />.nextPage a,.lastPage a{<br />&nbsp;border-left:12px solid #06f;<br />}<br />.nextPage a:hover,.lastPage a:hover{<br />&nbsp;border-left-color:#f60;<br />}<br />li.lastPage{<br />&nbsp;border-right:3px solid #06f;<br />}<br />li li.currentState a{<br />&nbsp;position:relative;<br />&nbsp;margin:-1px 3px;<br />&nbsp;padding:1px 4px;<br />&nbsp;border:3px double #fff;<br />&nbsp;+border-color:#f60;<br />&nbsp;background:#f60;<br />&nbsp;color:#fff;<br />}<br />li.currentState,.currentState a,.currentState a:hover{<br />&nbsp;border-color:#fff #ccc;<br />&nbsp;cursor:default;<br />}<br />&lt;/style&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;ul class=&quot;pagination&quot; title=&quot;分页列表&quot;&gt;<br />&nbsp; &lt;li class=&quot;totalAnnal&quot;&gt;总记录数：&lt;i&gt;3&lt;/i&gt;&lt;/li&gt;<br />&nbsp; &lt;li class=&quot;totalPage&quot;&gt;总页数：&lt;i&gt;3&lt;/i&gt;&lt;/li&gt;<br />&nbsp; &lt;li class=&quot;currentPage&quot;&gt;当前页：&lt;b&gt;3&lt;/b&gt;&lt;/li&gt;<br />&nbsp; &lt;li class=&quot;firstPage currentState&quot;&gt;&lt;a href=&quot;javascript:;&quot; title=&quot;首页&quot;&gt;首页&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &lt;li class=&quot;previousPage currentState&quot;&gt;&lt;a href=&quot;javascript:;&quot; title=&quot;前一页&quot;&gt;前一页&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &lt;li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;ol&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第1页&quot; href=&quot;javascript:;&quot;&gt;1&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第2页&quot; href=&quot;javascript:;&quot;&gt;2&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li class=&quot;currentState&quot; title=&quot;当前页&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;3&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第4页&quot; href=&quot;javascript:;&quot;&gt;4&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第5页&quot; href=&quot;javascript:;&quot;&gt;5&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第6页&quot; href=&quot;javascript:;&quot;&gt;6&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第7页&quot; href=&quot;javascript:;&quot;&gt;7&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第8页&quot; href=&quot;javascript:;&quot;&gt;8&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;li&gt;&lt;a title=&quot;转到第9页&quot; href=&quot;javascript:;&quot;&gt;9&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp; &lt;/ol&gt;<br />&nbsp; &lt;/li&gt;<br />&nbsp; &lt;li class=&quot;nextPage&quot;&gt;&lt;a href=&quot;javascript:;&quot; title=&quot;后一页&quot;&gt;后一页&lt;/a&gt;&lt;/li&gt;<br />&nbsp; &lt;li class=&quot;lastPage&quot;&gt;&lt;a href=&quot;javascript:;&quot; title=&quot;尾页&quot;&gt;尾页&lt;/a&gt;&lt;/i&gt;<br />&lt;/ul&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=273</link>
			<title><![CDATA[显示当前状态的导航]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,23 Apr 2008 22:58:20 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=273</guid>	
		<description><![CDATA[&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;<a href="http://www.w3.org/TR/html4/strict.dtd">http://www.w3.org/TR/html4/strict.dtd</a>&quot;&gt;<br />&lt;html lang=&quot;en&quot;&gt;<br />&lt;head&gt;<br />&nbsp;&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;<br />&nbsp;&lt;title&gt;Dynamic Navigation with CSS and Javascript: Example 7&lt;/title&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />body { font-family:verdana; }<br />#content { float:left; width:400px; border:1px solid #ccc; margin-left:20px; padding:2px 10px 10px 10px; }<br />ul { margin:0; padding:0; list-style: none; width:200px; float:left; }<br />ul li { margin:0 0 1px 0; padding:0; }<br />ul li a {<br />&nbsp;display:block;<br />&nbsp;padding:8px;<br />&nbsp;text-decoration:none;<br />&nbsp;background: #eee;<br />&nbsp;color: #039;<br />}<br />ul li a:hover {<br />&nbsp;background: #ffc;<br />}<br />ul li a.selected {<br />&nbsp;background: #c63;<br />&nbsp;color:#fff;<br />}<br />#content div { display:none; }<br />#content div.on { display:block; }<br />&lt;/style&gt;<br />&lt;script type=&quot;text/javascript&quot;&gt;<br />function applySelectedTo(link) {<br />&nbsp;var ul = document.getElementsByTagName(&quot;ul&quot;)[0]; // get the first ul tag on the page<br />&nbsp;var allLinks = ul.getElementsByTagName(&quot;a&quot;); // get all the links within that ul<br />&nbsp;for (var i=0; i&lt;allLinks.length; i++) { // iterate through all those links<br />&nbsp;&nbsp;allLinks[i].className = &quot;&quot;; // and assign their class names to nothing<br />&nbsp;}<br />&nbsp;link.className = &quot;selected&quot;;&nbsp; // finally, assign class=&quot;selected&quot; to our chosen link<br />&nbsp;var allDivs = document.getElementsByTagName(&quot;div&quot;);<br />&nbsp;for (var k=0; k&lt;allDivs.length; k++) {<br />&nbsp;&nbsp;allDivs[k].className = &quot;&quot;;<br />&nbsp;}<br />&nbsp;var lyricId = link.getAttribute(&quot;href&quot;).split(&quot;#&quot;)[1];<br />&nbsp;lyricId = document.getElementById(lyricId);<br />&nbsp;lyricId.className = &quot;on&quot;;<br />}<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;body&gt;<br />&lt;h1&gt;A list of links (styled, selected state, onclick, return false, and does something)&lt;/h1&gt;<br />&lt;ul&gt;<br />&nbsp;&lt;li&gt;&lt;a onclick=&quot;applySelectedTo(this);return false;&quot; href=&quot;#heartbreakHotel&quot;&gt;Heartbreak Hotel&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a onclick=&quot;applySelectedTo(this);return false;&quot; href=&quot;#blueSuedeShoes&quot;&gt;Blue Suede Shoes&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a onclick=&quot;applySelectedTo(this);return false;&quot; href=&quot;#houndDog&quot; class=&quot;selected&quot;&gt;Hound Dog&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a onclick=&quot;applySelectedTo(this);return false;&quot; href=&quot;#dontBeCruel&quot;&gt;Don't Be Cruel&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a onclick=&quot;applySelectedTo(this);return false;&quot; href=&quot;#teddyBear&quot;&gt;Teddy Bear&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;div id=&quot;content&quot;&gt;<br />&nbsp;&lt;div id=&quot;heartbreakHotel&quot;&gt;<br />&nbsp;&nbsp;&lt;h2&gt;Heartbreak Hotel&lt;/h2&gt;<br />&nbsp;&nbsp;&lt;p&gt;Well, since my baby left me,&lt;br /&gt;<br />&nbsp;&nbsp;I found a new place to dwell.&lt;br /&gt;<br />&nbsp;&nbsp;Its down at the end of lonely street&lt;br /&gt;<br />&nbsp;&nbsp;At heartbreak hotel.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;You make me so lonely baby,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely I could die.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;And although its always crowded,&lt;br /&gt;<br />&nbsp;&nbsp;You still can find some room.&lt;br /&gt;<br />&nbsp;&nbsp;Where broken hearted lovers&lt;br /&gt;<br />&nbsp;&nbsp;Do cry away their gloom.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;You make me so lonely baby,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely I could die.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Well, the bell hops tears keep flowin,&lt;br /&gt;<br />&nbsp;&nbsp;And the desk clerks dressed in black.&lt;br /&gt;<br />&nbsp;&nbsp;Well they been so long on lonely street&lt;br /&gt;<br />&nbsp;&nbsp;They aint ever gonna look back.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;You make me so lonely baby,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely,&lt;br /&gt;<br />&nbsp;&nbsp;I get so lonely I could die.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Hey now, if your baby leaves you,&lt;br /&gt;<br />&nbsp;&nbsp;And you got a tale to tell.&lt;br /&gt;<br />&nbsp;&nbsp;Just take a walk down lonely street&lt;br /&gt;<br />&nbsp;&nbsp;To heartbreak hotel.&lt;/p&gt;<br />&nbsp;&lt;/div&gt;<br />&nbsp;&lt;div id=&quot;blueSuedeShoes&quot;&gt;<br />&nbsp;&nbsp;&lt;h2&gt;Blue Suede Shoes&lt;/h2&gt;<br />&nbsp;&nbsp;&lt;p&gt;Well, its one for the money,&lt;br /&gt;<br />&nbsp;&nbsp;Two for the show,&lt;br /&gt;<br />&nbsp;&nbsp;Three to get ready,&lt;br /&gt;<br />&nbsp;&nbsp;Now go, cat, go.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;But dont you step on my blue suede shoes.&lt;br /&gt;<br />&nbsp;&nbsp;You can do anything but lay off of my blue suede shoes.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Well, you can knock me down,&lt;br /&gt;<br />&nbsp;&nbsp;Step in my face,&lt;br /&gt;<br />&nbsp;&nbsp;Slander my name&lt;br /&gt;<br />&nbsp;&nbsp;All over the place.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Do anything that you want to do, but uh-uh,&lt;br /&gt;<br />&nbsp;&nbsp;Honey, lay off of my shoes&lt;br /&gt;<br />&nbsp;&nbsp;Dont you step on my blue suede shoes.&lt;br /&gt;<br />&nbsp;&nbsp;You can do anything but lay off of my blue suede shoes.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;You can burn my house,&lt;br /&gt;<br />&nbsp;&nbsp;Steal my car,&lt;br /&gt;<br />&nbsp;&nbsp;Drink my liquor&lt;br /&gt;<br />&nbsp;&nbsp;From an old fruitjar.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Do anything that you want to do, but uh-uh,&lt;br /&gt;<br />&nbsp;&nbsp;Honey, lay off of my shoes&lt;br /&gt;<br />&nbsp;&nbsp;Dont you step on my blue suede shoes.&lt;br /&gt;<br />&nbsp;&nbsp;You can do anything but lay off of my blue suede shoes.&lt;/p&gt;<br />&nbsp;&lt;/div&gt;<br />&nbsp;&lt;div class=&quot;on&quot; id=&quot;houndDog&quot;&gt;<br />&nbsp;&nbsp;&lt;h2&gt;Hound Dog&lt;/h2&gt;<br />&nbsp;&nbsp;&lt;p&gt;You aint nothin but a hound dog&lt;br /&gt;<br />&nbsp;&nbsp;Cryin all the time.&lt;br /&gt;<br />&nbsp;&nbsp;You aint nothin but a hound dog&lt;br /&gt;<br />&nbsp;&nbsp;Cryin all the time.&lt;br /&gt;<br />&nbsp;&nbsp;Well, you aint never caught a rabbit&lt;br /&gt;<br />&nbsp;&nbsp;And you aint no friend of mine.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;When they said you was high classed,&lt;br /&gt;<br />&nbsp;&nbsp;Well, that was just a lie.&lt;br /&gt;<br />&nbsp;&nbsp;When they said you was high classed,&lt;br /&gt;<br />&nbsp;&nbsp;Well, that was just a lie.&lt;br /&gt;<br />&nbsp;&nbsp;You aint never caught a rabbit&lt;br /&gt;<br />&nbsp;&nbsp;And you aint no friend of mine.&lt;/p&gt;<br />&nbsp;&lt;/div&gt;<br />&nbsp;&lt;div id=&quot;dontBeCruel&quot;&gt;<br />&nbsp;&nbsp;&lt;h2&gt;Don't Be Cruel&lt;/h2&gt;<br />&nbsp;&nbsp;&lt;p&gt;You know I can be found,&lt;br /&gt;<br />&nbsp;&nbsp;Sitting home all alone,&lt;br /&gt;<br />&nbsp;&nbsp;If you cant come around,&lt;br /&gt;<br />&nbsp;&nbsp;At least please telephone.&lt;br /&gt;<br />&nbsp;&nbsp;Dont be cruel to a heart thats true.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Baby, if I made you mad&lt;br /&gt;<br />&nbsp;&nbsp;For something I might have said,&lt;br /&gt;<br />&nbsp;&nbsp;Please, lets forget the past,&lt;br /&gt;<br />&nbsp;&nbsp;The future looks bright ahead,&lt;br /&gt;<br />&nbsp;&nbsp;Dont be cruel to a heart thats true.&lt;br /&gt;<br />&nbsp;&nbsp;I dont want no other love,&lt;br /&gt;<br />&nbsp;&nbsp;Baby its just you Im thinking of.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Dont stop thinking of me,&lt;br /&gt;<br />&nbsp;&nbsp;Dont make me feel this way,&lt;br /&gt;<br />&nbsp;&nbsp;Come on over here and love me,&lt;br /&gt;<br />&nbsp;&nbsp;You know what I want you to say.&lt;br /&gt;<br />&nbsp;&nbsp;Dont be cruel to a heart thats true.&lt;br /&gt;<br />&nbsp;&nbsp;Why should we be apart?&lt;br /&gt;<br />&nbsp;&nbsp;I really love you baby, cross my heart.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Lets walk up to the preacher&lt;br /&gt;<br />&nbsp;&nbsp;And let us say I do,&lt;br /&gt;<br />&nbsp;&nbsp;Then youll know youll have me,&lt;br /&gt;<br />&nbsp;&nbsp;And Ill know that Ill have you,&lt;br /&gt;<br />&nbsp;&nbsp;Dont be cruel to a heart thats true.&lt;br /&gt;<br />&nbsp;&nbsp;I dont want no other love,&lt;br /&gt;<br />&nbsp;&nbsp;Baby its just you Im thinking of.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Dont be cruel to a heart thats true.&lt;br /&gt;<br />&nbsp;&nbsp;Dont be cruel to a heart thats true.&lt;br /&gt;<br />&nbsp;&nbsp;I dont want no other love,&lt;br /&gt;<br />&nbsp;&nbsp;Baby its just you Im thinking of.&lt;/p&gt;<br />&nbsp;&lt;/div&gt;<br />&nbsp;&lt;div id=&quot;teddyBear&quot;&gt;<br />&nbsp;&nbsp;&lt;h2&gt;Teddy Bear&lt;/h2&gt;<br />&nbsp;&nbsp;&lt;p&gt;Baby let me be,&lt;br /&gt;<br />&nbsp;&nbsp;Your lovin teddy bear&lt;br /&gt;<br />&nbsp;&nbsp;Put a chain around my neck,&lt;br /&gt;<br />&nbsp;&nbsp;And lead me anywhere&lt;br /&gt;<br />&nbsp;&nbsp;Oh let me be&lt;br /&gt;<br />&nbsp;&nbsp;Your teddy bear.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;I dont wanna be a tiger&lt;br /&gt;<br />&nbsp;&nbsp;Cause tigers play too rough&lt;br /&gt;<br />&nbsp;&nbsp;I dont wanna be a lion&lt;br /&gt;<br />&nbsp;&nbsp;cause lions aint the kind&lt;br /&gt;<br />&nbsp;&nbsp;You love enough.&lt;br /&gt;<br />&nbsp;&nbsp;Just wanna be, your teddy bear&lt;br /&gt;<br />&nbsp;&nbsp;Put a chain around my neck&lt;br /&gt;<br />&nbsp;&nbsp;And lead me anywhere&lt;br /&gt;<br />&nbsp;&nbsp;Oh let me be&lt;br /&gt;<br />&nbsp;&nbsp;Your teddy bear.&lt;/p&gt;<br />&nbsp;&nbsp;&lt;p&gt;Baby let me be, around you every night&lt;br /&gt;<br />&nbsp;&nbsp;Run your fingers through my hair,&lt;br /&gt;<br />&nbsp;&nbsp;And cuddle me real tight.&lt;/p&gt;<br />&nbsp;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=272</link>
			<title><![CDATA[用JS+css美化下拉框(sel&#101;ct)]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,23 Apr 2008 22:54:54 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=272</guid>	
		<description><![CDATA[<p>一直以来用CSS控制select都没有实现过。</p>
<p>==================================================</p>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />&lt;HTML&gt;<br />&lt;HEAD&gt;<br />&lt;TITLE&gt;搜索条&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 />*{padding:0;margin:0;color:#000;font:12px/20px Arial,Sans-serif,&quot;宋体&quot;;}<br />/*elements*/<br />.clear{clear:both;height:0px;overflow:hidden;}<br />ul,li,ol{list-style-type:none;list-style-position:outside;}<br />button,.btnNormal{height:22px;line-height:18px;padding:0 9px!important;padding:0 5px;}<br />a{color:#0042ff;text-decoration:underline;}<br />a,a *{cursor:pointer;}<br />a img{border:0;}<br />.searchTool{float:left;width:520px;}<br />.searchTool .searchExtend{float:left;line-height:24px;_padding-top:5px;}<br />.searchTool .radio{vertical-align:middle;margin-left:10px;margin-right:2px;*margin-right:0;}<br />.searchTool .txtSearch{float:left;width:232px;padding:2px 2px 0 2px;height:20px;line-height:20px;vertical-align:bottom;border:1px solid #3e99d4;}<br />.searchTool .selSearch{float:left;width:60px;background:#fff;height:22px;line-height:22px;border:1px solid #3e99d4;border-left:0;}<br />.searchTool .nowSearch{float:left;width:40px;height:20px;line-height:22px;overflow:hidden;padding-left:4px;}<br />.searchTool .btnSel{float:right;border-left:1px solid #3e99d4;width:14px;height:22px;}<br />.searchTool .btnSel a{background:url(<a href="http://static.youku.com/v1.0.0217/index/img/btn_sel.gif">http://static.youku.com/v1.0.0217/index/img/btn_sel.gif</a>) no-repeat center center;display:block;width:14px;height:22px;}<br />.searchTool .btnSel a:hover{background:url(<a href="http://static.youku.com/v1.0.0217/index/img/btn_sel_over.gif">http://static.youku.com/v1.0.0217/index/img/btn_sel_over.gif</a>) no-repeat center center;border:1px solid #fff;width:12px;height:20px;}<br />.searchTool .selOption{z-index:9999;position:absolute;margin-left:-1px;width:60px;background:#fff;border:1px solid #3e99d4;}<br />.searchTool .selOption a{display:block;height:21px;padding-left:5px;line-height:21px;color:#000;text-decoration:none;}<br />.searchTool .selOption a:hover{color:#fff;background:#95d5f1;}<br />.searchTool .btnSearch{float:left;margin-left:10px;width:58px;height:22px;line-height:22px;border:1px solid #3e99d4;overflow:hidden;}<br />.searchTool .btnSearch a{background:url(<a href="http://static.youku.com/v1.0.0217/index/img/bg_nav_option.gif">http://static.youku.com/v1.0.0217/index/img/bg_nav_option.gif</a>) repeat-x center -6px;display:block;text-decoration:none;height:22px;line-height:22px;overflow:hidden;}<br />.searchTool .btnSearch a:hover{background:url(<a href="http://static.youku.com/v1.0.0217/index/img/bg_nav_option_over.gif">http://static.youku.com/v1.0.0217/index/img/bg_nav_option_over.gif</a>) repeat-x center center;border:1px solid #fff;height:20px;line-height:20px;}<br />.searchTool .btnSearch .lbl{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);}<br />.searchTool .btnSearch a:hover .lbl{padding-top:0px;}<br />&lt;/style&gt;<br />&lt;script&gt;<br />function drop_mouseover(pos){<br />&nbsp;try{window.clearTimeout(timer);}catch(e){}<br />}<br />function drop_mouseout(pos){<br />&nbsp;var posSel=document.getElementById(pos+&quot;Sel&quot;).style.display;<br />&nbsp;if(posSel==&quot;block&quot;){<br />&nbsp;&nbsp;timer = setTimeout(&quot;drop_hide('&quot;+pos+&quot;')&quot;, 1000);<br />&nbsp;}<br />}<br />function drop_hide(pos){<br />&nbsp;document.getElementById(pos+&quot;Sel&quot;).style.display=&quot;none&quot;;<br />}<br />function search_show(pos,searchType,href){<br />&nbsp;&nbsp;&nbsp; document.getElementById(pos+&quot;SearchType&quot;).value=searchType;<br />&nbsp;&nbsp;&nbsp; document.getElementById(pos+&quot;Sel&quot;).style.display=&quot;none&quot;;<br />&nbsp;&nbsp;&nbsp; document.getElementById(pos+&quot;Slected&quot;).innerHTML=href.innerHTML;<br />&nbsp;&nbsp;&nbsp; document.getElementById(pos+'q').focus();<br />&nbsp;&nbsp;&nbsp; var sE = document.getElementById(&quot;searchExtend&quot;);<br />&nbsp;&nbsp;&nbsp; if(sE != undefined &amp;&amp; searchType == &quot;bar&quot;){<br />&nbsp;&nbsp;&nbsp; &nbsp;sE.style.display=&quot;block&quot;;<br />&nbsp;&nbsp;&nbsp; }else if(sE != undefined){<br />&nbsp;&nbsp;&nbsp; &nbsp;sE.style.display=&quot;none&quot;;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;try{window.clearTimeout(timer);}catch(e){}<br />&nbsp;return false;<br />}<br />&lt;/script&gt;<br />&lt;/HEAD&gt;<br />&lt;BODY&gt;<br />&lt;div class=&quot;searchTool&quot;&gt;<br />&lt;form method=&quot;get&quot; action=&quot;<a href="http://so.youku.com/search_playlist">http://so.youku.com/search_playlist</a>&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; type=&quot;text&quot; value=&quot;闯关东&quot; /&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;input name=&quot;searchdomain&quot; type=&quot;hidden&quot; value=&quot;<a href="http://so.youku.com">http://so.youku.com</a>&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;input id=&quot;headSearchType&quot; name=&quot;searchType&quot; type=&quot;hidden&quot; value=&quot;playlist&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('headSel').style.display=='none'){document.getElementById('headSel').style.display='block';}else {document.getElementById('headSel').style.display='none';};return false;&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;专辑&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('headSel').style.display=='none'){document.getElementById('headSel').style.display='block';}else {document.getElementById('headSel').style.display='none';};return false;&quot; onmouseout=&quot;drop_mouseout('head');&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;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show('head','video',this)&quot; onmouseover=&quot;drop_mouseover('head');&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;视频&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show('head','playlist',this)&quot; onmouseover=&quot;drop_mouseover('head');&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;专辑&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show('head','user',this)&quot; onmouseover=&quot;drop_mouseover('head');&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;会员&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show('head','bar',this)&quot; onmouseover=&quot;drop_mouseover('head');&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;看吧&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; onclick=&quot;return search_show('head','pk',this)&quot; onmouseover=&quot;drop_mouseover('head');&quot; onmouseout=&quot;drop_mouseout('head');&quot;&gt;PK擂台&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;#&quot; onclick=&quot;javascript:return dosearch(document.getElementById('headSearchForm'));&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; &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;&lt;input type=&quot;radio&quot; class=&quot;radio&quot; name=&quot;sbt&quot; value=&quot;post&quot; onclick=&quot;csbt(this,this.form.sbts);&quot; /&gt;搜贴子&lt;input type=&quot;radio&quot; name=&quot;sbt&quot; value=&quot;user&quot; onclick=&quot;csbt(this,this.form.sbts);&quot; class=&quot;radio&quot; /&gt;按作者搜&lt;input type=&quot;hidden&quot; name=&quot;sbts&quot; value=&quot;bar&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;<br />&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;&nbsp;&lt;/div&gt;<br />&nbsp;&nbsp;&nbsp;&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;<br />&nbsp;&nbsp;&lt;/div&gt;<br />&nbsp;&lt;/div&gt;<br />&lt;/BODY&gt;<br />&lt;/HTML&gt;<br /></p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=271</link>
			<title><![CDATA[在FF解决自动保存input框内容，通过回车选中]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Sun,20 Apr 2008 01:37:08 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=271</guid>	
		<description><![CDATA[<p>在FF中如果在input框中抓了回车键后，ie的自动保存，无法通过回车键完成。</p>
<p>可以通过下列的方法实现，原理，延长页面回车后的动作。</p>
<p>function key_submit(evt)<br />{<br />&nbsp;if(evt==null) evt=window.event;<br />&nbsp;if(evt.keyCode==13)&nbsp;{//捕捉回车键<br />&nbsp;&nbsp;tempUserName=document.getElementById(&rdquo;loginForm&rdquo;).fldEmail.value;<br />&nbsp;&nbsp;window.setTimeout(&rsquo;preloginSubmit()&rsquo;,100);//延迟100毫秒触发<br />&nbsp;}<br />}<br />function preloginSubmit()<br />{<br />&nbsp;if (tempUserName==document.getElementById(&rdquo;loginForm&rdquo;).fldEmail.value)<br />&nbsp;&nbsp;loginSubmit();<br />&nbsp;else<br />&nbsp;&nbsp;return;<br />}</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=270</link>
			<title><![CDATA[制作不规则导航]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,16 Apr 2008 19:35:07 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=270</guid>	
		<description><![CDATA[<p>前段时间做一个小项目碰到了一个导航制作的方式然后突然想到曾经很久以前看到的梯形状的不规则导航，就尝试做了一下。结果碰到了几个问题，后来在同事的提醒下总算完成了，记录一下也跟大家分享分享。<br /><br /><img alt="" src="http://www.linxz.cn/blog2/attachments/month_0804/q20084320718.jpg" border="0" /><br /><br />先看图（图片只是大致做了一下）<br /><img alt="" src="http://www.linxz.cn/blog2/attachments/month_0804/d200843194011.gif" border="0" /><br /><img alt="" src="http://www.linxz.cn/blog2/attachments/month_0804/s200843194022.gif" border="0" /><br /><br />xhtml结构部分内容：<br /></p>
<div class="UBBPanel">
<div class="UBBTitle"><img style="MARGIN: 0px 2px -3px 0px" alt="程序代码" src="http://www.linxz.cn/blog2/images/code.gif" /> 程序代码</div>
<div class="UBBContent">&lt;ul&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&lt;li&gt;&lt;a&nbsp;href=&quot;#&quot;&nbsp;title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;</div>
</div>
<p><br /><br />css部分内容：<br /></p>
<div class="UBBPanel">
<div class="UBBTitle"><img style="MARGIN: 0px 2px -3px 0px" alt="程序代码" src="http://www.linxz.cn/blog2/images/code.gif" /> 程序代码</div>
<div class="UBBContent">*&nbsp;{margin:0;padding:0;font:normal&nbsp;12px/25px&nbsp;&quot;宋体&quot;;}<br />body&nbsp;{background:#f8f8f8;}<br />ul&nbsp;{list-style:none;width:300px;height:25px;margin:20px&nbsp;auto;}<br />li&nbsp;{float:left;width:86px;height:25px;text-align:center;margin:0&nbsp;-5px;display:inline;}<br />a&nbsp;{color:#fff;&nbsp;float:left;width:86px;height:25px;top:0;left:0;background:url(attachments/month_0804/d200843194011.gif)&nbsp;center&nbsp;center&nbsp;no-repeat;}<br />a:hover&nbsp;{color:#000;background:url(attachments/month_0804/s200843194022.gif)&nbsp;0&nbsp;0&nbsp;no-repeat;width:86px;position:relative;}</div>
</div>
<p>===================================================</p>
<p>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>&quot;&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;<br />&lt;meta name=&quot;author&quot; content=&quot;Linxz&quot; /&gt;<br />&lt;title&gt;无标题文档&lt;/title&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br />* {margin:0;padding:0;font:normal 12px/25px &quot;宋体&quot;;}<br />body {background:#f8f8f8;}<br />ul {list-style:none;width:300px;height:25px;margin:20px auto;}<br />li {float:left;width:86px;height:25px;text-align:center;margin:0 -5px;display:inline;}<br />a {color:#fff; float:left;width:86px;height:25px;top:0;left:0;background:url(attachments/month_0804/s200843194022.gif) center center no-repeat;}<br />a:hover {color:#000;background:url(attachments/month_0804/d200843194011.gif) 0 0 no-repeat;width:86px;position:relative;}<br />&lt;/style&gt;<br />&lt;/head&gt;</p>
<p>&lt;body&gt;<br />&lt;ul&gt;<br />&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&nbsp;&lt;li&gt;&lt;a href=&quot;#&quot; title=&quot;菜单&quot;&gt;菜单&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=268</link>
			<title><![CDATA[图片和文字布局问题]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,16 Apr 2008 19:30:31 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=268</guid>	
		<description><![CDATA[<p>这两天制作页面遇如下图的问题, 整理了一下方便自己同时也希望方便了同行们&hellip;<br />备注: 根据要求,XHTML架构是固定以下的代码, 另外图片跟文字的,宽度比例是随内容而改变</p>
<p><img alt="实现左文右图板块-Gulu77" src="http://blog.gulu77.com/demo/200804/test1.jpg" /><br /><span id="more-40"></span><br />这问题一时三刻没有弄出来,通过在经<a href="http://bbs.blueidea.com/thread-2844582-1-1.html">典论坛中</a>得到了<a href="http://bbs.blueidea.com/thread-2844582-1-1.html" alt="wiseinfo #14">wiseinfo</a>帮助,给了一些提示在此非常感激!</p>
<p><strong>解决方案:</strong></p>
<p>左图右文板块<a href="http://blog.gulu77.com/demo/200804/imgfloatleft.html">http://blog.gulu77.com/demo/200804/imgfloatleft.html</a></p>
<p>左文右图板块<a href="http://blog.gulu77.com/demo/200804/imgfloatright.html">http://blog.gulu77.com/demo/200804/imgfloatright.html</a></p>
<p>针对IE的<a href="http://blog.gulu77.com/demo/200804/floattest.html">http://blog.gulu77.com/demo/200804/floattest.html</a></p>
<p><strong>问题解决思路:</strong><br />IE系列浏览器-<br />在.block内的div设置浮动后问题得以解决。(据我个人理解,IE的解析为 给同等级元素设置float后,自动赋予对象,所谓的<u title="这里指的是100%高度空间, 而不是100%高度内容">100%高度空间</u>!所以内容才会分为左右两块)</p>
<p>非IE浏览器-<br />在非IE中则没有float 100%高度空间的解析, 而我采用了<u title="经典论坛会员">wiseinfo</u>所说的用display:table-call;把.block内的div作为表格单元格显示问题得以解决</p>
<p><strong>延伸思考:</strong><br />为什么在IE中同等级元素设置float后,会占<u title="这里指的是100%高度空间, 而不是100%高度内容">100%高度空间</u>,这样的解析在<u title="指FF Opera Netscape Apple等">非IE中确没有</u>,到底谁的解析才是正确? 他们的解析机制是什么?</p>
<p><font color="#993366">注意文中所指的IE为: &nbsp;IE5.5&nbsp;/ IE6 / IE7</font>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=267</link>
			<title><![CDATA[下拉框(sel&#101;ct)遮住弹出层问题]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Mon,14 Apr 2008 22:40:06 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=267</guid>	
		<description><![CDATA[<p>在IE6下下拉框(select)会遮住弹出层，用样式办法暂时无法解决，包括z-index这个属性。</p>
<p>想了一个最变态的方法：</p>
<p>就是在层弹出的时候把下拉框给隐藏掉，用display:none属性或visable:hiddle属性;当层隐藏的时候再把下拉框给显示出来：</p>
<p>function hiddenselect()<br />{<br />&nbsp;&nbsp;&nbsp; var f = document.forms[&quot;form1&quot;];<br />&nbsp;&nbsp;&nbsp; if (f)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; for (i=0;i&lt;f.elements.length;i++)<br />&nbsp;&nbsp; {<br />&nbsp;&nbsp; if (f.elements[i].type==&quot;select-one&quot;)<br />&nbsp;&nbsp; {<br />&nbsp;&nbsp; f.elements[i].style.display=&quot;none&quot;;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />} </p>
<p>function showselect()<br />{<br />&nbsp;&nbsp;&nbsp; var f = document.forms[&quot;form1&quot;];<br />&nbsp;&nbsp;&nbsp; if (f)<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp; for (i=0;i&lt;f.elements.length;i++)<br />&nbsp;&nbsp; {<br />&nbsp;&nbsp; if (f.elements[i].type==&quot;select-one&quot;)<br />&nbsp;&nbsp; {<br />&nbsp;&nbsp; f.elements[i].style.display=&quot;&quot;;<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />&nbsp;&nbsp; }<br />} <br /></p>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=266</link>
			<title><![CDATA[按回车执行js函数]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Fri,11 Apr 2008 19:28:11 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=266</guid>	
		<description><![CDATA[<p>网页中经常会有提交表单，按回车执行登录或者注册，比较方便</p>
<p>HTML：</p>
<p>&lt;input class=&quot;btn_l&quot; type=&quot;image&quot; alt=&quot;登录&quot; src=&quot;img/login.gif&quot; onclick=&quot;login();&quot; onKeyDown=&quot;ctlent()&quot;&gt;</p>
<p>JS：</p>
<p>function ctlent(eventobject){<br />if((event.ctrlKey&amp;&amp;window.event.keyCode==13)||window.event.keyCode==13)<br />{login();return false;}<br />else{return true;}}<br />&lt;/script&gt;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=265</link>
			<title><![CDATA[用CSS美化按钮（button）]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Thu,10 Apr 2008 00:30:06 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=265</guid>	
		<description><![CDATA[<p>&nbsp;</p>
<p>演示地址：<a href="http://www.9demo.com/demo/css_button/css_button.htm"><font color="#a2ff00">http://www.9demo.com/demo/css_button/css_button.htm</font></a></p>
<p>&nbsp;</p>
<p>我们用 A 包含一个 SPAN 标签来实现此效果：</p>
<p>HTML: </p>
<p>&lt;a class=&quot;button&quot; href=&quot;#&quot;&gt;&lt;span&gt;按钮文字&lt;/span&gt;&lt;/a&gt;&nbsp; </p>
<p><br />设置按钮样式：</p>
<p>CSS: </p>
<p>&lt;style type=&quot;text/css&quot;&gt;&nbsp; a.button {&nbsp;&nbsp;&nbsp;&nbsp; background: transparent url('bg_button_a.gif') no-repeat scroll top right;&nbsp;&nbsp;&nbsp;&nbsp; color: #444;&nbsp;&nbsp;&nbsp;&nbsp; display: block;&nbsp;&nbsp;&nbsp;&nbsp; float: left;&nbsp;&nbsp;&nbsp;&nbsp; font: normal 12px arial, sans-serif;&nbsp;&nbsp;&nbsp;&nbsp; height: 24px;&nbsp;&nbsp;&nbsp;&nbsp; margin-right: 6px;&nbsp;&nbsp;&nbsp;&nbsp; padding-right: 18px; /* sliding doors padding */&nbsp;&nbsp;&nbsp;&nbsp; text-decoration: none; }&nbsp; a.button span {&nbsp;&nbsp;&nbsp;&nbsp; background: transparent url('bg_button_div.gif') no-repeat;&nbsp;&nbsp;&nbsp;&nbsp; display: block;&nbsp;&nbsp;&nbsp;&nbsp; line-height: 14px;&nbsp;&nbsp;&nbsp;&nbsp; padding: 5px 0 5px 18px; }&nbsp; &lt;/style&gt;&nbsp; </p>
<p><br />为按钮添加点击样式：</p>
<p>CSS: </p>
<p>&lt;style type=&quot;text/css&quot;&gt;&nbsp; a.button:active {&nbsp;&nbsp;&nbsp;&nbsp; background-position: bottom right;&nbsp;&nbsp;&nbsp;&nbsp; color: #000;&nbsp;&nbsp;&nbsp;&nbsp; outline: none; /* hide dotted outline in Firefox */ }&nbsp; a.button:active span {&nbsp;&nbsp;&nbsp;&nbsp; background-position: bottom left;&nbsp;&nbsp;&nbsp;&nbsp; padding: 6px 0 4px 18px; /* push text down 1px */ }&nbsp; &lt;/style&gt;&nbsp; </p>
<p><br />由于 IE 下点击后不能还原到默认状态，因此，我们需要在标签里添加一段代码：</p>
<p>HTML: &lt;a class=&quot;button&quot; href=&quot;#&quot; onclick=&quot;this.blur(); return false;&quot;&gt;&lt;span&gt;按钮文字&lt;/span&gt;&lt;/a&gt;&nbsp; </p>
<p><br />如果你需要用它提交表单（FORM），那么可以在 onclick 里面添加一个提交语句，如：document.forms['theForm'].submit();</p>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.9demo.com/default.asp?id=264</link>
			<title><![CDATA[AJAX实例合辑]]></title>
			<author>feiwen8772@hotmail.com(feiwen8772)</author>
			<category><![CDATA[前端DEMO]]></category>
			<pubDate>Wed,09 Apr 2008 23:54:56 +0800</pubDate>
			<guid>http://www.9demo.com/default.asp?id=264</guid>	
		<description><![CDATA[<li><a href="http://forge.novell.com/modules/xfmod/project/?ajallerix" target="_blank"><font color="#0000ff">Ajallerix</font></a>&nbsp;&nbsp;: AJAX, simple, fast Web image gallery demo ; at Novell </li>
<li><a href="http://www.stratulat.com/technical/ajax/a1/?article=AJAX%20-%20microlink%20pattern%20" target="_blank"><font color="#0000ff">AJAX - microlink pattern tutorial</font></a>&nbsp;&nbsp;: A microlink is a link that opens up content below it. </li>
<li><a href="http://www.nigelcrawley.co.uk/bbc/" target="_blank"><font color="#0000ff">Ajax BBC News RSS Reader</font></a> : demo by Nigel Crawley </li>
<li><a href="http://aquajax.com/" target="_blank"><font color="#0000ff">AJAX Chat in Python with Dojo</font></a> : at AquaAjax </li>
<li><a href="http://www.linuxuser.at/chess/" target="_blank"><font color="#0000ff">Ajax Chess</font></a> : multiplayer chess </li>
<li><a href="http://www.backbase.com/demos/explorer/" target="_blank"><font color="#0000ff">Ajax examples at BackBase</font></a> : examples demonstrating several aspects of the Backbase technology. </li>
<li><a href="http://openrico.org/rico/demos.page" target="_blank"><font color="#0000ff">Ajax examples at Rico</font></a> : Inner HTML, <a href="http://www.qqread.com/keys/javascript/index.html" target="_blank"><font color="#0000ff">JavaScript</font></a> updater etc. </li>
<li><a href="http://www.propeller-head.biz/demo/desktop/" target="_blank"><font color="#0000ff">Ajax examples using ColdFusionMX, SQLServer, SOAP</font></a> : Contact Manager, NOAA 7 Day Forecast code and demos. </li>
<li><a href="http://www.feedfeeds.com/feedtv" target="_blank"><font color="#0000ff">Ajax Feed TV</font></a> : News feed </li>
<li><a href="http://www.chevol.com/Blog/tabid/61/EntryID/22/Default.aspx" target="_blank"><font color="#0000ff">Ajax inline dictionary</font></a> : Highlight any text on this site then right click. A tooltip containing the definition of the selected <a href="http://www.qqread.com/keys/word/index.html" target="_blank"><font color="#0000ff">word</font></a> should show up. </li>
<li><a href="http://www.ajaxload.info/" target="_blank"><font color="#0000ff">Ajaxload</font></a> : Ajax loading gif generator. </li>
<li><a href="http://www.jamesdam.com/ajax_login/login.html" target="_blank"><font color="#0000ff">Ajax Login Demo</font></a> : Creating a secure login system using XMLHttpRequest </li>
<li><a href="http://software500.pathf.com/" target="_blank"><font color="#0000ff">Ajax Newsletter Signup</font></a> : A newsletter signup form that shows Thank You on the same page. </li>
<li><a href="http://www.vertexlogic.com/" target="_blank"><font color="#0000ff">ajaxProject</font></a> : Project Management applicaiton with rich UI </li>
<li><a href="http://www.masuga.com/thelab/ajaxrate/" target="_blank"><font color="#0000ff">Ajax Rater</font></a> : A star rating system that uses Ajax. </li>
<li><a href="http://www.robertnyman.com/2005/11/13/proudly-presenting-ajax-s/" target="_blank"><font color="#0000ff">AJAX-S</font></a> : An Ajax-based slideshow system. </li>
<li><a href="http://www.broken-notebook.com/spell_checker" target="_blank"><font color="#0000ff">AJAX Spell Checker</font></a> : spell check text / form content. </li>
<li><a href="http://ajaxtoolbox.com/" target="_blank"><font color="#0000ff">Ajax Toolbox</font></a> : Tools for the Ajax Developer </li>
<li><a href="http://lmap.co.nr/Amazon1.htm" target="_blank"><font color="#0000ff">Amazon Catalog Tree</font></a> : Amazon Catalog Tree </li>
<li><a href="http://www.francisshanahan.com/zuggest.aspx" target="_blank"><font color="#0000ff">Amazon Zuggest</font></a> : Amazon product suggestion (like <a href="http://www.qqread.com/z/google/index.html" target="_blank"><font color="#0000ff">google</font></a> suggest) </li>
<li><a href="http://www.symfony-project.com/askeet/8" target="_blank"><font color="#0000ff">Askeet by symfony</font></a> : Digg-like AJAX interactions; open source </li>
<li><a href="http://www.backbase.com/?no-loop#home/home.xml%5B0%5D" target="_blank"><font color="#0000ff">Backbase - Ajax Demos</font></a> : Ajax demos at BackBase </li>
<li><a href="http://www.clearnova.com/ajax/" target="_blank"><font color="#0000ff">Basic Ajax Examples</font></a> : Ping, track changes, drop down, Google suggest hack etc at Clearnova </li>
<li><a href="http://bennolan.com/behaviour/more.html" target="_blank"><font color="#0000ff">Behaviour</font></a> : Fading lists, Sortable lists, Dropout boxen, Shaky lists </li>
<li><a href="http://gamma.nic.fi/~jmp/chat/app.html" target="_blank"><font color="#0000ff">chat.app</font></a> : ajax chat </li>
<li><a href="http://chi.lexigame.com/" target="_blank"><font color="#0000ff">Chihuahua Word Puzzle</font></a> : daily word puzzles </li>
<li><a href="http://www.couloir.org/" target="_blank"><font color="#0000ff">Coloir</font></a> : Ajax Slideshow </li>
<li><a href="http://www.def-logic.com/games.html" target="_blank"><font color="#0000ff">DHTML arcade/action games</font></a> : a collection that demonstrate the power of DHTML </li>
<li><a href="http://www.domapi.com/index.cfm?action=examples" target="_blank"><font color="#0000ff">DomAPI</font></a> : <a href="http://www.qqread.com/keys/windows/index.html" target="_blank"><font color="#0000ff">Windows</font></a> Desktop, Outlook-like, RSS Reader </li>
<li><a href="http://www.cyberdummy.co.uk/test/cart.php" target="_blank"><font color="#0000ff">Drag and Drop Shopping Cart Demo</font></a> : at CyberDummy </li>
<li><a href="http://www.yvoschaap.com/index.php/weblog/ajax_inline_instant_update_text_20" target="_blank"><font color="#0000ff">Easy AJAX inline text edit 2.0</font></a> : edit a piece of text inline </li>
<li><a href="http://encodable.com/filechucker/" target="_blank"><font color="#0000ff">FileChucker</font></a> : File upload and progress bar at Encodable.com </li>
<li><a href="http://www.cyberdummy.co.uk/test/username-ajax.php" target="_blank"><font color="#0000ff">Gmail Style Check Username AJAX Demo</font></a> : at CyberDummy </li>
<li><a href="http://code.google.com/webtoolkit/documentation/examples/" target="_blank"><font color="#0000ff">Google Web Toolkit Example Projects</font></a> : Hello World, Dynamic Table, Desktop App Clone etc </li>
<li><a href="http://amix.dk/projects/?page_id=5#Download_-_the_" target="_blank"><font color="#0000ff">GreyBox</font></a>&nbsp;&nbsp;: Pop up window using idea of light box. </li>
<li><a href="http://www.fiftyfoureleven.com/resources/programming/xmlhttprequest/examples" target="_blank"><font color="#0000ff">FiftyFourEleven: Ajax Examples</font></a> </li>
<li><a href="http://www.abaqueinside.com/IntuiCatAjaxDemoVerif.asp" target="_blank"><font color="#0000ff">IntuiCat - ajax Catalogue</font></a> : Ajax-based Catalogue Demo </li>
<li><a href="http://www.linb.net/linb/" target="_blank"><font color="#0000ff">jsLINB programming demos</font></a> : LINB(Lazy INternet and Browser) </li>
<li><a href="http://earthcode.com/blog/2005/12/jslog.html" target="_blank"><font color="#0000ff">JSlog</font></a> : Ajax logging tool. </li>
<li><a href="http://www.masswerk.at/jsuix/jsuix_support/" target="_blank"><font color="#0000ff">JS/UIX Unix Shell</font></a> : JS/UIX is an UN*X-like OS for standard web-browsers, written entirely in JavaScript. </li>
<li><a href="http://socket7.net/lace/" target="_blank"><font color="#0000ff">Lace</font></a> : free web chat application </li>
<li><a href="http://www.huddletogether.com/projects/lightbox2/" target="_blank"><font color="#0000ff">Lightbox</font></a> : simple, unobtrusive script used to overlay images on the current page. </li>
<li><a href="http://www.eight.nl/files/leightbox/" target="_blank"><font color="#0000ff">Leightbox</font></a> : Light Box with inline div&rsquo;s instead of AJAX calls. </li>
<li><a href="http://www.ajaxtechforums.com/viewtopic.php?t=21" target="_blank"><font color="#0000ff">Live Quote Demo</font></a> : Simple way of creating an updating stock quote table in ajax. </li>
<li><a href="http://www.broken-notebook.com/magnetic" target="_blank"><font color="#0000ff">Magnetic Poetry</font></a> : drag and drop poetry </li>
<li><a href="http://metatron.rhea-silva.com/" target="_blank"><font color="#0000ff">Metatron Chat Engine</font></a> : PHP/MySQL/JavaScript powered chat engine </li>
<li><a href="http://www.monket.net/cal" target="_blank"><font color="#0000ff">Monket Calendar</font></a> : online calendar </li>
<li><a href="http://www.cyberdummy.co.uk/test/dd.php" target="_blank"><font color="#0000ff">Multi List Drag Drop Demo</font></a> : at CyberDummy </li>
<li><a href="http://www.netdirector.org/" target="_blank"><font color="#0000ff">NetDirector</font></a> : open and extensible framework for managing configurations of common open source network services. </li>
<li><a href="http://demo.neximage.com/" target="_blank"><font color="#0000ff">nexImage</font></a> : Image processing demo </li>
<li><a href="http://www.opera.com/products/mobile/platform/" target="_blank"><font color="#0000ff">Opera Platform</font></a> : Enabling AJAX applications on mobile phones </li>
<li><a href="http://www.orbeon.com/ops/goto-example/xforms-controls" target="_blank"><font color="#0000ff">Orbeon examples</font></a> : various examples illustrating the capabilities of OPS, from the OPS Tutorial examples to XForms examples </li>
<li><a href="http://www.ovosuite.com/" target="_blank"><font color="#0000ff">OVO Suite : Online Virtual Office</font></a> : virtual office limited demo </li>
<li><a href="http://www.phpfreechat.net/" target="_blank"><font color="#0000ff">phpFreeChat</font></a> : php Free Chat </li>
<li><a href="http://meyerweb.com/eric/tools/s5/" target="_blank"><font color="#0000ff">S5: A Simple Standards-Based Slide Show System</font></a> : S5 is a slide show format based entirely on XHTML, CSS, and JavaScript. </li>
<li><a href="http://mir.aculo.us/stuff/reflector/reflector.html" target="_blank"><font color="#0000ff">script.aculo.us Reflector</font></a> : image reflector script that uses uses opacity-based fades </li>
<li><a href="http://www.cyberdummy.co.uk/test/slider/" target="_blank"><font color="#0000ff">Slider Bar Demo</font></a> : at CyberDummy </li>
<li><a href="http://rockstars.homedns.org/smallestajax/index.php" target="_blank"><font color="#0000ff">SmallestAjax</font></a> : Smallest Ajax example in the world? </li>
<li><a href="http://demo.primalgrasp.com/spell/edit_text" target="_blank"><font color="#0000ff">Spell Check demo</font></a> : by Primal Grasp </li>
<li><a href="http://www.janis.or.jp/users/segabito/JavaScriptMaryo.html" target="_blank"><font color="#0000ff">Super Maryo World</font></a> : Japanese game demo </li>
<li><a href="http://demo.opennotion.com/tacos4/app" target="_blank"><font color="#0000ff">Tacos</font></a> : Tacos provides a library of useful Tapestry components. This application provides some examples to get you started. </li>
<li><a href="http://www.agavegroup.com/agWork/theList/theListWrapper.php" target="_blank"><font color="#0000ff">theList</font></a> : to-do list / bug-tracker </li>
<li><a href="http://codylindley.com/Javascript/257/thickbox-one" target="_blank"><font color="#0000ff">ThickBox</font></a> : ThickBox is a Lightbox than can show html pages as well as images. </li>
<li><a href="http://tooltip.crtx.org/" target="_blank"><font color="#0000ff">Tooltip.js</font></a> : Tooltip.js is a simple class to make it possible to add tooltips to your page. </li>
<li><a href="http://treehouse.ofb.net/chat/?lang=en" target="_blank"><font color="#0000ff">Treehouse Chat</font></a> : ajax chat </li>
<li><a href="http://tudu.sourceforge.net/" target="_blank"><font color="#0000ff">Tudu Lists</font></a> : open-source to-do lists </li>
<li><a href="http://weboggle.shackworks.com/" target="_blank"><font color="#0000ff">WeBoggle</font></a> : Ajax Boggle </li>
<li><a href="http://www.plasticshore.com/projects/chat/" target="_blank"><font color="#0000ff">XHTML live Chat</font></a> : ajax chat </li>
<li><a href="http://www.myjavaserver.com/~harikrishnag/yahoo.html" target="_blank"><font color="#0000ff">YahooSearchAsYouType</font></a> : Yahoo search as you type </li>
<li><a href="http://www.potix.com/zkdemo/userguide" target="_blank"><font color="#0000ff">ZK Demo</font></a> : demo programs for various components</li>]]></description>
		</item>
		
</channel>
</rss>