<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="http://feeds.qzone.qq.com/rss.xsl" version="1.0"?>
<rss version="2.0" xmlns:qz="http://qzone.qq.com">
<channel>
<title><![CDATA[身体倍棒]]></title>
<description><![CDATA[ ]]></description>
<link>http://24289816.qzone.qq.com</link>
<lastBuildDate>Sat, 28 Nov 2009 23:18:52 GMT</lastBuildDate>
<generator>Qzone</generator>
<language>zh-cn</language>
<copyright>Copyright (C), 2005-2008, Tencent Tech. Co., Ltd.</copyright>
<pubDate>Thu, 26 Nov 2009 08:42:35 GMT</pubDate>

<item>
<title><![CDATA[薄壁柱、多边形柱、剪力墙子目解读]]></title>
<link>http://24289816.qzone.qq.com/blog/1259224955</link>
<description><![CDATA[等... <!--v:3.2--> ]]></description>
<category><![CDATA[定额子目解读]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1259224955#comment</comments>
<qz:effect>134218240</qz:effect>
<pubDate>Thu, 26 Nov 2009 08:42:35 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1259224955</guid>
</item>

<item>
<title><![CDATA[帮朋友做的LOGO]]></title>
<link>http://24289816.qzone.qq.com/blog/1204515005</link>
<description><![CDATA[<wbr /><a href="http://sz.photo.store.qq.com/rurl2=8fc64262e6e5e9b9a858cb3dd2273bb950fbff47ad42a702c1ff6c26e9f0b54642df753a2c8b2b3ca0fa0584e0666631360ca0251017ee97efeffc9a276bf924e44f1b9bd9183ac9eab46f13dcf0feeebb53e3bb" target="_blank"><img style="border:0;" src="http://sz.photo.store.qq.com/rurl2=8fc64262e6e5e9b9a858cb3dd2273bb950fbff47ad42a702c1ff6c26e9f0b54642df753a2c8b2b3ca0fa0584e0666631360ca0251017ee97efeffc9a276bf924e44f1b9bd9183ac9eab46f13dcf0feeebb53e3bb" /></a><wbr /> <br><wbr /><a href="http://sz.photo.store.qq.com/rurl2=066e35d91431788d6ad758a7806fa8ea5230ce433d03356eb616eaaa2089b74f2e03448788d08767f455fefd52366def5db824c9ae6f85f45ea9ef1c0b76a7ee0057cd3b208baea2a92478f936c876667230f532" target="_blank"><img style="border:0;" src="http://sz.photo.store.qq.com/rurl2=066e35d91431788d6ad758a7806fa8ea5230ce433d03356eb616eaaa2089b74f2e03448788d08767f455fefd52366def5db824c9ae6f85f45ea9ef1c0b76a7ee0057cd3b208baea2a92478f936c876667230f532" /></a><wbr /> <br><br><br> <!--v:3.2--> ]]></description>
<category><![CDATA[原来的]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1204515005#comment</comments>
<qz:effect>513</qz:effect>
<pubDate>Mon, 03 Mar 2008 03:30:05 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1204515005</guid>
</item>

<item>
<title><![CDATA[顶点影视圈子banner]]></title>
<link>http://24289816.qzone.qq.com/blog/1202018896</link>
<description><![CDATA[为了响应候总的号召,积极参与到顶点网的建设中,花了一上午的时间,做了影视圈子的banner,LOGO等年后回来弄了!<wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=7228c409adab8f424011f6054c5611f28cc8d01b177f59fabb3dcc4cdb524438d45915d3c24819e4b2fb6abd46044b316a063dd8372aa12d5f7cc5232c96bac85db72dd707093d67d14d9cf29ee1179c7c087798" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=7228c409adab8f424011f6054c5611f28cc8d01b177f59fabb3dcc4cdb524438d45915d3c24819e4b2fb6abd46044b316a063dd8372aa12d5f7cc5232c96bac85db72dd707093d67d14d9cf29ee1179c7c087798" /></a><wbr /><br><br> <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1202018896#comment</comments>
<qz:effect>513</qz:effect>
<pubDate>Sun, 03 Feb 2008 06:08:16 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1202018896</guid>
</item>

<item>
<title><![CDATA[CSS中的空格&quot;运算符&quot;]]></title>
<link>http://24289816.qzone.qq.com/blog/1200985529</link>
<description><![CDATA[前几天在BI拜读过一篇关于CSS的文章，颇有争议，印象最深刻的是文中提出，将空格作为一种运算符。个人认为，空格在定义CSS样式的时候，确实有一定的功能，在有些时候，作用还很大，所以，姑且也附和一把~~~ <br>今天在群里，刚好有朋友提出一个问题，怎样解释dl.abc与dl .abc（第二个dl后有一空格）。哎，难为我口齿不太伶俐，舌头刚好有点大...按照我自己的理解也说不清楚，于是，我把自己的想法，用代码表现出来，大致意思就是.....（后来群里一朋友精辟的解释为：dl.abc 意思是匹配有abc类的dl元素，后一个意思是匹配有类型abc且是dl子元素的元素，顿时毛塞吨开） <br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a><wbr />&quot;&gt; <br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a><wbr />&quot;&gt; <br>&lt;head&gt; <br>&lt;meta http-equiv=&quot;Content-Type&quot; c /&gt; <br>&lt;title&gt;无标题文档&lt;/title&gt; <br>&lt;style type=&quot;text/css&quot;&gt; <br>ul .abc{ width:50px; height:50px; background:red;} <br>ul.abc{ width:100px; height:100px; background:blue;} <br>.abc{ width:100px; height:100px; background:yellow;} <br>&lt;/style&gt; <br>&lt;/head&gt; <br>&lt;body&gt; <br>&lt;ul class=&quot;abc&quot;&gt;ul.abc <br>&lt;li class=&quot;abc&quot;&gt;ul .abc&lt;/li&gt; <br>&lt;/ul&gt; <br>&lt;div class=&quot;abc&quot;&gt;.abc&lt;/div&gt; <br>&lt;/body&gt; <br>&lt;/html&gt; <!--v:3.2--> ]]></description>
<category><![CDATA[原来的]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1200985529#comment</comments>
<qz:effect>512</qz:effect>
<pubDate>Tue, 22 Jan 2008 07:05:29 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1200985529</guid>
</item>

<item>
<title><![CDATA[时间对象方法总结]]></title>
<link>http://24289816.qzone.qq.com/blog/1200894387</link>
<description><![CDATA[数组和字符串总结了一部分,现在把时间对象比较主要的方法归纳一下.<br>1、Date()方法<br>[作用]返回当前日期<br>[语法]Date()<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate);<br>&lt;/script&gt;<br>2、getDate()方法<br>[作用]返回当前日期中的日子数<br>[语法]objDate.getDate()<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate.getDate()); <br>&lt;/script&gt;<br>3、getDay()方法<br>[作用]返回当前日期中的星期数<br>[语法]objDate.getDay()<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate.getDay()); <br>&lt;/script&gt;<br>4、getMonth()方法<br>[作用]返回当前日期的月份数，注意一点，getMonth()所返回的值为0到11的数字，比如一月份为0，二月<br>份为1，依次类推。<br>[语法]objDate.getDay()<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate.getDay()); <br>&lt;/script&gt;<br>5、getDay()方法<br>[作用]返回当前日期中的星期数<br>[语法]objDate.getDay()<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate.getDay()); <br>&lt;/script&gt;<br>6、getYear()、getFullYear()<br>[作用]返回当前年份，getYear()为两位，getFullYear()为完整年份数。<br>[语法]objDate.getYear|getFullYear();<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date();<br>document.write(myDate.getYear());<br>document.write(myDate.getFullYear());<br>&lt;/script&gt;<br>7、getHours()、getMinutes()、getSeconds()<br>[作用]获取当前时间的小时，分钟，秒数<br>[语法]objDate.getHours()...<br>[实例]<br>&lt;script type=text/javascript&gt;<br>var myDate = new Date()<br>document.write(myDate.getHours());<br>document.write(myDate.getMinutes());<br>document.write(myDate.getSeconds());<br>&lt;/script&gt;<br>8、set系列方法<br>[作用]设置当前时间的各个内容<br>[语法]同get系列<br>[实例]略 <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1200894387#comment</comments>
<qz:effect>512</qz:effect>
<pubDate>Mon, 21 Jan 2008 05:46:27 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1200894387</guid>
</item>

<item>
<title><![CDATA[Array数组对象方法]]></title>
<link>http://24289816.qzone.qq.com/blog/1200639180</link>
<description><![CDATA[1、concat方法 <br>[作用] 将多个数组联合起来，这个方法不会改变现存的数组，它只返回了所结合数组的一份拷贝。 <br>[语法] arrayObj.concat(array1,array2,...) <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;); <br>var array2 = new Array(&quot;3&quot;,&quot;4&quot;); <br>var array3 = array1.concat(array2); <br>document.write(array3+&quot;&lt;br/&gt;&quot;); <br>document.write(array3[0]); <br>&lt;/script&gt; <br>2、join方法， <br>[作用] 将原有数组对象转换成1个字符串，可以用指定分隔符进行串联。 <br>[语法] arrayObj.join(separator)，separator为分隔符，默认为“,”。 <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;); <br>document.write(array1.join()); <br>&lt;/script&gt; <br>3、pop、shift方法 <br>[作用] pop方法删除和返回数组中最后一个元素，同时，数组的长度发生变化。与之相对的是shift()方 <br>法，删除和返回数组第一个元素。 <br>[语法] arrayObj.pop|shift() <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;); <br>document.write(array1.pop()+&quot;&lt;br&gt;&quot;); <br>document.write(array1.length+&quot;&lt;br&gt;&quot;); <br>document.write(array1.shift()+&quot;&lt;br&gt;&quot;); <br>document.write(array1.length); <br>&lt;/script&gt; <br>4、push、unshift方法 <br>[作用] 向数组的末尾添加一个或多个元素并且返回新的长度。同时，数组的长度将会被改变，与之相对 <br>应的是unshift方法。注意，方法的返回值并不是新的数组，而是新数组的长度。 <br>[语法] arrayObj.push|unshift(ele1,ele2,ele3,...) <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;); <br>var newL = array1.push(&quot;5&quot;,&quot;6&quot;); <br>document.write(newL+&quot;&lt;br&gt;&quot;); <br>document.write(array1); <br>&lt;/script&gt; <br>5、reverse方法 <br>[作用] 把数组中的元素排列次序颠倒过来。 <br>[语法] arrayObj.reverse() <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;); <br>document.write(array1.reverse()); <br>&lt;/script&gt; <br>6、slice方法 <br>[作用] 可将现存数组中选种的元素返回。 <br>[语法] arrayObj.slice(startposition,endposition)，第一个参数为必选，第二个为可选，如不写，则 <br>默认为从startposition到最后一个元素。注意，包含startposition这个位置的元素，而不包括 <br>endposition。 <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;); <br>document.write(array1.slice(0,2)); <br>&lt;/script&gt; <br>7、sort方法 <br>[作用] 用来对数组元素进行排序。 <br>[语法] arrayObj.sort(sortRule())。参数可选，代表排序的方法。特别说明，sort排序有几个基本原则 <br>，第一，默认按照字母顺序排列；第二，大写字母排在小写字母之前。基与此，对于数字排序，需要自己 <br>写排序方法。 <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;c&quot;,&quot;a&quot;,&quot;d&quot;,&quot;b&quot;); <br>var array2 = new Array(&quot;c&quot;,&quot;a&quot;,&quot;D&quot;,&quot;b&quot;); <br>var array3 = new Array(&quot;100&quot;,&quot;2&quot;,&quot;3&quot;,&quot;1&quot;) <br>function sortRule(a,b){ <br>  return a-b; <br>} <br>document.write(array1.sort()+&quot;&lt;br&gt;&quot;); <br>document.write(array2.sort()+&quot;&lt;br&gt;&quot;); <br>document.write(array3.sort(sortRule)); <br>&lt;/script&gt; <br>8、splice方法 <br>[作用] 向数组删除并加入新的元素。 <br>[语法] arrayObj.splice(index,number,ele1,ele2...)。index为索引位置，必须为数字，代表从哪个 <br>位置插入或者删除元素。number，代表从index位置往后删除的元素个数，如果为“0”则表示在index插 <br>入新元素，不删除往后的数组元素。（说得太混了~~~直接看代码实例） <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;c&quot;,&quot;a&quot;,&quot;d&quot;,&quot;b&quot;); <br>array1.splice(0,0,&quot;m&quot;) <br>document.write(array1+&quot;&lt;br&gt;&quot;); <br>array1.splice(0,2,&quot;n&quot;) <br>document.write(array1); <br>&lt;/script&gt; <br>9、toString方法 <br>[作用] 使用率非常高的方法，直接将数组类型对象转换成字符串类型对象。 <br>[语法] arrayObj.toString() <br>[实例] <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;c&quot;,&quot;a&quot;,&quot;d&quot;,&quot;b&quot;); <br>strObj = array1.toString(); <br>document.write(strObj+&quot;&lt;br&gt;&quot;); <br>&lt;/script&gt; <br>注意：新的字符串是原数组连接而成，但是中间有“,”分隔，如想去掉“,”，可以这样写： <br>&lt;script type=&quot;text/javascript&quot;&gt; <br>var array1 = new Array(&quot;c&quot;,&quot;a&quot;,&quot;d&quot;,&quot;b&quot;); <br>strObj = array1.toString().replace(/,/g,&quot;&quot;); <br>document.write(strObj.replace+&quot;&lt;br&gt;&quot;); <br>&lt;/script&gt; <br>10、valueOf方法 <br>[作用] 返回数组对象的原始值 <br>[语法] arrayObj.valueOf() <br>[实例] 不知道怎么用... <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1200639180#comment</comments>
<qz:effect>512</qz:effect>
<pubDate>Fri, 18 Jan 2008 06:53:00 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1200639180</guid>
</item>

