asp程序论坛
<%ifrs("day")>199thenresponse.write"<b><fontcolor=#ff0000>"&rs("Title")&"</font></b>"...
<%if rs("day")>199 then
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
else
if rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
else
if rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
else
if rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
else
if rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
else
if rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
else
if rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
else
if rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
end if
end if
end if
end if
end if
end if
end if%>
求程序的简写法,谢谢了! 展开
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
else
if rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
else
if rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
else
if rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
else
if rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
else
if rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
else
if rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
else
if rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
end if
end if
end if
end if
end if
end if
end if%>
求程序的简写法,谢谢了! 展开
2个回答
展开全部
if rs("day")>199 then
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
elseif rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
elseif rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
elseif rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
elseif rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
elseif rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
elseif rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
elseif rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
elseif rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
elseif rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
elseif rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
elseif rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
elseif rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
elseif rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
elseif rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
展开全部
if rs("day")>199 then
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
elseif rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
elseif rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
elseif rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
elseif rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
elseif rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
elseif rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
elseif rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
response.write "<b><font color=#ff0000>"&rs("Title")&"</font></b>"
elseif rs("day")>149 then
response.write "<b><font color=#0000FF>"&rs("Title")&"</font></b>"
elseif rs("day")>99 then
response.write "<b><font color=#FF00FF>"&rs("Title")&"</font></b>"
elseif rs("day")>79 then
response.write "<b><font color=#008000>"&rs("Title")&"</font></b>"
elseif rs("day")>39 then
response.write "<font color=#ff0000>"&rs("Title")&"</font>"
elseif rs("day")>29 then
response.write "<font color=#0000ff>"&rs("Title")&"</font>"
elseif rs("day")>19 then
response.write "<font color=#FF00FF>"&rs("Title")&"</font>"
elseif rs("day")>9 then
response.write "<font color=#008000>"&rs("Title")&"</font>"
else
Response.Write""&rs("Title")&""
end if
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询