广告联盟网

 找回密码
 注册
查看: 564|回复: 3
打印 上一主题 下一主题

求帮把这句 if then 改成 select case.....

[复制链接]
跳转到指定楼层
1#
发表于 2007-7-15 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
<br><br><div class="msgbody"><div class="msgheader"><div class="right"><a href="###" class="smalltxt" onclick="copycode($('code0'));">[Copy to clipboard]</a> <a class="smalltxt" href="###" onclick="toggle_collapse('code0');">[ <span id="code0_symbol">-</span> ]</a></div>CODE:</div><div class="msgborder" id="code0"> <br /><br />谢谢了.<br /><br />&lt;%<br />if rs(&quot;opendate&quot;)&lt;&gt;&quot;&quot; then response.write year(rs(&quot;opendate&quot;))&amp;&quot;年/&quot;&amp;month(rs(&quot;opendate&quot;))&amp;&quot;月/&quot;&amp;day(rs(&quot;opendate&quot;))&amp;&quot;日/&quot;%&gt;&lt;%<br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;=0 and hour(rs(&quot;Sifu_opendate&quot;))&lt;7 then <br />response.write &quot;凌晨&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;17 and hour(rs(&quot;Sifu_opendate&quot;))&lt;24 then <br />response.write &quot;晚上&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))-12&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&lt;12 then <br />response.write &quot;上午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))&gt;12 and hour(rs(&quot;Sifu_opendate&quot;))&lt;=17 then <br />response.write &quot;下午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))-12&amp;&quot;点&quot; <br />else <br />if hour(rs(&quot;Sifu_opendate&quot;))=12 then <br />response.write &quot;中午&quot;&amp;hour(rs(&quot;Sifu_opendate&quot;))&amp;&quot;点&quot; <br />end if <br />end if <br />end if <br />end if <br />end if%&gt;</div></div><br>
2#
发表于 2007-7-15 | 只看该作者
<img src="images/smilies/lol.gif" smilieid="9" border="0" alt="" />
3#
 楼主| 发表于 2007-7-15 | 只看该作者
<br><br><div class="msgbody"><div class="msgheader">QUOTE:</div><div class="msgborder">原帖由 <i>tlsdhy</i> 于 2007-7-15 17:00 发表 <a href="http://www.im286.com/redirect.php?goto=findpost&amp;pid=20558790&amp;ptid=2068288" target="_blank"><img src="http://www.im286.com/images/common/back.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://www.im286.com/images/common/back.gif');}" onmousewheel="return imgzoom(this);" alt="" /></a><br /><img src="images/smilies/lol.gif" smilieid="9" border="0" alt="" /> </div></div><br>就知道落伍有很多你这种没技术的人.<img src="images/smilies/ohh.gif" smilieid="19" border="0" alt="" />&nbsp;&nbsp;装酷啊.&nbsp; &nbsp;<img src="images/smilies/mad.gif" smilieid="6" border="0" alt="" /> 会也不告诉偶一声,纯表情T向火星
4#
 楼主| 发表于 2007-7-15 | 只看该作者
<img src="images/smilies/sad.gif" smilieid="2" border="0" alt="" /> 你们会也不告诉我一下.草地了.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|广告联盟网  

GMT, 2024-11-16 , Processed in 0.063461 second(s), 19 queries .

Powered by Discuz! X3.2

© 2005-2021 www.ggads.com GGADS 广告联盟网

快速回复 返回顶部 返回列表