一起庆祝【CSS裸奔节】啦~

<div align="center"><img border="0" alt="" src="http://naked.dustindiaz.com/img/naked-day-08.png" width="268" height="103"></div>
<br>
关于2008【CSS裸奔节】的信息可以看这个:<a href="http://www.cnblogs.com/fhmsha/archive/2008/04/09/1144617.html">http://www.cnblogs.com/fhmsha/archive/2008/04/09/1144617.html</a><br><br>
点击下面这个按钮,让我们一起来裸奔啦~<br>
function test(){
var csslink=document.getElementsByTagName("link");
for(i=0;i<csslink.length if csslink><button οnclick="test();">大家一起来裸奔</button> <br><br>
为了庆祝【2008CSS裸奔节】,请在你的网页上加入下面的代码吧。<br><div class="hiddenArea">
<div id="divHaF_1" class="haContracted" οnclick="show_hide(this);">
<img class="imgContracted" οnclick="" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif"><span class="showText">点击此处展开代码</span>
</div>
<div id="divHaS_1" class="haExpanded">
<div class="haHiddenAreaOpration" οnclick="show_hide(this);"><img class="imgExpanded" alt="" src="http://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif"></div>
<div class="haMain">
<div style="border-right: #cccccc 1px solid; padding-right: 5px; padding-left: 4px; font-size: 13px; border-top: #cccccc 1px solid; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee">
<span style="color: #000000">&lt;</span><span style="color: #000000">scripttype</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">text/javascript</span><span style="color: #000000">"</span><span style="color: #000000">language</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">javascript</span><span style="color: #000000">"</span><span style="color: #000000"></span><span style="color: #000000">&gt;</span><span style="color: #000000"><br></span><span style="color: #0000ff">function</span><span style="color: #000000">test(){<br></span><span style="color: #0000ff">var</span><span style="color: #000000">csslink</span><span style="color: #000000">=</span><span style="color: #000000">document.getElementsByTagName(</span><span style="color: #000000">"</span><span style="color: #000000">link</span><span style="color: #000000">"</span><span style="color: #000000">);<br></span><span style="color: #0000ff">for</span><span style="color: #000000">(i</span><span style="color: #000000">=</span><span style="color: #000000">0</span><span style="color: #000000">;i</span><span style="color: #000000">&lt;</span><span style="color: #000000">csslink.length;i</span><span style="color: #000000">++</span><span style="color: #000000">){<br></span><span style="color: #0000ff">if</span><span style="color: #000000">(csslink[i].type</span><span style="color: #000000">==</span><span style="color: #000000">"</span><span style="color: #000000">text/css</span><span style="color: #000000">"</span><span style="color: #000000">){<br>
csslink[i].href</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">#</span><span style="color: #000000">"</span><span style="color: #000000">;<br>
}<br>
}<br>
}<br></span><span style="color: #000000">&lt;</span><span style="color: #000000">/</span><span style="color: #000000">script&gt;</span><span style="color: #000000"><br></span><span style="color: #000000">&lt;</span><span style="color: #000000">buttononclick</span><span style="color: #000000">=</span><span style="color: #000000">"</span><span style="color: #000000">test();</span><span style="color: #000000">"</span><span style="color: #000000">&gt;</span><span style="color: #000000">大家一起来裸奔</span><span style="color: #000000">&lt;</span><span style="color: #000000">/</span><span style="color: #000000">button&gt;</span>
</div>
</div>
<!--end: haMain -->
</div>
</div>
<!--end: hiddenArea -->
function show_hide(obj){ if (obj.className=="haHiddenAreaOpration")
{var divExpanded=obj.parentNode;divExpanded.style.display="none";var divExpandedID=divExpanded.id.toString();document.getElementById(divExpandedID.replace("S","F")).style.display="block";}
else{obj.style.display="none";document.getElementById(obj.id.replace("F","S")).style.display="block";}}</csslink.length>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值