<item>
<title><![CDATA[阿里巴巴前端工程师考题]]></title>
<link>http://24289816.qzone.qq.com/blog/1200389566</link>
<description><![CDATA[今天在BI做了道ALI招聘前端开发工程师的题目,把自己的解题帖上来,很菜,很不幽雅~~~<br>题目一:<br><wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=ab93bdd234cc0710d0ed2c4221bb60f29b5fb6907b169811e794559500acff2fda92e63a863bd8a6f476beba57c0081271af1acafa983cfddb99f03674aad5b93e3fd20fa2bc2b8cd5ba0c9a87243f10e06985df" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=ab93bdd234cc0710d0ed2c4221bb60f29b5fb6907b169811e794559500acff2fda92e63a863bd8a6f476beba57c0081271af1acafa983cfddb99f03674aad5b93e3fd20fa2bc2b8cd5ba0c9a87243f10e06985df" /></a><wbr /><br> <br>题目二:<br><wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=67c9aed8bb064944e70bb6f166760e26feefda2eb5cfe2669ab7faf2ddc5d6324fbef2e3645f9e3e8cd8e94d2db90af36011bacdb3c9a1d941897a0e018e43a47072293ff6cecb412c831f4119a7d0c698d434ec" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=67c9aed8bb064944e70bb6f166760e26feefda2eb5cfe2669ab7faf2ddc5d6324fbef2e3645f9e3e8cd8e94d2db90af36011bacdb3c9a1d941897a0e018e43a47072293ff6cecb412c831f4119a7d0c698d434ec" /></a><wbr /><br><br><br>我写的代码:<br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a><wbr />&quot;&gt;<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a><wbr />&quot;&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv=&quot;Content-Type&quot; c /&gt;<br>&lt;title&gt;无标题文档&lt;/title&gt;<br>&lt;style type=&quot;text/css&quot;&gt;<br>*{ margin:0; padding:0;}<br>#wrapper{<br> width:360px;<br> margin:auto;<br> position:relative; <br> }<br>#leftbar1{<br> width:60px;<br> height:120px;<br> background:#0CFa05;<br> position:absolute;<br> }<br>#leftbar2{<br> width:60px;<br> height:120px;<br> background:#CCFF00;<br> position:absolute;<br> top:130px;<br> }<br>#main{<br> width:300px;<br> height:250px;<br> background:#336666;<br> position:absolute;<br> top:0;<br> left:70px;<br> }<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div id=&quot;wrapper&quot;&gt;<br> &lt;div id=&quot;leftbar1&quot;&gt;a&lt;/div&gt;<br>    &lt;div id=&quot;leftbar2&quot;&gt;b&lt;/div&gt;<br>    &lt;div id=&quot;main&quot;&gt;c&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;script type=&quot;text/javascript&quot;&gt;<br> var oDivs = document.getElementsByTagName(&quot;div&quot;);<br>//为需要实现目标效果的DIV绑定事件<br> oDivs[1].onmouseover = changeArea;<br> oDivs[1].onmouseout = resetArea;<br> oDivs[2].onmouseover = changeArea;<br> oDivs[2].onmouseout = resetArea;<br> oDivs[3].onmouseover = changeArea;<br> oDivs[3].onmouseout = resetArea;<br>//定义初始化大小数组<br> var iniWidth = new Array();<br> var iniHeight = new Array();<br>//获取每个DIV的初始高度和宽度<br> for(i=0;i&lt;oDivs.length;i++){<br>  iniWidth<span style="font-style:italic"><wbr /> = oDivs<span style="font-style:italic"><wbr />.offsetWidth;<br>  iniHeight<span style="font-style:italic"><wbr /> = oDivs<span style="font-style:italic"><wbr />.offsetHeight;<br>}<br>//面积变大方法changeArea();<br>function changeArea(){<br>  this.style.width = this.offsetWidth*1.25+&quot;px&quot;;<br>  this.style.height = this.offsetHeight*1.25+&quot;px&quot;;<br>  this.style.zIndex = 1;<br> }<br>//面积还原方法resetArea();<br>function resetArea(){<br> for(i=0;i&lt;oDivs.length;i++){<br>  oDivs<span style="font-style:italic"><wbr />.style.width = iniWidth<span style="font-style:italic"><wbr />+&quot;px&quot;;<br>  oDivs<span style="font-style:italic"><wbr />.style.height = iniHeight<span style="font-style:italic"><wbr />+&quot;px&quot;;<br>  oDivs<span style="font-style:italic"><wbr />.style.zIndex = 0;<br> }<br>}<br>&lt;/script&gt;<br>&lt;/html&gt;<br><br> <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1200389566#comment</comments>
<qz:effect>513</qz:effect>
<pubDate>Tue, 15 Jan 2008 09:32:46 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1200389566</guid>
</item>

<item>
<title><![CDATA[模仿taobao注册页面表单变化样式功能]]></title>
<link>http://24289816.qzone.qq.com/blog/1199859457</link>
<description><![CDATA[许久没有来更新日志了，学JS到现在差不多3个月了，但是还是不会用，今天逛BI的时候发现了可能比我还菜点的小鸟问了一个简单的问题，问到：taobao注册流程中，表单右边提示语样式变化的实现方法。原始效果页URL：<br><a href="http://member1.taobao.com/member/register.jhtml?f=top" target="_blank">http://member1.taobao.com/member/register.jhtml?f=top</a><wbr /><br>为了遵循何老师说的：要多练，多练才能熟呀~~~<br>所以自己又用不太幽雅，不太先进的代码写了一下。权当练习，练习。<br>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a><wbr />&quot;&gt;<br>&lt;html xmlns=&quot;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a><wbr />&quot;&gt;<br>&lt;head&gt;<br>&lt;meta http-equiv=&quot;Content-Type&quot; c /&gt;<br>&lt;title&gt;无标题文档&lt;/title&gt;<br>&lt;style type=&quot;text/css&quot;&gt;<br>.note{<br> width:200px;<br> height:20px;<br> margin:0;<br> padding:0;<br> text-align:center;<br> line-height:20px;<br> }<br>.text{<br> float:left;<br> margin:0 10px 0 0;<br> }<br>.normal{<br> font-size:12px;<br> font-family:Verdana, Arial, Helvetica, sans-serif;<br> color:#000000;}<br>.special{<br> font-size:12px;<br> font-family:Verdana, Arial, Helvetica, sans-serif;<br> color:#000000;<br> border:1px solid #0099FF;<br> background:#B6E7FC;<br> height:18px;}<br>&lt;/style&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;input type=&quot;text&quot; class=&quot;text&quot; /&gt;<br>&lt;div class=&quot;normal note&quot;&gt;测试一下&lt;/div&gt;&lt;br /&gt;<br>&lt;input type=&quot;text&quot; class=&quot;text&quot; /&gt;<br>&lt;div class=&quot;normal note&quot;&gt;测试一下&lt;/div&gt;&lt;br /&gt;<br>&lt;input type=&quot;text&quot; class=&quot;text&quot;/&gt;<br>&lt;div class=&quot;normal note&quot;&gt;测试一下&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;script type=&quot;text/javascript&quot;&gt;<br>var oInputs = document.getElementsByTagName(&quot;input&quot;);<br>var oDivs = document.getElementsByTagName(&quot;div&quot;);<br>for( var i = 0;i&lt;oInputs.length;i++){<br> oInputs<span style="font-style:italic"><wbr />.id = i;<br> oInputs<span style="font-style:italic"><wbr />.onfocus = function(){<br>  oDivs[this.id].className = &quot;special note&quot;;  <br> }<br> oInputs<span style="font-style:italic"><wbr />.onblur = function(){<br>  oDivs[this.id].className = &quot;normal note&quot;; <br> }<br>}<br>&lt;/script&gt;<br>&lt;/html&gt;<br> <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1199859457#comment</comments>
<qz:effect>512</qz:effect>
<pubDate>Wed, 09 Jan 2008 06:17:37 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1199859457</guid>
</item>

<item>
<title><![CDATA[BLOG的banner]]></title>
<link>http://24289816.qzone.qq.com/blog/1198736381</link>
<description><![CDATA[JS的书第一遍基本看完了,何老师说要做个东西练习下,建议做个简单的BLOG,今天上午花了2个小时的时间,最了个banner ,比较花哨<br><wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=07d1e4e33a163295c9c929db90335cd55a448b8430567686f91a31ff848248cf0e589bac3cfa0050e42468260d75685fa7d0dcf52ebc96f21df680b48dd0e4bf4d283d9d9bc9cef2b7985111931cd7a9f5c4172b" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=07d1e4e33a163295c9c929db90335cd55a448b8430567686f91a31ff848248cf0e589bac3cfa0050e42468260d75685fa7d0dcf52ebc96f21df680b48dd0e4bf4d283d9d9bc9cef2b7985111931cd7a9f5c4172b" /></a><wbr /><br><br> <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1198736381#comment</comments>
<qz:effect>513</qz:effect>
<pubDate>Thu, 27 Dec 2007 06:19:41 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1198736381</guid>
</item>

<item>
<title><![CDATA[简单重构大渝网]]></title>
<link>http://24289816.qzone.qq.com/blog/1197962067</link>
<description><![CDATA[在开始本文之前，对擅自模仿并修改原版表示歉意~~~ <br>写这个标题的时候心头不免有点虚,重构,这个概念太高深,实在不适合小菜我用,但是又找不到其他合适的词语,不管了,姑且就这么叫着吧。 <br>至于为什么要写，其一，练手；其二，哎...不说也罢。 <br>好了，废话后开始“重构”！（洋气，太洋气了）。 <br>首先，看看大渝网的整体架构。如下图： <br><br><wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=60d12c68a60ace1614fdfd7a5bf5b79dfafeee3a074d213e7220dfb8e5a3952623472b85747f19dab49040d6ac6bb30f2fb99540598bb4cb96f6488cb0f5ecefeeaaa2be1f8b31ad513a9b941ee4039aec04073b" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=60d12c68a60ace1614fdfd7a5bf5b79dfafeee3a074d213e7220dfb8e5a3952623472b85747f19dab49040d6ac6bb30f2fb99540598bb4cb96f6488cb0f5ecefeeaaa2be1f8b31ad513a9b941ee4039aec04073b" /></a><wbr /> <br><br>分析以后，大致可以划分为几个部分：头部，广告，主体内容。然后，广告+主体内容的结构循环若干次。由于是简单的重构，这里只取：头部，广告，主体内容3个大块，省去循环出现的广告+内容结构。下面是我分析后画的简单结构图： <br><br><wbr /><a href="http://photo.store.qq.com/http_imgload.cgi?/rurl2=df611d125fd35791768d12b60d5897434264d251820367e39d7ee32858e2bbda67c5f4d0ab7a51630444c7049a0f6bb7dd057b5cacf8c0b83a4270383fc0c8fb83136a4259dc72f3199a45956987a73cbf809b09" target="_blank"><img style="border:0;" src="http://photo.store.qq.com/http_imgload.cgi?/rurl2=df611d125fd35791768d12b60d5897434264d251820367e39d7ee32858e2bbda67c5f4d0ab7a51630444c7049a0f6bb7dd057b5cacf8c0b83a4270383fc0c8fb83136a4259dc72f3199a45956987a73cbf809b09" /></a><wbr /> <br><br>当然，大渝网的结构肯定会有其他更好的划分，所以，也请看官中的高手指出。 <br>在分析出简单的架构后，我就开始着手写（X）HTML部分的机构代码。贴出如下： <br><span style="font-weight:bold"><wbr />HTML：</span><wbr /> <br><span style="line-height:1.8em;">&lt;div id=&quot;wrapper&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;div id=&quot;header&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;logo&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;header_right&quot;&gt; </span><wbr /><br><span style="line-height:1.8em;">   &lt;div id=&quot;search&quot;&gt;&lt;label for=&quot;serch&quot;&gt;大渝搜索&lt;input id=&quot;serch&quot; name=&quot;serch&quot; type=&quot;text&quot; style=&quot;border:1px solid #0066CC; position:relative;left:5px; margin:0; padding:0;&quot;  /&gt;&lt;/label&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;nav&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">    &lt;ul id=&quot;nav_row1&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;首页&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;新闻&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;Qbar&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;评论&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;娱乐&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;餐饮&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;健康&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;无线&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;文教&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;视频&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;搜购星期五&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;搜街一族&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;英语沙龙&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">    &lt;/ul&gt;</span><wbr /> <br><span style="line-height:1.8em;">    &lt;ul id=&quot;nav_row2&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;房产&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;汽车&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;IT数码&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;商业街&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;彩票中心&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;招聘&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;旅游&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;家居&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;理财&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;游戏中心&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;房产视频&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">     &lt;li class=&quot;nav&quot;&gt;&lt;a href=&quot;javascript:;&quot;&gt;商报电子版&lt;/a&gt;&lt;/li&gt;</span><wbr /> <br><span style="line-height:1.8em;">    &lt;/ul&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;div id=&quot;adv&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;div id=&quot;main1&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;main1_cols1&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;main1_cols2&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;main1_clos2_row1&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;main1_clos2_row2&quot;&gt;&lt;span class=&quot;main1_title&quot;&gt;大渝话题&lt;/span&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;main1_clos2_row3&quot;&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;main1_cols3&quot;&gt;&lt;span class=&quot;main1_title&quot;&gt;大渝头条&lt;/span&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;div id=&quot;main1_cols4&quot;&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;main1_cols4_row1&quot;&gt;&lt;span class=&quot;main1_title&quot;&gt;今日推荐&lt;/span&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">   &lt;div id=&quot;main1_cols4_row2&quot;&gt;&lt;span class=&quot;main1_title&quot;&gt;热点·专题&lt;/span&gt;&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">  &lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;/div&gt;</span><wbr /> <br><span style="line-height:1.8em;">&lt;/div&gt;</span><wbr /> <br>完成结构的代码后，开始添加CSS样式： <br><span style="font-weight:bold"><wbr />CSS：</span><wbr /> <br>/*boxes-structure*/ <br>html{ <br>margin:0; <br>padding:0;} <br>body{ <br>margin:0; <br>padding:0;} <br>#wrapper{ <br>margin:auto; <br>padding:0; <br>width:915px; <br>background:#fff;} <br>#header{} <br>#logo{ <br>width:213px; <br>height:99px; <br>background:url(img/logo.gif) no-repeat; <br>float:left; <br>margin:0;} <br>#header_right{ <br>margin:0; <br>padding:0; <br>width:697px; <br>height:99px; <br>background:#fff; <br>float:left; <br>} <br>#search{ <br>  width:697px; <br>  height:43px; <br>  background:url(img/header_bg.gif) repeat-x; <br>  } <br>  #search label{ <br>   margin:0; <br>   padding:0; <br>   width:20px; <br>   font-size:12px; <br>   font-family:&quot;宋体&quot;; <br>   color:#07B6F8; <br>   position:relative; <br>   top:10px; <br>   } <br>#nav{ <br>width:697px; <br>height:50px; <br>margin:5px 0 0 0; <br>  } <br>#nav ul{ <br>  width:697px; <br>  padding:0; <br>  } <br>  #nav_row1{ <br>   list-style:none; <br>   width:697px; <br>   height:23px; <br>   background:#AFDCF9; <br>   margin:0 0 5px 0; <br>   } <br>   #nav_row1 li{ <br>    float:left; <br>    margin:0 0 0 20px; <br>    } <br>    #nav_row1 li a{} <br>    #nav_row1 li a:link{ color:#000000; text-decoration:none;} <br>    #nav_row1 li a:visited{ color:#000000; text-decoration:none;} <br>    #nav_row1 li a:hover{ color:red; text-decoration:underline;} <br>  #nav_row2{ <br>   list-style:none; <br>   width:697px; <br>   height:23px; <br>   background:#31A2E6; <br>   margin:0; <br>   } <br>   #nav_row2 li{ <br>    float:left; <br>    margin:0 0 0 20px; <br>    } <br>    #nav_row2 li a{} <br>    #nav_row2 li a:link{ color:#000000; text-decoration:none;} <br>    #nav_row2 li a:visited{ color:#000000; text-decoration:none;} <br>    #nav_row2 li a:hover{ color:yellow; text-decoration:underline;} <br>#adv{ <br>width:910px; <br>height:90px; <br>margin:10px 0 0 0; <br>background:url(img/adv.jpg) no-repeat red; <br>clear:both; <br>padding:inherit <br>} <br>#main1{ <br>width:915px; <br>margin:10px 0 0 0;} <br>#main1_cols1{ <br>  width:214px; <br>  height:424px; <br>  margin:0 10px 0 0; <br>  background:url(img/main1_left1.gif) no-repeat; <br>  border:1px solid #42A2DF; <br>  float:left;} <br>#main1_cols2{ <br>  width:243px; <br>  height:300px; <br>  margin:0 10px 0 0; <br>  float:left;} <br>  #main1_clos2_row1{ <br>   width:243px; <br>   height:200px; <br>   margin:0 0 5px 0; <br>   border:1px solid #42A2DF; <br>   background:url(img/main1_newstitle.jpg) no-repeat;} <br>  #main1_clos2_row2{ <br>   width:243px; <br>   height:150px; <br>   border:1px solid #42A2DF; <br>   } <br>    #main1_clos2_row2 span{ <br>    display:block; <br>    width:231px; <br>    height:25px; <br>    background:#3EABF0; <br>    padding:0 0 0 10px; <br>    margin:1px;} <br>  #main1_clos2_row3{ <br>   width:243px; <br>   height:60px; <br>   border:1px solid #42A2DF; <br>   margin:5px 0 0 0;} <br>#main1_cols3{ <br>  width:237px; <br>  height:424px; <br>  margin:0 10px 0 0; <br>  border:1px solid #42A2DF; <br>  float:left;} <br>  #main1_cols3 span{ <br>    display:block; <br>    width:225px; <br>    height:25px; <br>    background:#3EABF0; <br>    padding:0 0 0 10px; <br>    margin:1px;} <br>#main1_cols4{ <br>  width:180px; <br>  height:424px; <br>  float:left; <br>  } <br>   #main1_cols4_row1{ <br>   width:180px; <br>   height:300px; <br>   margin:0 0 5px 0; <br>   border:1px solid #42A2DF;} <br>    #main1_cols4_row1 span{ <br>     display:block; <br>     width:168px; <br>     height:25px; <br>     background:#3EABF0; <br>     padding:0 0 0 10px; <br>     margin:1px;} <br>   #main1_cols4_row2{ <br>   width:180px; <br>   height:117px; <br>   border:1px solid #42A2DF;} <br>    #main1_cols4_row2 span{ <br>     display:block; <br>     width:168px; <br>     height:25px; <br>     background:#3EABF0; <br>     padding:0 0 0 10px; <br>     margin:1px;} <br>/*font-style*/ <br>.nav{ <br>font-size:12px; <br>font-family:Arial, Helvetica, sans-serif; <br>line-height:23px;} <br>.main1_title{ <br>font-size:14px; <br>font-family:宋体; <br>line-height:25px; <br>color:#FFFFFF; <br>font-weight:bold;} <br>写完后，兼容IE6、IE7、FF <br>通过这次我又学到如何清理浮动，还是有收获滴~~~ <!--v:3.2--> ]]></description>
<category><![CDATA[WEB回忆]]></category>
<author><![CDATA[24289816@qq.com(身体倍棒)]]></author>
<comments>http://24289816.qzone.qq.com/blog/1197962067#comment</comments>
<qz:effect>529</qz:effect>
<pubDate>Tue, 18 Dec 2007 07:14:27 GMT</pubDate>
<guid>http://24289816.qzone.qq.com/blog/1197962067</guid>
</item>

</channel>
</rss>

