<?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前端开发</title>
	<atom:link href="http://www.caihong.cc/index.php?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.caihong.cc</link>
	<description>闪亮于WEB前端的彩虹</description>
	<lastBuildDate>Mon, 30 Aug 2010 02:24:34 +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>转一个CSS画的灰太狼,IE下属于重口味,慎看!</title>
		<link>http://www.caihong.cc/?p=150</link>
		<comments>http://www.caihong.cc/?p=150#comments</comments>
		<pubDate>Mon, 30 Aug 2010 02:23:49 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[表现]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=150</guid>
		<description><![CDATA[还有几个不错的,比如一个小日本制作的多啦A梦，一个Twitter的当机页面等等,大家可以搜下看看.不得不感叹做前端的哥们闲起来还真是可怕啊.Firefox是正常效果，Chrome下加了些简单的动画效果。 &#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;style type=&#34;text/css&#34;&#62; * { margin: 0; padding: 0; } #bigBigWolf { position: absolute; left: 50%; top: 50%; margin-left: -300px; margin-top: -300px; width: 600px; height: 600px; } #bigBigWolf div { position: absolute; } #bigBigWolf #url a { position: [...]]]></description>
			<content:encoded><![CDATA[<p>还有几个不错的,比如一个小日本制作的多啦A梦，一个Twitter的当机页面等等,大家可以搜下看看.不得不感叹做前端的哥们闲起来还真是可怕啊.Firefox是正常效果，Chrome下加了些简单的动画效果。<span id="more-150"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_mhdVID">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;我是灰太狼&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
* {
	margin: 0;
	padding: 0;
}
#bigBigWolf {
	position: absolute;
	left: 50%;
	top: 50%;
	margin-left: -300px;
	margin-top: -300px;
	width: 600px;
	height: 600px;
}
#bigBigWolf div {
	position: absolute;
}
#bigBigWolf #url a {
	position: absolute;
	left: 0;
	top: 0;
	width: 600px;
	height: 600px;
	z-index: 100;
}
#bigBigWolf .face {
	left: 127px;
	bottom: 67px;
	width: 380px;
	height: 380px;
	border: 3px solid #181818;
	background: #666B6F;
	z-index: 0;
	-webkit-border-radius: 230px 180px 300px 220px;
	-moz-border-radius: 230px 180px 300px 220px;
	transform: rotate(60deg);
	-webkit-transform: rotate(60deg);
	-moz-transform: rotate(60deg);
	-o-transform: rotate(60deg);
}
#bigBigWolf .face .left {
	left: 30px;
	top: 317px;
	width: 180px;
	height: 106px;
	border: 3px solid #181818;
	border-top: 0;
	background: #666B6F;
	z-index: 10;
	-webkit-border-bottom-left-radius: 2800px 1200px;
	-moz-border-radius-bottomleft: 2800px 1200px;
	transform: rotate(30deg);
	-webkit-transform: rotate(30deg);
	-moz-transform: rotate(30deg);
	-o-transform: rotate(30deg);
}
#bigBigWolf .face .right {
	left: 105px;
	top: -45px;
	width: 160px;
	height: 90px;
	border: 3px solid #181818;
	border-bottom: 0;
	background: #666B6F;
	z-index: 10;
	-webkit-border-top-left-radius: 2800px 2000px;
	-moz-border-radius-topleft: 2800px 2000px;
	transform: rotate(335deg);
	-webkit-transform: rotate(335deg);
	-moz-transform: rotate(335deg);
	-o-transform: rotate(335deg);
}
#bigBigWolf .face .cover1 {
	left: 160px;
	top: 415px;
	width: 28px;
	height: 40px;
	border: 3px solid #181818;
	border-bottom: 0;
	background: #FFF;
	z-index: 20;
	-webkit-border-top-left-radius: 600px 1200px;
	-webkit-border-top-right-radius: 400px 700px;
	-webkit-border-bottom-left-radius: 400px 150px;
	-webkit-border-bottom-right-radius: 400px 150px;
	-moz-border-radius-topleft: 600px 1200px;
	-moz-border-radius-topright: 400px 700px;
	-moz-border-radius-bottomleft: 400px 150px;
	-moz-border-radius-bottomright: 400px 150px;
}
#bigBigWolf .face .cover2 {
	left: 163px;
	top: 433px;
	width: 40px;
	height: 40px;
	background: #FFF;
	z-index: 30;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
}
#bigBigWolf .face .cover3 {
	left: 53px;
	top: 285px;
	width: 74px;
	height: 74px;
	background: #666B6F;
	z-index: 40;
	-webkit-border-radius: 37px;
	-moz-border-radius: 37px;
}
#bigBigWolf .face .cover4 {
	left: 227px;
	top: -80px;
	width: 25px;
	height: 40px;
	border: 3px solid #181818;
	border-bottom: 0;
	background: #FFF;
	z-index: 20;
	-webkit-border-top-left-radius: 600px 1200px;
	-webkit-border-top-right-radius: 400px 700px;
	-webkit-border-bottom-left-radius: 400px 150px;
	-webkit-border-bottom-right-radius: 400px 150px;
	-moz-border-radius-topleft: 600px 1200px;
	-moz-border-radius-topright: 400px 700px;
	-moz-border-radius-bottomleft: 400px 150px;
	-moz-border-radius-bottomright: 400px 150px;
	transform: rotate(170deg);
	-webkit-transform: rotate(170deg);
	-moz-transform: rotate(170deg);
	-o-transform: rotate(170deg);
}
#bigBigWolf .face .cover5 {
	left: 214px;
	top: -90px;
	width: 60px;
	height: 30px;
	background: #FFF;
	z-index: 40;
	transform: rotate(28deg);
	-webkit-transform: rotate(28deg);
	-moz-transform: rotate(28deg);
	-o-transform: rotate(28deg);
}
#bigBigWolf .ear {
	z-index: 0;
}
#bigBigWolf .ear .left {
	left: 48px;
	top: 167px;
	width: 180px;
	height: 120px;
	border: 3px solid #181818;
	border-right: 0;
	background: #666B6F;
	z-index: 0;
	-webkit-border-top-left-radius: 295px 200px;
	-moz-border-radius-topleft: 295px 200px;
	transform: rotate(51deg);
	-webkit-transform: rotate(51deg);
	-moz-transform: rotate(51deg);
	-o-transform: rotate(51deg);
}
#bigBigWolf .ear .left .inner {
	left: -3px;
	top: 88px;
	width: 180px;
	height: 30px;
	border: 3px solid #181818;
	border-right: 0;
	background: #96979C;
	z-index: 10;
	-webkit-border-top-left-radius: 1000px 200px;
	-moz-border-radius-topleft: 1000px 200px;
}
#bigBigWolf .ear .left .cover1 {
	left: 83px;
	top: 30px;
	width: 132px;
	height: 65px;
	background: #666B6F;
	z-index: 20;
	-webkit-border-bottom-right-radius: 1200px 200px;
	-moz-border-radius-bottomright: 1200px 200px;
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
}
#bigBigWolf .ear .left .cover2 {
	left: 111px;
	top: 91px;
	width: 12px;
	height: 8px;
	border: 3px solid #181818;
	border-right: 0;
	background: #666B6F;
	z-index: 30;
	-webkit-border-top-left-radius: 30px 20px;
	-moz-border-radius-topleft: 30px 20px;
	transform: rotate(345deg);
	-webkit-transform: rotate(345deg);
	-moz-transform: rotate(345deg);
	-o-transform: rotate(345deg);
}
#bigBigWolf .ear .left .cover3 {
	left: 114px;
	top: 104px;
	width: 12px;
	height: 6px;
	border: 3px solid #181818;
	border-right: 0;
	background: #666B6F;
	z-index: 30;
	-webkit-border-top-left-radius: 30px 20px;
	-moz-border-radius-topleft: 30px 20px;
	transform: rotate(325deg);
	-webkit-transform: rotate(325deg);
	-moz-transform: rotate(325deg);
	-o-transform: rotate(325deg);
}
#bigBigWolf .ear .left .cover4 {
	left: 123px;
	top: 113px;
	width: 11px;
	height: 4px;
	border: 3px solid #181818;
	border-right: 0;
	border-top: 0;
	background: #666B6F;
	z-index: 30;
	-webkit-border-bottom-left-radius: 30px 20px;
	-moz-border-radius-bottomleft: 30px 20px;
	transform: rotate(62deg);
	-webkit-transform: rotate(62deg);
	-moz-transform: rotate(62deg);
	-o-transform: rotate(62deg);
}
#bigBigWolf .ear .right {
	left: 340px;
	top: 78px;
	width: 140px;
	height: 100px;
	border: 3px solid #181818;
	border-left: 0;
	background: #666B6F;
	z-index: 10;
	-webkit-border-top-right-radius: 245px 190px;
	-moz-border-radius-topright: 245px 190px;
	transform: rotate(275deg);
	-webkit-transform: rotate(275deg);
	-moz-transform: rotate(275deg);
	-o-transform: rotate(275deg);
}
#bigBigWolf .ear .right .inner {
	left: -1px;
	top: 68px;
	width: 140px;
	height: 30px;
	border: 3px solid #181818;
	border-left: 0;
	background: #96979C;
	z-index: 10;
	-webkit-border-top-right-radius: 1200px 300px;
	-moz-border-radius-topright: 1200px 300px;
}
#bigBigWolf .ear .right .cover1 {
	left: -49px;
	top: 25px;
	width: 120px;
	height: 40px;
	border: 3px solid #181818;
	border-bottom: 0;
	background: #666B6F;
	z-index: 20;
	-webkit-border-top-right-radius: 1200px 300px;
	-moz-border-radius-topright: 1200px 300px;
	transform: rotate(101deg);
	-webkit-transform: rotate(101deg);
	-moz-transform: rotate(101deg);
	-o-transform: rotate(101deg);
}
#bigBigWolf .ear .right .cover2 {
	left: -135px;
	top: 117px;
	width: 145px;
	height: 40px;
	border: 3px solid #181818;
	border-bottom: 0;
	background: #666B6F;
	z-index: 30;
	-webkit-border-top-right-radius: 1100px 300px;
	-moz-border-radius-topright: 1100px 300px;
	transform: rotate(133deg);
	-webkit-transform: rotate(133deg);
	-moz-transform: rotate(133deg);
	-o-transform: rotate(133deg);
}
#bigBigWolf .ear .right .cover3 {
	left: -85px;
	top: 15px;
	width: 80px;
	height: 80px;
	background: #666B6F;
	z-index: 40;
}
#bigBigWolf .ear .right .cover4 {
	left: -142px;
	top: 144px;
	width: 40px;
	height: 40px;
	background: #666B6F;
	z-index: 50;
	-webkit-border-radius: 20px;
	-moz-border-radius: 20px;
}
#bigBigWolf .ear .right .cover5 {
	left: 32px;
	top: 87px;
	width: 30px;
	height: 30px;
	border: 3px solid #181818;
	border-bottom: 0;
	border-left: 0;
	background: #FFF;
	z-index: 50;
	-webkit-border-radius: 30px;
	-moz-border-radius: 30px;
	transform: rotate(313deg);
	-webkit-transform: rotate(313deg);
	-moz-transform: rotate(313deg);
	-o-transform: rotate(313deg);
}
#bigBigWolf .hat {
	left: 137px;
	top: 115px;
	width: 238px;
	height: 100px;
	border: 3px solid #181818;
	background: #E09E86;
	z-index: 40;
	-webkit-border-top-left-radius: 2000px 1000px;
	-webkit-border-top-right-radius: 700px 700px;
	-webkit-border-bottom-left-radius: 300px 200px;
	-webkit-border-bottom-right-radius: 450px 450px;
	-moz-border-radius-topleft: 2000px 1000px;
	-moz-border-radius-topright: 700px 700px;
	-moz-border-radius-bottomleft: 300px 200px;
	-moz-border-radius-bottomright: 450px 450px;
	transform: rotate(338deg);
	-webkit-transform: rotate(338deg);
	-moz-transform: rotate(338deg);
	-o-transform: rotate(338deg);
}
#bigBigWolf .hat .inner {
	right: -1px;
	top: 1px;
	width: 238px;
	height: 80px;
	border: 3px solid #181818;
	background: #CF6A36;
	z-index: 0;
	-webkit-border-top-left-radius: 2400px 1200px;
	-webkit-border-top-right-radius: 800px 800px;
	-webkit-border-bottom-left-radius: 400px 200px;
	-webkit-border-bottom-right-radius: 450px 450px;
	-moz-border-radius-topleft: 2400px 1200px;
	-moz-border-radius-topright: 800px 800px;
	-moz-border-radius-bottomleft: 400px 200px;
	-moz-border-radius-bottomright: 450px 450px;
	transform: rotate(357deg);
	-webkit-transform: rotate(357deg);
	-moz-transform: rotate(357deg);
	-o-transform: rotate(357deg);
}
#bigBigWolf .hat .patch {
	right: -3px;
	top: -7px;
	width: 110px;
	height: 50px;
	border: 3px solid #181818;
	background: #EFC978;
	z-index: 10;
	-webkit-border-top-left-radius: 500px 300px;
	-webkit-border-top-right-radius: 300px 200px;
	-webkit-border-bottom-left-radius: 100px 100px;
	-webkit-border-bottom-right-radius: 100px 100px;
	-moz-border-radius-topleft: 500px 300px;
	-moz-border-radius-topright: 300px 200px;
	-moz-border-radius-bottomleft: 100px 100px;
	-moz-border-radius-bottomright: 100px 100px;
	transform: rotate(20deg);
	-webkit-transform: rotate(20deg);
	-moz-transform: rotate(20deg);
	-o-transform: rotate(20deg);
}
#bigBigWolf .hat .patch .line1, #bigBigWolf .hat .patch .line2, #bigBigWolf .hat .patch .line3, #bigBigWolf .hat .patch .line4, #bigBigWolf .hat .patch .line5, #bigBigWolf .hat .patch .line6, #bigBigWolf .hat .patch .line7, #bigBigWolf .hat .patch .line8, #bigBigWolf .hat .patch .line9, #bigBigWolf .hat .patch .line10 {
	left: -7px;
	top: 30px;
	width: 18px;
	height: 2px;
	font-size: 0;
	background: #181818;
	z-index: 20px;
	transform: rotate(350deg);
	-webkit-transform: rotate(350deg);
	-moz-transform: rotate(350deg);
	-o-transform: rotate(350deg);
}
#bigBigWolf .hat .patch .line2 {
	left: -13px;
	top: 42px;
	width: 20px;
	transform: rotate(340deg);
	-webkit-transform: rotate(340deg);
	-moz-transform: rotate(340deg);
	-o-transform: rotate(340deg);
}
#bigBigWolf .hat .patch .line3 {
	left: 5px;
	top: 50px;
	width: 17px;
	transform: rotate(300deg);
	-webkit-transform: rotate(300deg);
	-moz-transform: rotate(300deg);
	-o-transform: rotate(300deg);
}
#bigBigWolf .hat .patch .line4 {
	left: 20px;
	top: 53px;
	width: 17px;
	transform: rotate(270deg);
	-webkit-transform: rotate(270deg);
	-moz-transform: rotate(270deg);
	-o-transform: rotate(270deg);
}
#bigBigWolf .hat .patch .line5 {
	left: 35px;
	top: 50px;
	width: 14px;
	transform: rotate(290deg);
	-webkit-transform: rotate(290deg);
	-moz-transform: rotate(290deg);
	-o-transform: rotate(290deg);
}
#bigBigWolf .hat .patch .line6 {
	left: 50px;
	top: 52px;
	width: 19px;
	transform: rotate(275deg);
	-webkit-transform: rotate(275deg);
	-moz-transform: rotate(275deg);
	-o-transform: rotate(275deg);
}
#bigBigWolf .hat .patch .line7 {
	left: 70px;
	top: 50px;
	width: 15px;
	transform: rotate(290deg);
	-webkit-transform: rotate(260deg);
	-moz-transform: rotate(260deg);
	-o-transform: rotate(260deg);
}
#bigBigWolf .hat .patch .line8 {
	left: 85px;
	top: 51px;
	width: 19px;
	transform: rotate(250deg);
	-webkit-transform: rotate(250deg);
	-moz-transform: rotate(250deg);
	-o-transform: rotate(250deg);
}
#bigBigWolf .hat .patch .line9 {
	left: 102px;
	top: 45px;
	width: 13px;
	transform: rotate(230deg);
	-webkit-transform: rotate(230deg);
	-moz-transform: rotate(230deg);
	-o-transform: rotate(230deg);
}
#bigBigWolf .hat .patch .line10 {
	left: 106px;
	top: 34px;
	width: 12px;
	transform: rotate(220deg);
	-webkit-transform: rotate(220deg);
	-moz-transform: rotate(220deg);
	-o-transform: rotate(220deg);
}
#bigBigWolf .eye {
	left: 213px;
	top: 221px;
	width: 287px;
	height: 185px;
	z-index: 20;
}
#bigBigWolf .eye .left, #bigBigWolf .eye .right {
	width: 121px;
	height: 121px;
	border: 3px solid #181818;
	background: #DBDBDB;
	z-index: 0;
	-webkit-border-radius: 61px;
	-moz-border-radius: 61px;
}
#bigBigWolf .eye .left {
	left: 0;
	bottom: 0;
}
#bigBigWolf .eye .right {
	right: 0;
	top: 0;
}
#bigBigWolf .eye .inner {
	left: 2px;
	top: 2px;
	width: 114px;
	height: 114px;
	background: #FFF;
	z-index: 10;
	-webkit-border-radius: 57px;
	-moz-border-radius: 57px;
}
#bigBigWolf .eye .pupil {
	left: 8px;
	top: 26px;
	width: 54px;
	height: 54px;
	border: 2px solid #181818;
	z-index: 20;
	-webkit-border-radius: 27px;
	-moz-border-radius: 27px;
	background: #404972;
	background: -webkit-gradient(linear, 43% 0%, 39% 100%, from(#181818), to(#455289), color-stop(1.0, #455289));
	background: -moz-linear-gradient(50% 25% 260deg, #181818, #455289, #455289 100%);
	-webkit-animation: 'pupil' 2s linear;
	-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes pupil {
 	0% {
		left: 8px;
		top: 26px;
	}
 	25% {
		left: 29px;
		top: 33px;
	}
 	50% {
		left: 50px;
		top: 40px;
	}
 	75% {
		left: 29px;
		top: 33px;
	}
 	100% {
		left: 8px;
		top: 26px;
	}
}
#bigBigWolf .eye .pupil .inner {
	left: 9px;
	top: 9px;
	width: 36px;
	height: 36px;
	background: #1A1A1A;
	z-index: 30;
	-webkit-border-radius: 18px;
	-moz-border-radius: 18px;
}
#bigBigWolf .eye .light1 {
	left: 21px;
	bottom: 3px;
	width: 16px;
	height: 16px;
	background: #FFF;
	z-index: 40;
	-webkit-border-radius: 15px 7px 10px 10px;
	-moz-border-radius: 20px 7px 20px 10px;
	transform: rotate(320deg);
	-webkit-transform: rotate(320deg);
	-moz-transform: rotate(320deg);
	-o-transform: rotate(320deg);
}
#bigBigWolf .eye .light2 {
	left: 7px;
	bottom: 11px;
	width: 14px;
	height: 6px;
	background: #FFF;
	z-index: 40;
	-webkit-border-top-left-radius: 500px 300px;
	-webkit-border-top-right-radius: 300px 200px;
	-webkit-border-bottom-left-radius: 100px 100px;
	-webkit-border-bottom-right-radius: 100px 100px;
	-moz-border-radius-topleft: 20px 20px;
	-moz-border-radius-topright: 30px 20px;
	-moz-border-radius-bottomleft: 5px 5px;
	-moz-border-radius-bottomright: 5px 5px;
	transform: rotate(285deg);
	-webkit-transform: rotate(285deg);
	-moz-transform: rotate(285deg);
	-o-transform: rotate(285deg);
}
#bigBigWolf .eye .light3 {
	right: 2px;
	top: 4px;
	width: 30px;
	height: 13px;
	background: #FFF;
	z-index: 40;
	-webkit-border-top-left-radius: 40px 40px;
	-webkit-border-top-right-radius: 100px 50px;
	-webkit-border-bottom-left-radius: 15px 15px;
	-webkit-border-bottom-right-radius: 15px 15px;
	-moz-border-radius-topleft: 40px 40px;
	-moz-border-radius-topright: 100px 50px;
	-moz-border-radius-bottomleft: 15px 15px;
	-moz-border-radius-bottomright: 15px 15px;
	transform: rotate(20deg);
	-webkit-transform: rotate(20deg);
	-moz-transform: rotate(20deg);
	-o-transform: rotate(20deg);
}
#bigBigWolf .eyebrow {
	left: 187px;
	top: 173px;
	width: 280px;
	height: 130px;
	z-index: 70;
}
#bigBigWolf .eyebrow .left {
	left: 0;
	top: 48px;
	width: 110px;
	height: 40px;
	background: #181818;
	z-index: 0;
	-webkit-border-top-left-radius: 400px 200px;
	-webkit-border-top-right-radius: 400px 200px;
	-moz-border-radius-topleft: 400px 200px;
	-moz-border-radius-topright: 400px 200px;
	transform: rotate(330deg);
	-webkit-transform: rotate(330deg);
	-moz-transform: rotate(330deg);
	-o-transform: rotate(330deg);
}
#bigBigWolf .eyebrow .left .inner {
	left: 0;
	top: 20px;
	width: 120px;
	height: 30px;
	background: #666B6F;
	z-index: 0;
	-webkit-border-top-left-radius: 400px 200px;
	-webkit-border-top-right-radius: 400px 200px;
	-moz-border-radius-topleft: 400px 200px;
	-moz-border-radius-topright: 400px 200px;
}
#bigBigWolf .eyebrow .left .eyebrow1, #bigBigWolf .eyebrow .left .eyebrow2, #bigBigWolf .eyebrow .right .eyebrow1 {
	left: -22px;
	top: 36px;
	width: 22px;
	height: 2px;
	font-size: 0;
	background: #181818;
	z-index: 10px;
	transform: rotate(86deg);
	-webkit-transform: rotate(86deg);
	-moz-transform: rotate(86deg);
	-o-transform: rotate(86deg);
}
#bigBigWolf .eyebrow .left .eyebrow2 {
	left: -15px;
	top: 32px;
	width: 20px;
}
#bigBigWolf .eyebrow .right .eyebrow1 {
	left: 93px;
	top: 24px;
	width: 20px;
}
#bigBigWolf .eyebrow .right {
	right: 17px;
	top: -3px;
	width: 100px;
	height: 40px;
	background: #181818;
	z-index: 0;
	-webkit-border-top-left-radius: 400px 200px;
	-webkit-border-top-right-radius: 400px 200px;
	-moz-border-radius-topleft: 400px 200px;
	-moz-border-radius-topright: 400px 200px;
	transform: rotate(355deg);
	-webkit-transform: rotate(355deg);
	-moz-transform: rotate(355deg);
	-o-transform: rotate(355deg);
}
#bigBigWolf .eyebrow .right .inner {
	right: -7px;
	top: 20px;
	width: 120px;
	height: 30px;
	background: #666B6F;
	z-index: 0;
	-webkit-border-top-left-radius: 400px 200px;
	-webkit-border-top-right-radius: 400px 200px;
	-moz-border-radius-topleft: 400px 200px;
	-moz-border-radius-topright: 400px 200px;
}
#bigBigWolf .nose {
	right: 158px;
	bottom: 203px;
	width: 74px;
	height: 74px;
	z-index: 30;
	background: #4B4B4B;
	-webkit-border-radius: 160px 40px 160px 40px;
	-moz-border-radius: 160px 30px 160px 40px;
	transform: rotate(25deg);
	-webkit-transform: rotate(25deg);
	-moz-transform: rotate(25deg);
	-o-transform: rotate(25deg);
}
#bigBigWolf .nose .outer {
	right: 1px;
	top: -2px;
	width: 72px;
	height: 72px;
	z-index: 0;
	background: #181818;
	-webkit-border-radius: 150px 40px 150px 40px;
	-moz-border-radius: 150px 40px 150px 40px;
	transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-o-transform: rotate(2deg);
}
#bigBigWolf .nose .inner {
	right: 18px;
	top: 13px;
	width: 24px;
	height: 24px;
	z-index: 10;
	background: #4F4F4F;
	-webkit-border-radius: 150px 50px 150px 50px;
	-moz-border-radius: 150px 50px 150px 50px;
	transform: rotate(0deg);
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-o-transform: rotate(0deg);
}
#bigBigWolf .nose .light {
	right: 16px;
	top: 3px;
	width: 20px;
	height: 20px;
	z-index: 20;
	background: #FFF;
	-webkit-border-radius: 150px 70px 150px 70px;
	-moz-border-radius: 150px 70px 150px 70px;
	transform: rotate(3deg);
	-webkit-transform: rotate(3deg);
	-moz-transform: rotate(3deg);
	-o-transform: rotate(3deg);
}
#bigBigWolf .mouth {
	right: 62px;
	bottom: 108px;
	width: 290px;
	height: 60px;
	border: 3px solid #181818;
	background: #FFF;
	z-index: 50;
	-webkit-border-top-left-radius: 700px 0;
	-webkit-border-top-right-radius: 700px 0;
	-webkit-border-bottom-left-radius: 2800px 1200px;
	-webkit-border-bottom-right-radius: 2800px 1200px;
	-moz-border-radius-topleft: 700px 0;
	-moz-border-radius-topright: 700px 0;
	-moz-border-radius-bottomleft: 2800px 1200px;
	-moz-border-radius-bottomright: 2800px 1200px;
	transform: rotate(341deg);
	-webkit-transform: rotate(341deg);
	-moz-transform: rotate(341deg);
	-o-transform: rotate(341deg);
}
#bigBigWolf .mouth .inner {
	right: -3px;
	bottom: 41px;
	width: 289px;
	height: 20px;
	border: 3px solid #181818;
	border-top: 0;
	background: #666B6F;
	z-index: 0;
	-webkit-border-top-left-radius: 700px 0;
	-webkit-border-top-right-radius: 700px 0;
	-webkit-border-bottom-left-radius: 7800px 1500px;
	-webkit-border-bottom-right-radius: 7800px 1500px;
	-moz-border-radius-topleft: 700px 0;
	-moz-border-radius-topright: 700px 0;
	-moz-border-radius-bottomleft: 7800px 1500px;
	-moz-border-radius-bottomright: 7800px 1500px;
}
#bigBigWolf .tooth1, #bigBigWolf .tooth2, #bigBigWolf .tooth3, #bigBigWolf .tooth4, #bigBigWolf .tooth5, #bigBigWolf .tooth6, #bigBigWolf .tooth7, #bigBigWolf .tooth8, #bigBigWolf .tooth9, #bigBigWolf .tooth10, #bigBigWolf .tooth11, #bigBigWolf .tooth12, #bigBigWolf .tooth13, #bigBigWolf .tooth14, #bigBigWolf .tooth15, #bigBigWolf .tooth16, #bigBigWolf .tooth17, #bigBigWolf .tooth18, #bigBigWolf .tooth19, #bigBigWolf .tooth20, #bigBigWolf .tooth121, #bigBigWolf .tooth122, #bigBigWolf .tooth123 {
	left: -1px;
	top: 18px;
	width: 20px;
	height: 2px;
	font-size: 0;
	background: #181818;
	z-index: 60px;
	transform: rotate(26deg);
	-webkit-transform: rotate(26deg);
	-moz-transform: rotate(26deg);
	-o-transform: rotate(26deg);
}
#bigBigWolf .tooth2 {
	left: 13px;
	top: 12px;
	width: 22px;
	transform: rotate(125deg);
	-webkit-transform: rotate(125deg);
	-moz-transform: rotate(122deg);
	-o-transform: rotate(125deg);
}
#bigBigWolf .tooth3 {
	left: 18px;
	top: 17px;
	width: 30px;
	transform: rotate(76deg);
	-webkit-transform: rotate(76deg);
	-moz-transform: rotate(76deg);
	-o-transform: rotate(76deg);
}
#bigBigWolf .tooth4 {
	left: 36px;
	top: 26px;
	width: 9px;
	transform: rotate(340deg);
	-webkit-transform: rotate(340deg);
	-moz-transform: rotate(340deg);
	-o-transform: rotate(340deg);
}
#bigBigWolf .tooth5 {
	left: 40px;
	top: 30px;
	width: 12px;
	transform: rotate(70deg);
	-webkit-transform: rotate(70deg);
	-moz-transform: rotate(70deg);
	-o-transform: rotate(70deg);
}
#bigBigWolf .tooth6 {
	left: 46px;
	top: 35px;
	width: 14px;
	transform: rotate(12deg);
	-webkit-transform: rotate(12deg);
	-moz-transform: rotate(12deg);
	-o-transform: rotate(12deg);
}
#bigBigWolf .tooth7 {
	left: 58px;
	top: 37px;
	width: 24px;
	transform: rotate(12deg);
	-webkit-transform: rotate(12deg);
	-moz-transform: rotate(12deg);
	-o-transform: rotate(12deg);
}
#bigBigWolf .tooth8, #bigBigWolf .tooth10 {
	left: 21px;
	top: 16px;
	width: 20px;
	height: 1px;
	background: #FFF;
	transform: rotate(76deg);
	-webkit-transform: rotate(76deg);
	-moz-transform: rotate(76deg);
	-o-transform: rotate(76deg);
}
#bigBigWolf .tooth9, #bigBigWolf .tooth11, #bigBigWolf .tooth12 {
	left: 14px;
	top: 15px;
	width: 20px;
	height: 1px;
	background: #FFF;
	transform: rotate(122deg);
	-webkit-transform: rotate(122deg);
	-moz-transform: rotate(122deg);
	-o-transform: rotate(122deg);
}
#bigBigWolf .tooth10 {
	left: 21px;
	top: 18px;
	height: 2px;
}
#bigBigWolf .tooth11 {
	left: 14px;
	top: 20px;
	height: 3px;
}
#bigBigWolf .tooth12 {
	left: 13px;
	top: 18px;
	height: 2px;
}
#bigBigWolf .tooth13 {
	left: 270px;
	top: 17px;
	width: 18px;
	transform: rotate(335deg);
	-webkit-transform: rotate(335deg);
	-moz-transform: rotate(335deg);
	-o-transform: rotate(335deg);
}
#bigBigWolf .tooth14 {
	left: 254px;
	top: 11px;
	width: 22px;
	transform: rotate(55deg);
	-webkit-transform: rotate(55deg);
	-moz-transform: rotate(55deg);
	-o-transform: rotate(55deg);
}
#bigBigWolf .tooth15 {
	left: 242px;
	top: 16px;
	width: 29px;
	transform: rotate(100deg);
	-webkit-transform: rotate(100deg);
	-moz-transform: rotate(100deg);
	-o-transform: rotate(100deg);
}
#bigBigWolf .tooth16 {
	left: 243px;
	top: 25px;
	width: 13px;
	transform: rotate(20deg);
	-webkit-transform: rotate(20deg);
	-moz-transform: rotate(20deg);
	-o-transform: rotate(20deg);
}
#bigBigWolf .tooth17 {
	left: 237px;
	top: 29px;
	width: 11px;
	transform: rotate(100deg);
	-webkit-transform: rotate(100deg);
	-moz-transform: rotate(100deg);
	-o-transform: rotate(100deg);
}
#bigBigWolf .tooth18 {
	left: 219px;
	top: 36px;
	width: 24px;
	transform: rotate(165deg);
	-webkit-transform: rotate(165deg);
	-moz-transform: rotate(165deg);
	-o-transform: rotate(165deg);
}
#bigBigWolf .tooth19, #bigBigWolf .tooth21, #bigBigWolf .tooth23 {
	left: 255px;
	top: 15px;
	width: 22px;
	height: 1px;
	background: #FFF;
	transform: rotate(55deg);
	-webkit-transform: rotate(55deg);
	-moz-transform: rotate(55deg);
	-o-transform: rotate(55deg);
}
#bigBigWolf .tooth20, #bigBigWolf .tooth22 {
	left: 247px;
	top: 17px;
	width: 22px;
	height: 1px;
	background: #FFF;
	transform: rotate(100deg);
	-webkit-transform: rotate(100deg);
	-moz-transform: rotate(100deg);
	-o-transform: rotate(100deg);
}
#bigBigWolf .tooth21 {
	left: 255px;
	top: 16px;
	height: 2px;
}
#bigBigWolf .tooth22 {
	left: 248px;
	top: 19px;
	height: 4px;
}
#bigBigWolf .tooth23 {
	left: 255px;
	top: 19px;
	height: 2px;
}
#bigBigWolf .beard {
	left: 190px;
	bottom: 50px;
	width: 370px;
	height: 200px;
	z-index: 80;
}
#bigBigWolf .beard1, #bigBigWolf .beard2, #bigBigWolf .beard3, #bigBigWolf .beard4, #bigBigWolf .beard5, #bigBigWolf .beard6, #bigBigWolf .beard7, #bigBigWolf .beard8, #bigBigWolf .beard9, #bigBigWolf .beard10, #bigBigWolf .beard11, #bigBigWolf .beard12 {
	right: -1px;
	top: 32px;
	width: 40px;
	height: 2px;
	font-size: 0;
	background: #181818;
	z-index: 0;
	transform: rotate(3deg);
	-webkit-transform: rotate(3deg);
	-moz-transform: rotate(3deg);
	-o-transform: rotate(3deg);
}
#bigBigWolf .beard2 {
	right: 23px;
	top: 68px;
	width: 24px;
	transform: rotate(355deg);
	-webkit-transform: rotate(355deg);
	-moz-transform: rotate(355deg);
	-o-transform: rotate(355deg);
}
#bigBigWolf .beard3 {
	right: 34px;
	top: 90px;
	width: 22px;
	transform: rotate(30deg);
	-webkit-transform: rotate(30deg);
	-moz-transform: rotate(30deg);
	-o-transform: rotate(30deg);
}
#bigBigWolf .beard4 {
	right: 54px;
	top: 120px;
	width: 28px;
	transform: rotate(50deg);
	-webkit-transform: rotate(50deg);
	-moz-transform: rotate(50deg);
	-o-transform: rotate(50deg);
}
#bigBigWolf .beard5 {
	right: 89px;
	top: 132px;
	width: 22px;
	transform: rotate(60deg);
	-webkit-transform: rotate(60deg);
	-moz-transform: rotate(60deg);
	-o-transform: rotate(60deg);
}
#bigBigWolf .beard6 {
	right: 115px;
	top: 148px;
	width: 16px;
	transform: rotate(70deg);
	-webkit-transform: rotate(70deg);
	-moz-transform: rotate(70deg);
	-o-transform: rotate(70deg);
}
#bigBigWolf .beard7 {
	right: 145px;
	top: 162px;
	width: 24px;
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
}
#bigBigWolf .beard8 {
	right: 175px;
	top: 166px;
	width: 16px;
	transform: rotate(110deg);
	-webkit-transform: rotate(110deg);
	-moz-transform: rotate(110deg);
	-o-transform: rotate(110deg);
}
#bigBigWolf .beard9 {
	right: 210px;
	top: 173px;
	width: 22px;
	transform: rotate(60deg);
	-webkit-transform: rotate(60deg);
	-moz-transform: rotate(60deg);
	-o-transform: rotate(60deg);
}
#bigBigWolf .beard10 {
	right: 245px;
	top: 173px;
	width: 14px;
	transform: rotate(130deg);
	-webkit-transform: rotate(130deg);
	-moz-transform: rotate(130deg);
	-o-transform: rotate(130deg);
}
#bigBigWolf .beard11 {
	right: 275px;
	top: 168px;
	width: 20px;
	transform: rotate(120deg);
	-webkit-transform: rotate(120deg);
	-moz-transform: rotate(120deg);
	-o-transform: rotate(120deg);
}
#bigBigWolf .beard12 {
	right: 300px;
	top: 156px;
	width: 16px;
	transform: rotate(140deg);
	-webkit-transform: rotate(140deg);
	-moz-transform: rotate(140deg);
	-o-transform: rotate(140deg);
}
#bigBigWolf .scar, #bigBigWolf .scar1, #bigBigWolf .scar2, #bigBigWolf .scar3, #bigBigWolf .scar4, #bigBigWolf .scar5 {
	left: 142px;
	bottom: 154px;
	width: 120px;
	height: 2px;
	font-size: 0;
	background: #181818;
	z-index: 60px;
	transform: rotate(43deg);
	-webkit-transform: rotate(43deg);
	-moz-transform: rotate(43deg);
	-o-transform: rotate(43deg);
}
#bigBigWolf .scar1 {
	left: -2px;
	top: -5px;
	width: 25px;
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
}
#bigBigWolf .scar2 {
	left: 20px;
	top: 2px;
	width: 29px;
	transform: rotate(80deg);
	-webkit-transform: rotate(80deg);
	-moz-transform: rotate(80deg);
	-o-transform: rotate(80deg);
}
#bigBigWolf .scar3 {
	left: 50px;
	top: -2px;
	width: 29px;
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
}
#bigBigWolf .scar4 {
	left: 74px;
	top: -4px;
	width: 22px;
	transform: rotate(92deg);
	-webkit-transform: rotate(92deg);
	-moz-transform: rotate(92deg);
	-o-transform: rotate(92deg);
}
#bigBigWolf .scar5 {
	left: 95px;
	top: -2px;
	width: 25px;
	transform: rotate(90deg);
	-webkit-transform: rotate(90deg);
	-moz-transform: rotate(90deg);
	-o-transform: rotate(90deg);
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;bigBigWolf&quot;&gt;
&lt;div id=&quot;url&quot;&gt;&lt;a href=&quot;http://www.imilo.net&quot;&gt;&lt;/a&gt;&lt;/div&gt;
  &lt;div class=&quot;face&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;cover1&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;cover2&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;cover3&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;cover4&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;cover5&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;ear&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover1&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover2&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover3&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover4&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover5&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover1&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover2&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover3&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover4&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;cover5&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;eye&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;
        &lt;div class=&quot;pupil&quot;&gt;
          &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light1&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light2&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light3&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;
        &lt;div class=&quot;pupil&quot;&gt;
          &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light1&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light2&quot;&gt;&lt;/div&gt;
          &lt;div class=&quot;light3&quot;&gt;&lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;eyebrow&quot;&gt;
    &lt;div class=&quot;left&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;eyebrow1&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;eyebrow2&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;right&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;eyebrow1&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;nose&quot;&gt;
    &lt;div class=&quot;outer&quot;&gt;
      &lt;div class=&quot;inner&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;light&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;mouth&quot;&gt;
    &lt;div class=&quot;inner&quot;&gt;
      &lt;div class=&quot;tooth1&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth2&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth3&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth4&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth5&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth6&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth7&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth8&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth9&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth10&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth11&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth12&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth13&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth14&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth15&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth16&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth17&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth18&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth19&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth20&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth21&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth22&quot;&gt;&lt;/div&gt;
      &lt;div class=&quot;tooth23&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;beard&quot;&gt;
    &lt;div class=&quot;beard1&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard2&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard3&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard4&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard5&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard6&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard7&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard8&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard9&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard10&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard11&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;beard12&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;scar&quot;&gt;
    &lt;div class=&quot;scar1&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;scar2&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;scar3&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;scar4&quot;&gt;&lt;/div&gt;
    &lt;div class=&quot;scar5&quot;&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&quot;hat&quot;&gt;
    &lt;div class=&quot;inner&quot;&gt;
      &lt;div class=&quot;patch&quot;&gt;
        &lt;div class=&quot;line1&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line2&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line3&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line4&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line5&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line6&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line7&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line8&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line9&quot;&gt;&lt;/div&gt;
        &lt;div class=&quot;line10&quot;&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_mhdVID');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=150</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>笔记一下,简单的input值的限制</title>
		<link>http://www.caihong.cc/?p=139</link>
		<comments>http://www.caihong.cc/?p=139#comments</comments>
		<pubDate>Wed, 03 Feb 2010 02:45:13 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[行为]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=139</guid>
		<description><![CDATA[控制文本框里只能输入数字,并且最大数字不超过100,超过一百的话强制显示100 &#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;X-UA-Compatible&#34; content=&#34;IE=7&#34; /&#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;style type=&#34;text/css&#34;&#62; html,body{margin:0; padding:20px;} &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;input type=&#34;text&#34; id=&#34;input&#34; /&#62; &#60;script type=&#34;text/javascript&#34;&#62; var text = document.getElementById(&#34;input&#34;); text.onkeyup = function(){ this.value=this.value.replace(/\D/g,''); if(text.value&#62;100){ text.value = 100; } } &#60;/script&#62; &#60;/body&#62; &#60;/html&#62; 提示：您可以先修改部分 代码再运行]]></description>
			<content:encoded><![CDATA[<p>控制文本框里只能输入数字,并且最大数字不超过100,超过一百的话强制显示100<span id="more-139"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_wuIzrC">
&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;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=7&quot; /&gt;
&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;首页&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
html,body{margin:0; padding:20px;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;input type=&quot;text&quot; id=&quot;input&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var text = document.getElementById(&quot;input&quot;);
text.onkeyup = function(){
this.value=this.value.replace(/\D/g,'');
if(text.value&gt;100){
         text.value = 100;
}
}
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_wuIzrC');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=139</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>搞来两端模拟自由落体与抛物运动的JS玩</title>
		<link>http://www.caihong.cc/?p=137</link>
		<comments>http://www.caihong.cc/?p=137#comments</comments>
		<pubDate>Fri, 22 Jan 2010 08:03:35 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[行为]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=137</guid>
		<description><![CDATA[这里有更详细的讲解呵呵 http://www.cnblogs.com/cloudgamer/archive/2009/01/06/Tween.html 自由落体 &#60;p&#62;横向系数：&#60;input id=&#34;hp&#34; type=&#34;text&#34; value=&#34;0.1&#34; /&#62; (0-1)&#60;/p&#62; &#60;p&#62;纵向系数：&#60;input id=&#34;vp&#34; type=&#34;text&#34; value=&#34;0.6&#34; /&#62; (0-1)&#60;/p&#62; &#60;p&#62;速度：&#60;input id=&#34;sp&#34; type=&#34;text&#34; value=&#34;30&#34; /&#62;(20-1000) &#60;input type=&#34;button&#34; value=&#34;demo&#34; onclick=&#34;demo(document.getElementById('hp').value, document.getElementById('vp').value, document.getElementById('sp').value)&#34; /&#62;&#60;/p&#62; &#60;div style=&#34;margin-left:600px;&#34;&#62; &#60;div id=&#34;fall&#34; style=&#34;width:30px; height:30px; background:#f90; position:relative; right:0px; bottom:40px&#34;&#62;&#60;/div&#62; &#60;/div&#62; &#60;script type=&#34;text/javascript&#34;&#62; var i = null; function demo(hp,vp,sp) { var f=document.getElementById('fall'); f.style.right='0px'; f.style.bottom='40px'; i&#38;&#38;clearInterval(i); var h=1,v=1,hp=(hp&#62;0&#38;&#38;hp&#60;1)?hp:0.2,vp=(vp&#62;0&#38;&#38;vp&#60;1)?vp:0.5,sp=(sp&#62;20 &#124;&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>这里有更详细的讲解呵呵</p>
<p>http://www.cnblogs.com/cloudgamer/archive/2009/01/06/Tween.html</p>
<p><span id="more-137"></span></p>
<p>自由落体</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_TipJdo">
&lt;p&gt;横向系数：&lt;input id=&quot;hp&quot; type=&quot;text&quot; value=&quot;0.1&quot; /&gt; (0-1)&lt;/p&gt;
&lt;p&gt;纵向系数：&lt;input id=&quot;vp&quot; type=&quot;text&quot; value=&quot;0.6&quot; /&gt; (0-1)&lt;/p&gt;
&lt;p&gt;速度：&lt;input id=&quot;sp&quot; type=&quot;text&quot; value=&quot;30&quot; /&gt;(20-1000)
&lt;input type=&quot;button&quot; value=&quot;demo&quot; onclick=&quot;demo(document.getElementById('hp').value, document.getElementById('vp').value, document.getElementById('sp').value)&quot; /&gt;&lt;/p&gt;
&lt;div style=&quot;margin-left:600px;&quot;&gt;
	&lt;div id=&quot;fall&quot; style=&quot;width:30px; height:30px; background:#f90; position:relative; right:0px; bottom:40px&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var i = null;
function demo(hp,vp,sp) {
	var f=document.getElementById('fall');
		f.style.right='0px';
		f.style.bottom='40px';
		i&amp;&amp;clearInterval(i);
	var h=1,v=1,hp=(hp&gt;0&amp;&amp;hp&lt;1)?hp:0.2,vp=(vp&gt;0&amp;&amp;vp&lt;1)?vp:0.5,sp=(sp&gt;20 || sp&lt;1000)?sp:30;
		i=setInterval(function(){
			if(f){
				var r=parseInt(f.style.right)+h,b=parseInt(f.style.bottom)-v;
				f.style.right=r+'px';
				f.style.bottom=b+'px';
				if(r&gt;1000)clearInterval(i);
				if(b&gt;-210){
					v+=2
				} else {
					h=(v&gt;0)?v*hp:0;
					v*=(v&gt;0)?-1*vp:0
				}
			}
		},sp);
	}
&lt;/script&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_TipJdo');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
<p>抛物运动</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_bPt6DW">
 &lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
	*{padding:0;margin:0;}
	body{font-size:13px;padding:10px;}
	p{margin:2px;}
	.wrap{position:relative;width:1000px;height:550px;margin:0 auto;border:1px solid #ccc;margin-top:50px;}
	#fall{width:20px;font-size:1px;height:20px;background:#000;position:absolute;top:0;left:0;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h3&gt;模拟重力状态下的抛物运动（假使1px==1mm）&lt;/h3&gt;
&lt;p&gt;横向初速度：&lt;input id=&quot;Vx&quot; type=&quot;text&quot; value=&quot;2&quot; /&gt;px/ms&lt;/p&gt;
&lt;p&gt;纵向初速度：&lt;input id=&quot;Vy&quot; type=&quot;text&quot; value=&quot;-2&quot; /&gt;px/ms&lt;/p&gt;
&lt;p&gt;重力加速度：&lt;input id=&quot;a&quot; type=&quot;text&quot; value=&quot;0.0098&quot; /&gt;px/平方ms&lt;/p&gt;
&lt;p&gt;（如果这个加速度是一个随时间变化的值，就能达到其他非匀加速运动的效果了。）&lt;/p&gt;
&lt;p&gt;单位时间：&lt;input id=&quot;t&quot; type=&quot;text&quot; value=&quot;10&quot; /&gt;（记录运动的时间间隔）
&lt;p&gt;&lt;input type=&quot;button&quot; value=&quot;演示&quot; onclick=&quot;demo(document.getElementById('Vx').value, document.getElementById('Vy').value, document.getElementById('a').value, document.getElementById('t').value)&quot;/&gt;&lt;/p&gt;
&lt;body&gt;
&lt;div class=&quot;wrap&quot;&gt;
&lt;div id=&quot;fall&quot;&gt;o&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
function demo(x,y,a,t) {
	var f=document.getElementById('fall');
	var Vx=parseInt(x),
		Vy=parseInt(y),
		g=a,
		t=parseInt(t),
		h=0,l=0,Sx=0,Sy=0;
	var i=setInterval(function(){
		if(f){
			Sx+=Vx*t;
			l=Sx;
			Vy+=g*t;
			h+=Vy*t;
			f.style.left=l+'px';
			f.style.top=h+'px';
			if(h&gt;500||l&gt;900)clearInterval(i);
		}
	},t);
}
&lt;/script&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_bPt6DW');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=137</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>封装图片滑动效果</title>
		<link>http://www.caihong.cc/?p=131</link>
		<comments>http://www.caihong.cc/?p=131#comments</comments>
		<pubDate>Thu, 17 Dec 2009 02:10:16 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[结构]]></category>
		<category><![CDATA[行为]]></category>
		<category><![CDATA[表现]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=131</guid>
		<description><![CDATA[by bopooo 在腾讯QQ软件下载的页面有一个图片滑动的效果，觉得还不错 就自己封装了一个 技术方面在 动作缓冲上 遇到一些问题 不过都解决了 不过还是要谢谢 天空里的一片云给我提供的资料http://bbs.blueidea.com/thread-2961061-1-2.html 我大体上看了下 别人的思路 就自己动手做了 基本上是按照自己的想法来做的 考虑到很多朋友不太了解js 所以我封装的时候 把所有参数都集中到一个函数里 免得大家调用的时候还要看源代码 去设置参数根据提供不同的参数会有不同的效果 没有封装特别多的效果 需要的朋友可以自己动手改正自己想要的 废话多了 具体看效果 调用方法：glide.layerGlide(auto,oEventCont,oSlider,sSingleSize,second ,fSpeed,point); *glide.layerGlide(auto,oEventCont,oSlider,sSingleSize,second ,fSpeed,point); *@param auto type:bolean 是否自动滑动 当值是true的时候 为自动滑动 *@param oEventCont type:object 包含事件点击对象的容器 *@param oSlider type:object 滑动对象 *@param sSingleSize type:number 滑动对象里单个元素的尺寸（width或者height）&#160; 尺寸是有point 决定 *@param second type:number 自动滑动的延迟时间&#160; 单位/秒 *@param fSpeed type:float&#160; [...]]]></description>
			<content:encoded><![CDATA[<p>by bopooo</p>
<p>在腾讯QQ软件下载的页面有一个图片滑动的效果，觉得还不错 就自己封装了一个<br />
技术方面在 动作缓冲上 遇到一些问题  不过都解决了<br />
不过还是要谢谢 天空里的一片云给我提供的资料http://bbs.blueidea.com/thread-2961061-1-2.html<br />
我大体上看了下 别人的思路 就自己动手做了 基本上是按照自己的想法来做的</p>
<p>考虑到很多朋友不太了解js  所以我封装的时候 把所有参数都集中到一个函数里  免得大家调用的时候还要看源代码 去设置参数根据提供不同的参数会有不同的效果  没有封装特别多的效果  需要的朋友可以自己动手改正自己想要的<br />
废话多了  具体看效果</p>
<p><span id="more-131"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">调用方法：glide.layerGlide(auto,oEventCont,oSlider,sSingleSize,second ,fSpeed,point);</li></ol></div>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">*glide.layerGlide(auto,oEventCont,oSlider,sSingleSize,second ,fSpeed,point);</li>
<li>*@param auto type:bolean 是否自动滑动 当值是true的时候 为自动滑动</li>
<li>*@param oEventCont type:object 包含事件点击对象的容器</li>
<li>*@param oSlider type:object 滑动对象</li>
<li>*@param sSingleSize type:number 滑动对象里单个元素的尺寸（width或者height）&nbsp; 尺寸是有point 决定</li>
<li>*@param second type:number 自动滑动的延迟时间&nbsp; 单位/秒</li>
<li>*@param fSpeed type:float&nbsp; &nbsp;速率 取值在0.05--1之间 当取值是1时&nbsp; 没有滑动效果</li>
<li>*@param point type:string&nbsp; &nbsp;left or top&nbsp; 当值为left 为横向滚动&nbsp; 为top是顺向滚动</li></ol></div>
</p>
<p>横向滑动</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_SnEC0I">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;picsGlide&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body{ font-size:12px; color:#333;}
#picBox{width:610px; height:205px; margin:50px auto; overflow:hidden; position:relative;}
#picBox ul#show_pic{ margin:0; padding:0; list-style:none; height:205px; width:3050px; position:absolute;}
#picBox ul#show_pic li{ float:left; margin:0; padding:0; height:205px;}
#picBox ul#show_pic li img{ display:block;}
#icon_num{ position:absolute; bottom:0px; right:10px;}
#icon_num li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center;  cursor:pointer; padding:0; margin:0;margin-right:5px;}
#icon_num li:hover,#icon_num li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;}
#picBox_top{width:610px; height:205px; margin:50px auto; position:relative; overflow:hidden;}
#picBox_top ul#show_pic_top{ margin:0; padding:0; list-style:none; height:205px; width:610px; position:absolute;}
#picBox_top ul#show_pic_top li{ float:left; margin:0; padding:0; height:205px;}
#picBox_top ul#show_pic_top li img{ display:block;}
#icon_num_top{ position:absolute; bottom:0px; right:10px;}
#icon_num_top li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center;  cursor:pointer; padding:0; margin:0;margin-right:5px;}
#icon_num_top li:hover,#icon_num_top li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;picBox&quot;&gt;
	&lt;ul id=&quot;show_pic&quot; style=&quot;left:0;&quot;&gt;
    	&lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/manage.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/player.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/py.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/xf.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/TT.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul id=&quot;icon_num&quot;&gt;
    	&lt;li class=&quot;active&quot;&gt;1&lt;/li&gt;
        &lt;li&gt;2&lt;/li&gt;
        &lt;li&gt;3&lt;/li&gt;
        &lt;li&gt;4&lt;/li&gt;
        &lt;li&gt;5&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/**
 *glide.layerGlide((oEventCont,oSlider,sSingleSize,sec,fSpeed,point);
 *@param auto type:bolean 是否自动滑动 当值是true的时候 为自动滑动
 *@param oEventCont type:object 包含事件点击对象的容器
 *@param oSlider type:object 滑动对象
 *@param sSingleSize type:number 滑动对象里单个元素的尺寸（width或者height）  尺寸是有point 决定
 *@param second type:number 自动滑动的延迟时间  单位/秒
 *@param fSpeed type:float   速率 取值在0.05--1之间 当取值是1时  没有滑动效果
 *@param point type:string   left or top
 */
var glide =new function(){
	function $id(id){return document.getElementById(id);};
	this.layerGlide=function(auto,oEventCont,oSlider,sSingleSize,second,fSpeed,point){
		var oSubLi = $id(oEventCont).getElementsByTagName('li');
		var interval,timeout,oslideRange;
		var time=1;
		var speed = fSpeed
		var sum = oSubLi.length;
		var a=0;
		var delay=second * 1000;
		var setValLeft=function(s){
			return function(){
				oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
				$id(oSlider).style[point] =-Math.floor(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
				if(oslideRange==[(sSingleSize * s)]){
					clearInterval(interval);
					a=s;
				}
			}
		};
		var setValRight=function(s){
			return function(){
				oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
				$id(oSlider).style[point] =-Math.ceil(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
				if(oslideRange==[(sSingleSize * s)]){
					clearInterval(interval);
					a=s;
				}
			}
		}
		function autoGlide(){
			for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
			clearTimeout(interval);
			if(a==(parseInt(sum)-1)){
				for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
				a=0;
				oSubLi[a].className=&quot;active&quot;;
				interval = setInterval(setValLeft(a),time);
				timeout = setTimeout(autoGlide,delay);
			}else{
				a++;
				oSubLi[a].className=&quot;active&quot;;
				interval = setInterval(setValRight(a),time);
				timeout = setTimeout(autoGlide,delay);
			}
		}
		if(auto){timeout = setTimeout(autoGlide,delay);};
		for(var i=0;i&lt;sum;i++){
			oSubLi[i].onmouseover = (function(i){
				return function(){
					for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
					clearTimeout(timeout);
					clearInterval(interval);
					oSubLi[i].className=&quot;active&quot;;
					if(Math.abs(parseInt($id(oSlider).style[point]))&gt;[(sSingleSize * i)]){
						interval = setInterval(setValLeft(i),time);
						this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
					}else if(Math.abs(parseInt($id(oSlider).style[point]))&lt;[(sSingleSize * i)]){
							interval = setInterval(setValRight(i),time);
						this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
					}
				}
			})(i)
		}
	}
}
glide.layerGlide(true,'icon_num','show_pic',610,2,0.1,'left');
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_SnEC0I');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
<p>竖向滑动</p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_u5uWv2">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;picsGlide&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
body{ font-size:12px; color:#333;}
#picBox{width:610px; height:205px; margin:50px auto; overflow:hidden; position:relative;}
#picBox ul#show_pic{ margin:0; padding:0; list-style:none; height:205px; width:3050px; position:absolute;}
#picBox ul#show_pic li{ float:left; margin:0; padding:0; height:205px;}
#picBox ul#show_pic li img{ display:block;}
#icon_num{ position:absolute; bottom:0px; right:10px;}
#icon_num li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center;  cursor:pointer; padding:0; margin:0;margin-right:5px;}
#icon_num li:hover,#icon_num li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;}
#picBox_top{width:610px; height:205px; margin:50px auto; position:relative; overflow:hidden;}
#picBox_top ul#show_pic_top{ margin:0; padding:0; list-style:none; height:205px; width:610px; position:absolute;}
#picBox_top ul#show_pic_top li{ float:left; margin:0; padding:0; height:205px;}
#picBox_top ul#show_pic_top li img{ display:block;}
#icon_num_top{ position:absolute; bottom:0px; right:10px;}
#icon_num_top li{ float:left; background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat -15px 0;width:15px; height:15px; list-style:none; color:#39F; text-align:center;  cursor:pointer; padding:0; margin:0;margin-right:5px;}
#icon_num_top li:hover,#icon_num_top li.active{ background:url(http://pc.qq.com/pc/images/flashbutton.gif) no-repeat 0 0; color:#fff;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id=&quot;picBox_top&quot;&gt;
	&lt;ul id=&quot;show_pic_top&quot; style=&quot;top:0;&quot;&gt;
    	&lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/manage.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/player.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/py.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/xf.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
        &lt;li&gt;&lt;img src=&quot;http://inncache.soso.com/pc/images/TT.jpg&quot; width=&quot;610&quot; height=&quot;205&quot; alt=&quot;&quot; title=&quot;&quot; /&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;ul id=&quot;icon_num_top&quot;&gt;
    	&lt;li class=&quot;active&quot;&gt;1&lt;/li&gt;
        &lt;li&gt;2&lt;/li&gt;
        &lt;li&gt;3&lt;/li&gt;
        &lt;li&gt;4&lt;/li&gt;
        &lt;li&gt;5&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/**
 *glide.layerGlide((oEventCont,oSlider,sSingleSize,sec,fSpeed,point);
 *@param auto type:bolean 是否自动滑动 当值是true的时候 为自动滑动
 *@param oEventCont type:object 包含事件点击对象的容器
 *@param oSlider type:object 滑动对象
 *@param sSingleSize type:number 滑动对象里单个元素的尺寸（width或者height）  尺寸是有point 决定
 *@param second type:number 自动滑动的延迟时间  单位/秒
 *@param fSpeed type:float   速率 取值在0.05--1之间 当取值是1时  没有滑动效果
 *@param point type:string   left or top
 */
var glide =new function(){
	function $id(id){return document.getElementById(id);};
	this.layerGlide=function(auto,oEventCont,oSlider,sSingleSize,second,fSpeed,point){
		var oSubLi = $id(oEventCont).getElementsByTagName('li');
		var interval,timeout,oslideRange;
		var time=1;
		var speed = fSpeed
		var sum = oSubLi.length;
		var a=0;
		var delay=second * 1000;
		var setValLeft=function(s){
			return function(){
				oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
				$id(oSlider).style[point] =-Math.floor(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
				if(oslideRange==[(sSingleSize * s)]){
					clearInterval(interval);
					a=s;
				}
			}
		};
		var setValRight=function(s){
			return function(){
				oslideRange = Math.abs(parseInt($id(oSlider).style[point]));
				$id(oSlider).style[point] =-Math.ceil(oslideRange+(parseInt(s*sSingleSize) - oslideRange)*speed) +'px';
				if(oslideRange==[(sSingleSize * s)]){
					clearInterval(interval);
					a=s;
				}
			}
		}
		function autoGlide(){
			for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
			clearTimeout(interval);
			if(a==(parseInt(sum)-1)){
				for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
				a=0;
				oSubLi[a].className=&quot;active&quot;;
				interval = setInterval(setValLeft(a),time);
				timeout = setTimeout(autoGlide,delay);
			}else{
				a++;
				oSubLi[a].className=&quot;active&quot;;
				interval = setInterval(setValRight(a),time);
				timeout = setTimeout(autoGlide,delay);
			}
		}
		if(auto){timeout = setTimeout(autoGlide,delay);};
		for(var i=0;i&lt;sum;i++){
			oSubLi[i].onmouseover = (function(i){
				return function(){
					for(var c=0;c&lt;sum;c++){oSubLi[c].className='';};
					clearTimeout(timeout);
					clearInterval(interval);
					oSubLi[i].className=&quot;active&quot;;
					if(Math.abs(parseInt($id(oSlider).style[point]))&gt;[(sSingleSize * i)]){
						interval = setInterval(setValLeft(i),time);
						this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
					}else if(Math.abs(parseInt($id(oSlider).style[point]))&lt;[(sSingleSize * i)]){
							interval = setInterval(setValRight(i),time);
						this.onmouseout=function(){if(auto){timeout = setTimeout(autoGlide,delay);};};
					}
				}
			})(i)
		}
	}
}
glide.layerGlide(true,'icon_num_top','show_pic_top',205,2,0.1,'top');
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_u5uWv2');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=131</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Dom 事件处理函数</title>
		<link>http://www.caihong.cc/?p=128</link>
		<comments>http://www.caihong.cc/?p=128#comments</comments>
		<pubDate>Thu, 26 Nov 2009 03:28:51 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[行为]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=128</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;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34; /&#62; &#60;title&#62;Dom Event Handlers/Dom 事件处理函数&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; &#60;!-- table { font-family: &#34;Lucida Sans Unicode&#34;, &#34;Lucida Grande&#34;, sans-serif; border: 2px solid #000; } td { padding: 5px; } --&#62; &#60;/style&#62; &#60;script type=&#34;text/javascript&#34;&#62; window.onload=function(){ zebraTable(); } function zebraTable(){ var tbody=document.getElementsByTagName('tbody'); for(var [...]]]></description>
			<content:encoded><![CDATA[<p>别人整理的，我顺手就给捏来了哈哈。很详细的一些事件，浏览器支持情况，以及详细的说明。在这里向整理者致敬。<span id="more-128"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_yXhdVx">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;Dom Event Handlers/Dom 事件处理函数&lt;/title&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;!--
table { font-family: &quot;Lucida Sans Unicode&quot;, &quot;Lucida Grande&quot;, sans-serif; border: 2px solid #000; }
td { padding: 5px; }
--&gt;
&lt;/style&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
	window.onload=function(){
		zebraTable();
	}
	function zebraTable(){
		var tbody=document.getElementsByTagName('tbody');
		for(var i=0;i&lt;tbody.length;i++){
			var tr=tbody[i].getElementsByTagName('tr');
			var spanTd=tbody[i].getElementsByTagName('td');
			for(var j=1;j&lt;tr.length;j+=2){
				tr[j].style.background='#f2f2f2';
			}
			for(var k=0;k&lt;spanTd.length;k++){
				if(spanTd[k].getAttribute('colspan')==3){
					spanTd[k].style.background='black';
					spanTd[k].style.color='white';
				}
			}
			for(var x=0;x&lt;tr.length;x++){
				tr[x].onmouseover=In;
				tr[x].onmouseout=Out;
			}
		}
	}
	function In(){
		this.bgColor=this.style.backgroundColor;
		this.style.background='red';
		this.style.color='white';
	}
	function Out(){
		this.style.background=this.bgColor;
		this.style.color='black';
	}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
&lt;caption&gt;Dom Event Handlers/Dom 事件处理函数&lt;/caption&gt;
  &lt;thead&gt;
  	&lt;tr&gt;
      &lt;th&gt;事件&lt;/th&gt;
      &lt;th&gt;浏览器支持&lt;/th&gt;
      &lt;th&gt;解说&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;一般事件&lt;/td&gt;
    &lt;/tr&gt;
	&lt;tr&gt;
      &lt;td&gt;onclick&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;鼠标点击时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondblclick&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;鼠标双击时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmousedown&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;按下鼠标时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmouseup&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;鼠标按下后松开鼠标时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmouseover&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;当鼠标移动到某对象范围的上方时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmousemove&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;鼠标移动时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmouseout&lt;/td&gt;
      &lt;td&gt;IE4、N3&lt;/td&gt;
      &lt;td&gt;当鼠标离开某对象范围时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onkeypress&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;当键盘上的某个键被按下并且释放时触发此事件.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onkeydown&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;当键盘上某个按键被按下时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onkeyup&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;当键盘上某个按键被按放开时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;页面相关事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;onabort&lt;/td&gt;
        &lt;td&gt;IE4、N3&lt;/td&gt;
        &lt;td&gt;图片在下载时被用户中断&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforeunload&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当前页面的内容将要被改变时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onerror&lt;/td&gt;
      &lt;td&gt;IE4、N3&lt;/td&gt;
      &lt;td&gt;出现错误时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onload&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;页面内容完成时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onmove&lt;/td&gt;
      &lt;td&gt;IE、N4&lt;/td&gt;
      &lt;td&gt;浏览器的窗口被移动时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onresize&lt;/td&gt;
      &lt;td&gt;IE4、N4&lt;/td&gt;
      &lt;td&gt;当浏览器的窗口大小被改变时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onscroll&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;浏览器的滚动条位置发生变化时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onstop&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;浏览器的停止按钮被按下时触发此事件或者正在下载的文件被中断&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onunload&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;当前页面将被改变时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;表单相关事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onblur&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;当前元素失去焦点时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onchange&lt;/td&gt;
      &lt;td&gt;IE3、N2&lt;/td&gt;
      &lt;td&gt;当前元素失去焦点并且元素的内容发生改变而触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onfocus&lt;/td&gt;
      &lt;td&gt;IE3 、N2&lt;/td&gt;
      &lt;td&gt;当某个元素获得焦点时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onreset&lt;/td&gt;
      &lt;td&gt;IE4 、N3&lt;/td&gt;
      &lt;td&gt;当表单中RESET的属性被激发时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onsubmit&lt;/td&gt;
      &lt;td&gt;IE3 、N2&lt;/td&gt;
      &lt;td&gt;一个表单被递交时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;滚动字幕事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbounce&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;在Marquee内的内容移动至Marquee显示范围之外时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onfinish&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当Marquee元素完成需要显示的内容后触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onstart&lt;/td&gt;
      &lt;td&gt;IE4、 N&lt;/td&gt;
      &lt;td&gt;当Marquee元素开始显示内容时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;编辑事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforecopy&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当页面当前的被选择内容将要复制到浏览者系统的剪贴板前触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforecut&lt;/td&gt;
      &lt;td&gt;IE5、 N&lt;/td&gt;
      &lt;td&gt;当页面中的一部分或者全部的内容将被移离当前页面[剪贴]并移动到浏览者的系统剪贴板时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforeeditfocus&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当前元素将要进入编辑状态&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforepaste&lt;/td&gt;
      &lt;td&gt;IE5、 N&lt;/td&gt;
      &lt;td&gt;内容将要从浏览者的系统剪贴板传送[粘贴]到页面中时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforeupdate&lt;/td&gt;
      &lt;td&gt;IE5、 N&lt;/td&gt;
      &lt;td&gt;当浏览者粘贴系统剪贴板中的内容时通知目标对象&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;oncontextmenu&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当浏览者按下鼠标右键出现菜单时或者通过键盘的按键触发页面菜单时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;oncopy&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当页面当前的被选择内容被复制后触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;oncut&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当页面当前的被选择内容被剪切时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondrag&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当某个对象被拖动时触发此事件 [活动事件]&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragdrop&lt;/td&gt;
      &lt;td&gt;IE、N4&lt;/td&gt;
      &lt;td&gt;一个外部对象被鼠标拖进当前窗口或者帧&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragend&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当鼠标拖动结束时触发此事件，即鼠标的按钮被释放了&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragenter&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当对象被鼠标拖动的对象进入其容器范围内时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragleave&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当对象被鼠标拖动的对象离开其容器范围内时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragover&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当某被拖动的对象在另一对象容器范围内拖动时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondragstart&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当某对象将被拖动时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondrop&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;在一个拖动过程中，释放鼠标键时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onlosecapture&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当元素失去鼠标移动所形成的选择焦点时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onpaste&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当内容被粘贴时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onselect&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当文本内容被选择时的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onselectstart&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当文本内容选择将开始发生时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;数据绑定&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onafterupdate&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当数据完成由数据源到对象的传送时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;oncellchange&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当数据来源发生变化时&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondataavailable&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当数据接收完成时触发事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondatasetchanged&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;数据在数据源发生变化时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;ondatasetcomplete&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当来子数据源的全部有效数据读取完毕时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onerrorupdate&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当使用onBeforeUpdate事件触发取消了数据传送时，代替onAfterUpdate事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onrowenter&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当前数据源的数据发生变化并且有新的有效数据时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onrowexit&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当前数据源的数据将要发生变化时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onrowsdelete&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当前数据记录将被删除时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onrowsinserted&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当前数据源将要插入新数据记录时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td colspan=&quot;3&quot;&gt;外部事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onafterprint&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当文档被打印后触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onbeforeprint&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当文档即将打印时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onfilterchange&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当某个对象的滤镜效果发生变化时触发的事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onhelp&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当浏览者按下F1或者浏览器的帮助选择时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onpropertychange&lt;/td&gt;
      &lt;td&gt;IE5、N&lt;/td&gt;
      &lt;td&gt;当对象的属性之一发生变化时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;onreadystatechange&lt;/td&gt;
      &lt;td&gt;IE4、N&lt;/td&gt;
      &lt;td&gt;当对象的初始化属性值发生变化时触发此事件&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_yXhdVx');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=128</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>分享几种JS烟花</title>
		<link>http://www.caihong.cc/?p=124</link>
		<comments>http://www.caihong.cc/?p=124#comments</comments>
		<pubDate>Thu, 26 Nov 2009 03:21:49 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[行为]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=124</guid>
		<description><![CDATA[今天看到蓝色理想有几个哥们都发了自己写的烟花效果，弄的心里痒痒，自己也想写一个出来玩，结果把IE写死好几次，还是放弃了，这里转几个别人写的效果上来分享 &#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;firework - Zehee&#60;/title&#62; &#60;script type=&#34;text/javascript&#34;&#62; var fireworks = function(){ this.size = 20; this.rise(); } fireworks.prototype = { color:function(){ var c = ['0','3','6','9','c','f']; var t = [c[Math.floor(Math.random()*100)%6],'0','f']; t.sort(function(){return Math.random()&#62;0.5?-1:1;}); return '#'+t.join(''); }, aheight:function(){ var h = document.documentElement.clientHeight-250; return Math.abs(Math.floor(Math.random()*h-200))+201; [...]]]></description>
			<content:encoded><![CDATA[<p>今天看到蓝色理想有几个哥们都发了自己写的烟花效果，弄的心里痒痒，自己也想写一个出来玩，结果把IE写死好几次，还是放弃了，这里转几个别人写的效果上来分享<span id="more-124"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_jYg53t">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;firework - Zehee&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var fireworks = function(){
	this.size = 20;
	this.rise();
}
fireworks.prototype = {
	color:function(){
		var c = ['0','3','6','9','c','f'];
		var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
		t.sort(function(){return Math.random()&gt;0.5?-1:1;});
		return '#'+t.join('');
	},
	aheight:function(){
		var h = document.documentElement.clientHeight-250;
		return Math.abs(Math.floor(Math.random()*h-200))+201;
	},
	firecracker:function(){
		var b = document.createElement('div');
		var w = document.documentElement.clientWidth;
		b.style.position = 'absolute';
		b.style.color = this.color();
		b.style.bottom = 0;
		b.style.left = Math.floor(Math.random()*w)+1+'px';
		document.body.appendChild(b);
		return b;
	},
	rise:function(){
		var o = this.firecracker();
		var n = this.aheight();
		var c = this.color;
		var e = this.expl;
		var s = this.size;
		var k = n;
		var m = function(){
			o.style.bottom = parseFloat(o.style.bottom)+k*0.1+'px';
			k-=k*0.1;
			if(k&lt;2){
				clearInterval(clear);
				e(o,n,s,c);
			}
		}
		o.innerHTML = '.';
		if(parseInt(o.style.bottom)&lt;n){
			var clear = setInterval(m,20);
		}
	},
	expl:function(o,n,s,c){
		var R=n/3,Ri=n/6,Rii=n/9;
		var r=0,ri=0,rii=0;
		for(var i=0;i&lt;s;i++){
			var span = document.createElement('span');
			var p = document.createElement('i');
			var a = document.createElement('a');
			span.style.position = 'absolute';
			span.style.fontSize = n/10+'px';
			span.style.left = 0;
			span.style.top = 0;
			span.innerHTML = '*';
			p.style.position = 'absolute';
			p.style.left = 0;
			p.style.top = 0;
			p.innerHTML = '*';
			a.style.position = 'absolute';
			a.style.left = 0;
			a.style.top = 0;
			a.innerHTML = '*';
			o.appendChild(span);
			o.appendChild(p);
			o.appendChild(a);
		}
		function spr(){
			r += R*0.1;
			ri+= Ri*0.06;
			rii+= Rii*0.06;
			sp = o.getElementsByTagName('span');
			p = o.getElementsByTagName('i');
			a = o.getElementsByTagName('a');
			for(var i=0; i&lt;sp.length;i++){
				sp[i].style.color = c();
				p[i].style.color = c();
				a[i].style.color = c();
				sp[i].style.left=r*Math.cos(360/s*i)+'px';
				sp[i].style.top=r*Math.sin(360/s*i)+'px';
				sp[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
				p[i].style.left=ri*Math.cos(360/s*i)+'px';
				p[i].style.top=ri*Math.sin(360/s*i)+'px';
				p[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
				a[i].style.left=rii*Math.cos(360/s*i)+'px';
				a[i].style.top=rii*Math.sin(360/s*i)+'px';
				a[i].style.fontSize=parseFloat(sp[i].style.fontSize)*0.96+'px';
			}
			R-=R*0.1;
			if(R&lt;2){
				o.innerHTML = '';
				o.parentNode.removeChild(o);
				clearInterval(clearI);
			}
		}
		var clearI = setInterval(spr,20);
	}
}
window.onload = function(){
	function happyNewYear(){
		new fireworks();
	}
	setInterval(happyNewYear,1000);
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body style=&quot;background:#000;font:12px Georgia, 'Times New Roman', Times, serif&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_jYg53t');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_8t_5ib">
&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;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
&lt;title&gt;firework - Zehee&lt;/title&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var firework = function(){
	this.size = 40;
	this.speed = 0.1;
	this.rise();
}
firework.prototype = {
	color:function(){
		var c = ['0','3','6','9','c','f'];
		var t = [c[Math.floor(Math.random()*100)%6],'0','f'];
		t.sort(function(){return Math.random()&gt;0.5?-1:1;});
		return '#'+t.join('');
	},
	aheight:function(){
		var h = document.documentElement.clientHeight;
		return Math.abs(Math.floor(Math.random()*h-200))+201;
	},
	firecracker:function(){
		var b = document.createElement('div');
		var w = document.body.clientWidth;
		b.style.color = this.color();
		b.style.position = 'absolute';
		b.style.bottom = 0;
		b.style.left = Math.floor(Math.random()*w)+1+'px';
		document.body.appendChild(b);
		return b;
	},
	rise:function(){
		var o = this.firecracker();
		var n = this.aheight();
		var speed = this.speed;
		var e = this.expl;
		var s = this.size;
		var k = n;
		var m = function(){
			o.style.bottom = parseFloat(o.style.bottom)+k*speed+'px';
			k-=k*speed;
			if(k&lt;2){
				clearInterval(clear);
				e(o,n,s,speed);
			}
		}
		o.innerHTML = '*';
		if(parseInt(o.style.bottom)&lt;n){
			var clear = setInterval(m,20);
		}
	},
	expl:function(o,n,s,speed){
		var R = n/3;
		var Ri = n/6;
		var r = 0;
		var ri = 0;
		for(var i=0;i&lt;s;i++){
			var span = document.createElement('span');
			var p = document.createElement('p');
			span.style.position = 'absolute';
			span.style.left = 0;
			span.style.top = 0;
			span.innerHTML = '*';
			p.style.position = 'absolute';
			p.style.left = 0;
			p.style.top = 0;
			p.innerHTML = '+';
			o.appendChild(span);
			o.appendChild(p);
		}
		function spr(){
			r += R*speed;
			ri+= Ri*speed/2;
			sp = o.getElementsByTagName('span');
			p = o.getElementsByTagName('p');
			for(var i=0; i&lt;sp.length;i++){
				sp[i].style.left=r*Math.cos(360/s*i)+'px';
				sp[i].style.top=r*Math.sin(360/s*i)+'px';
				p[i].style.left=ri*Math.cos(360/s*i)+'px';
				p[i].style.top=ri*Math.sin(360/s*i)+'px';
			}
			R-=R*speed;
			if(R&lt;2){
				clearInterval(clearI);
				o.parentNode.removeChild(o);
			}
		}
		var clearI = setInterval(spr,20);
	}
}
window.onload = function(){
	function happyNewYear(){
		new firework();
	}
	setInterval(happyNewYear,400);
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;/style&gt;
&lt;/head&gt;
&lt;body style=&quot;background:#000;font:12px Arial&quot;&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_8t_5ib');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_rsq8De">
&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;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;style type=&quot;text/css&quot;&gt;
.fire{display:block; overflow:hidden; font-size:12px; position:absolute};
body{overflow:hidden; background:#000}
html{overflow:hidden; background:#000}
&lt;/style&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var Fire = function(r, color) {
	this.radius = r || 12;
	this.color = color || &quot;FF6600&quot;;
	this.xpos = 0;
	this.ypos = 0;
	this.zpos = 0;
	this.vx = 0;
	this.vy = 0;
	this.vz = 0;
	this.mass = 1;
	this.p = document.createElement(&quot;span&quot;);
	this.p.className = &quot;fire&quot;;
	this.p.innerHTML = &quot;*&quot;;
	this.p.style.fontSize = this.radius + &quot;px&quot;;
	this.p.style.color = &quot;#&quot; + this.color;
}
Fire.prototype = {
	append: function(parent) {
		parent.appendChild(this.p);
	},
	setSize: function(scale) {
		this.p.style.fontSize = this.radius * scale + &quot;px&quot;;
	},
	setPosition:function(x, y) {
		this.p.style.left = x + &quot;px&quot;;
		this.p.style.top =  y + &quot;px&quot;;
	},
	setVisible: function(b) {
		this.p.style.display = b ? &quot;block&quot; : &quot;none&quot;;
	}
}
var fireworks = function() {
	var fires = new Array();
	var count = 100;
	var fl = 250;
	var vpx = 500;
	var vpy = 300;
	var gravity = .3;
	var floor = 200;
	var bounce = -.8;
	var timer;
	return {
		init: function() {
			for (var i=0; i&lt;count; i++) {
				var color = 0xFF0000;
				color = (Math.random() * 0xFFFFFF).toString(16).toString().split(&quot;.&quot;)[0];
				while(color.length &lt; 6) {
					color = &quot;0&quot; + color;
				}
				var fire = new Fire(12, color);
				fires.push(fire);
				fire.ypos = -100;
				fire.vx = Math.random() * 6 - 3;
				fire.vy = Math.random() * 6 - 3;
				fire.vz = Math.random() * 6 - 3;
				fire.append(document.body);
			}
			var that = this;
			timer = setInterval(function() {
				for (var i=0;i&lt;count; i++) {
					that.move(fires[i]);
				}
			}, 30);
		},
		move: function(fire) {
			fire.vy += gravity;
			fire.xpos += fire.vx;
			fire.ypos += fire.vy;
			fire.zpos += fire.vz;
			if (fire.ypos &gt; floor) {
				fire.ypos = floor;
				fire.vy *= bounce;
			}
			if (fire.zpos &gt; -fl) {
				var scale = fl/ (fl+fire.zpos);
				fire.setSize(scale);
				fire.setPosition(vpx + fire.xpos * scale,
								 vpy + fire.ypos * scale);
				fire.setVisible(true);
			} else {
				fire.setVisible(false);
			}
		}
	}
}
fireworks().init();
&lt;/script&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_rsq8De');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_kKwlU5">
&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;Untitled Page&lt;/title&gt;
&lt;/head&gt;
&lt;style type=&quot;text/css&quot;&gt;
.fire{display:block; overflow:hidden; font-size:12px; position:absolute};
body{overflow:hidden; background:#000}
html{overflow:hidden; background:#000}
&lt;/style&gt;
&lt;body&gt;
&lt;/body&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
var Fire = function(r, color) {
	this.radius = r || 12;
	this.color = color;
	this.xpos = 0;
	this.ypos = 0;
	this.zpos = 0;
	this.vx = 0;
	this.vy = 0;
	this.vz = 0;
	this.mass = 1;
	this.x =0;
	this.y=0;
	this.p = document.createElement(&quot;span&quot;);
	this.p.className = &quot;fire&quot;;
	this.p.innerHTML = &quot;*&quot;;
	this.p.style.fontSize = this.radius + &quot;px&quot;;
	this.p.style.color = &quot;#&quot; + this.color;
}
Fire.prototype = {
	append: function(parent) {
		parent.appendChild(this.p);
	},
	setSize: function(scale) {
		this.p.style.fontSize = this.radius * scale + &quot;px&quot;;
	},
	setPosition:function(x, y) {
		this.p.style.left = x + &quot;px&quot;;
		this.p.style.top =  y + &quot;px&quot;;
	},
	setVisible: function(b) {
		this.p.style.display = b ? &quot;block&quot; : &quot;none&quot;;
	}
}
var fireworks = function() {
	var fires = new Array();
	var count = 150;
	var fl = 250;
	var vpx = 500;
	var vpy = 300;
	var gravity = .5;
	var floor = 200;
	var bounce = -.8;
	var timer;
	var wind = ((Math.floor(Math.random()*3) + 3)/10)*(Math.random()*2 - 1 &gt; 0 ? 1 : -1)*.25;
	var wpos = 0;
	var wcount;
	return {
		init: function() {
			wcount = 50 + Math.floor(Math.random() * 100);
			for (var i=0; i&lt;count; i++) {
				var color = 0xFF0000;
				color = (Math.random() * 0xFFFFFF).toString(16).toString().split(&quot;.&quot;)[0];
				while(color.length &lt; 6) {
					color = &quot;0&quot; + color;
				}
				var fire = new Fire(12, color);
				fires.push(fire);
				fire.ypos = -100;
				fire.vz = Math.random() * 6 - 3;
				fire.vx = (Math.random()*2 - 1)*2 ;
				fire.vy = Math.random()*-15 - 15;
				fire.x = 500
				fire.y = 600;
				fire.append(document.body);
			}
			var that = this;
			timer = setInterval(function() {
				wpos++;
				if (wpos &gt;= wcount) {
					wpos = 0;
					wcount = 50 + Math.floor(Math.random() * 100);
					wind = ((Math.floor(Math.random()*3) + 3)/10)*(Math.random()*2 - 1 &gt; 0 ? 1 : -1)*.25;
				}
				for (var i=0;i&lt;count; i++) {
					that.move(fires[i]);
				}
			}, 30);
		},
		move: function(fire) {
			fire.vy += gravity;
			fire.x += fire.vx;
			fire.y += fire.vy;
			fire.vx += wind;
			fire.setPosition(fire.x, fire.y);
				if (fire.x &lt; 0 || fire.x &gt;1000 || fire.y  &lt; 0 || fire.y  &gt; 600) {
					fire.vx = (Math.random()*2 - 1)*2;
					fire.vy = Math.random()*-15 - 15;
					fire.x = 500;
					fire.y = 600;
					fire.setPosition(fire.x, fire.y);
				}
		}
	}
}
fireworks().init();
&lt;/script&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_kKwlU5');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=124</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>IE6 CSS bug: position:relative元素被overflow:auto/scroll元素包含</title>
		<link>http://www.caihong.cc/?p=121</link>
		<comments>http://www.caihong.cc/?p=121#comments</comments>
		<pubDate>Mon, 17 Aug 2009 05:38:48 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[表现]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=121</guid>
		<description><![CDATA[记个小笔记。今天做页面遇到的小问题。 BUG描述： 页面中某DIV使用了position:relative，结合top=-25px等元素定位。在FF和IE7下表现正常，但是在IE6中该DIV会随鼠标滚动而滚动。 分析： 这是IE6一个已知的BUG：当某position:relative元素 被带有overflow:auto/scroll属性的块级元素包含时，会表现出postion:absolute的行为。 解决方法： 1.为包含块元素添加属性position:relative 。 2.把该元素的position:relative属性去掉，使用默认的static定位，并通过margin-top等属性实现类似的效果。]]></description>
			<content:encoded><![CDATA[<p>记个小笔记。今天做页面遇到的小问题。</p>
<p> BUG描述： </p>
<p>页面中某DIV使用了position:relative，结合top=-25px等元素定位。在FF和IE7下表现正常，但是在IE6中该DIV会随鼠标滚动而滚动。</p>
<p><span id="more-121"></span></p>
<p>分析：</p>
<p>这是IE6一个已知的BUG：当某position:relative元素 被带有overflow:auto/scroll属性的块级元素包含时，会表现出postion:absolute的行为。</p>
<p>解决方法： </p>
<p>1.为包含块元素添加属性position:relative 。</p>
<p>2.把该元素的position:relative属性去掉，使用默认的static定位，并通过margin-top等属性实现类似的效果。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=121</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>分享一个跨浏览器固定定位的方法。</title>
		<link>http://www.caihong.cc/?p=119</link>
		<comments>http://www.caihong.cc/?p=119#comments</comments>
		<pubDate>Sat, 13 Jun 2009 10:37:10 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[表现]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=119</guid>
		<description><![CDATA[我发现原来做前端真的是需要创意的。前几天看到别人用boeder代替边距做hover效果，这次又看到用这个办法做固定定位的，解开了我一个心结。 其实很简单，就是我一直都没想到，元素相对HTML绝对定位，然后用BODY做页面容器。 先看看效果吧呵呵。 &#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; xml:lang=&#34;UTF-8&#34;&#62; &#60;head&#62; &#60;title&#62;跨浏览器固定定位&#60;/title&#62; &#60;style type=&#34;text/css&#34;&#62; *{margin:0;padding:0;} html{_overflow:hidden;} body{_height:100%; _overflow-y:auto;} #box{width:100px; height:100px;background-color:black;position:fixed;_position:absolute; top:100px; left:100px;} &#60;/style&#62; &#60;/head&#62; &#60;body&#62; &#60;div&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; 内容&#60;br&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>我发现原来做前端真的是需要创意的。前几天看到别人用boeder代替边距做hover效果，这次又看到用这个办法做固定定位的，解开了我一个心结。</p>
<p>其实很简单，就是我一直都没想到，元素相对HTML绝对定位，然后用BODY做页面容器。</p>
<p>先看看效果吧呵呵。</p>
<p><span id="more-119"></span></p>
<div class="runcode">
<p><textarea name="runcode" class="runcode_text" 

id="runcode_wyKj_b">
&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; xml:lang=&quot;UTF-8&quot;&gt;
&lt;head&gt;
 &lt;title&gt;跨浏览器固定定位&lt;/title&gt;
 &lt;style type=&quot;text/css&quot;&gt;
  *{margin:0;padding:0;}
  html{_overflow:hidden;}
  body{_height:100%; _overflow-y:auto;}
  #box{width:100px; height:100px;background-color:black;position:fixed;_position:absolute; top:100px; left:100px;}
 &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
 &lt;div&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内容&lt;br&gt;
  内1111容&lt;br&gt;
 &lt;/div&gt;
 &lt;div id=&quot;box&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</textarea></p>
<p><input type="button" value="运行代码" class="runcode_button" onclick="runcode_open_new('runcode_wyKj_b');"/> 提示：您可以先修改部分

代码再运行</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=119</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>清理浮动的全家</title>
		<link>http://www.caihong.cc/?p=115</link>
		<comments>http://www.caihong.cc/?p=115#comments</comments>
		<pubDate>Wed, 15 Apr 2009 06:27:25 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[结构]]></category>
		<category><![CDATA[表现]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=115</guid>
		<description><![CDATA[来源：http://www.twinsenliang.net/skill/20090413.html 早段时间特别的忙，忙到站点一直没有更新；但是这段时间也是偷偷的做了一些的工作，比如对站点的JS进行了压缩，构思labs分站以及聚合分站。 而此段时间最烦的是森林群里面的一群人每天上班都在吵，然后我就每次都装嫩的在里面问：“各位高手，劳烦请问一下；清除浮动怎么弄？” 清除浮动一个凡是做页面的人都会遇到的一个东西，但是是否大家都能够清楚的知道，全方位的了解呢？于是一闲下来了马上写了这样的一篇文章，不能讲面面俱到，然而基本能将我所知道的倾囊相授了。 我们粗略的一起来看看清除浮动的办法一共有多少个。对应的DEMO 1. 采用伪类:after进行后续空制的高度位零的伪类层清除 2. 采用CSS overflow:auto的方式撑高 3. 采用CSS overflow:hidden的方式产生怪异适应 4. 采用display:table将对象变成table形式 5. 采用div标签，以及css的clear属性 6. 采用br标签，以及css的clear属性 7. 采用br标签，以及其自身HTML的clear属性 粗略的看，他们都能将问题解决；然而他们另外一方面又有着各自的利弊。（一一对应） 1. 优点结构语义化完全正确，不会产生其余的怪异问题。 缺点复用方式不当容易造成代码量急剧增大。 建议最外层轻浮动时使用，或清晰模块化复用方式的人使用。 2. 优点结构语义化完全正确，代码量极少。 缺点多个嵌套后，点击最外层的轻浮动框会遭成最外层至最内层内容全选（FF）；或者在mouseover造成宽度改变时会出现最外层模块有滚动条（IE）。 建议内个模块使用，请勿嵌套。 3. 优点结构语义化完全正确，代码量极少。 缺点内容增多时候极易不会自动换行而内容被隐藏掉。 建议宽度固定时使用，请勿嵌套。 4. 优点结构语义化完全正确，代码量极少。 缺点盒模型属性已经改变，可想而知奇异事件自然多得你数都数不到。 建议如果你不想改Bug改死你的话，最好不要使用；不过可以作为alpha版本当中临时性的忽悠下测试。 5. 优点代码量极少，复用性极高。 缺点完全不能完美的适应语义化，不利于改版以及需求变更。 建议初学者使用，可以让你快速的解决浮动问题。 6. 优点语义化程度比第5种情况要更优；代码量极少，复用性极高。 缺点语义化依旧不完美，不利于改版以及需求变更。 建议初学者使用，可以让你快速的解决浮动问题。 7. 优点语义化程度比第5、6种情况要更优；代码量最少，复用性极高。 缺点语义化依旧不完美，不利于改版以及需求变更。 建议引导初学者思维升级时使用，让其明白与其用classname来控制一种表现，倒不如回归到WEB1.0的时代的网页直接用html属性来控制表现，毕竟后者的代码量更少。]]></description>
			<content:encoded><![CDATA[<p>来源：http://www.twinsenliang.net/skill/20090413.html</p>
<p>早段时间特别的忙，忙到站点一直没有更新；但是这段时间也是偷偷的做了一些的工作，比如对站点的JS进行了压缩，构思labs分站以及聚合分站。</p>
<p>而此段时间最烦的是森林群里面的一群人每天上班都在吵，然后我就每次都装嫩的在里面问：“各位高手，劳烦请问一下；清除浮动怎么弄？”</p>
<p>清除浮动一个凡是做页面的人都会遇到的一个东西，但是是否大家都能够清楚的知道，全方位的了解呢？于是一闲下来了马上写了这样的一篇文章，不能讲面面俱到，然而基本能将我所知道的倾囊相授了。</p>
<p><span id="more-115"></span></p>
<p>我们粗略的一起来看看清除浮动的办法一共有多少个。对应的DEMO</p>
<p>1.       采用伪类:after进行后续空制的高度位零的伪类层清除</p>
<p>2.       采用CSS overflow:auto的方式撑高</p>
<p>3.       采用CSS overflow:hidden的方式产生怪异适应</p>
<p>4.       采用display:table将对象变成table形式</p>
<p>5.       采用div标签，以及css的clear属性</p>
<p>6.       采用br标签，以及css的clear属性</p>
<p>7.       采用br标签，以及其自身HTML的clear属性</p>
<p>粗略的看，他们都能将问题解决；然而他们另外一方面又有着各自的利弊。（一一对应）</p>
<p>1.       优点结构语义化完全正确，不会产生其余的怪异问题。
</p>
<p>缺点复用方式不当容易造成代码量急剧增大。
</p>
<p>建议最外层轻浮动时使用，或清晰模块化复用方式的人使用。</p>
<p>2.       优点结构语义化完全正确，代码量极少。</p>
<p>缺点多个嵌套后，点击最外层的轻浮动框会遭成最外层至最内层内容全选（FF）；或者在mouseover造成宽度改变时会出现最外层模块有滚动条（IE）。</p>
<p>建议内个模块使用，请勿嵌套。</p>
<p>3.       优点结构语义化完全正确，代码量极少。</p>
<p>缺点内容增多时候极易不会自动换行而内容被隐藏掉。</p>
<p>建议宽度固定时使用，请勿嵌套。</p>
<p>4.       优点结构语义化完全正确，代码量极少。</p>
<p>缺点盒模型属性已经改变，可想而知奇异事件自然多得你数都数不到。</p>
<p>建议如果你不想改Bug改死你的话，最好不要使用；不过可以作为alpha版本当中临时性的忽悠下测试。
</p>
<p>5.       优点代码量极少，复用性极高。</p>
<p>缺点完全不能完美的适应语义化，不利于改版以及需求变更。
</p>
<p>建议初学者使用，可以让你快速的解决浮动问题。</p>
<p>6.       优点语义化程度比第5种情况要更优；代码量极少，复用性极高。</p>
<p>缺点语义化依旧不完美，不利于改版以及需求变更。
</p>
<p>建议初学者使用，可以让你快速的解决浮动问题。</p>
<p>7.       优点语义化程度比第5、6种情况要更优；代码量最少，复用性极高。</p>
<p>缺点语义化依旧不完美，不利于改版以及需求变更。</p>
<p>建议引导初学者思维升级时使用，让其明白与其用classname来控制一种表现，倒不如回归到WEB1.0的时代的网页直接用html属性来控制表现，毕竟后者的代码量更少。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>WP-pagenavi插件在分类内分页无效问题</title>
		<link>http://www.caihong.cc/?p=112</link>
		<comments>http://www.caihong.cc/?p=112#comments</comments>
		<pubDate>Fri, 13 Mar 2009 05:39:52 +0000</pubDate>
		<dc:creator>练习</dc:creator>
				<category><![CDATA[其他]]></category>

		<guid isPermaLink="false">http://www.caihong.cc/?p=112</guid>
		<description><![CDATA[一直用WP-pagenavi这个插件分页，今天突然遇到个大问题，我在首页调用一个分类 &#60;?php query_posts('showposts=2&#38;cat=5'); ?&#62; 然后用 &#60;?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?&#62; 直接分页，发现页码信息可以读出来，但是分页按钮完全失效了，同时域名上看到page参数传递正常。 把搜到的解决办法保存下先。 ：&#60;?php $limit = get_option('posts_per_page'); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('cat=5&#38;showposts=2' . '&#38;paged=' . $paged); $wp_query-&#62;is_archive = true; $wp_query-&#62;is_home = true; ?&#62;]]></description>
			<content:encoded><![CDATA[<p>一直用WP-pagenavi这个插件分页，今天突然遇到个大问题，我在首页调用一个分类</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;?php query_posts('showposts=2&amp;cat=5'); ?&gt;</li></ol></div>
<p>然后用</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?&gt;</li></ol></div>
<p>直接分页，发现页码信息可以读出来，但是分页按钮完全失效了，同时域名上看到page参数传递正常。</p>
<p>把搜到的解决办法保存下先。</p>
<p><span id="more-112"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">：&lt;?php</li>
<li>$limit = get_option('posts_per_page');</li>
<li>$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;</li>
<li>query_posts('cat=5&amp;showposts=2' . '&amp;paged=' . $paged);</li>
<li>$wp_query-&gt;is_archive = true; $wp_query-&gt;is_home = true;</li>
<li>?&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.caihong.cc/?feed=rss2&amp;p=112</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
