"For i=1 to 5Response.Write ""for j=0 to 9Response.write""&k&""k=k+1nextResponse.Write ""nextResponse.write ""%>实验内容二如下。完善第2章实验“简单的投票系统”,使网页能正确显示票数和统计图。使用Application对象记录投票信息。"/>
首页 百科知识 ASP网页编程基础实验

ASP网页编程基础实验

时间:2022-10-15 百科知识 版权反馈
【摘要】:ASP网页编程基础实验_网页制作与网站设计(第二版) ASP网页编程基础实验实验内容一如下。用循环语句把0~49中的50个整数输出到5行10列的表格中,如下图所示。当光标移动到某一行上面时,此行变色,离开此行时恢复原来的色彩。网页参考代码如下:使用循环<%Dim i,j,kk=0Response.Write ""For i=1 to 5Response.Write ""for j=0 to 9Response.write""k=k+1nextResponse.Write ""nextResponse.write "
"&k&"
"%>实验内容二如下。完善第2章实验“简单的投票系统”,使网页能正确显示票数和统计图。使用Application对象记录投票信息。

【实验六】 ASP网页编程基础实验

实验内容一如下。

(1)用循环语句把0~49中的50个整数输出到5行10列的表格中,如下图所示。

img443

(2)当光标移动到某一行上面时,此行变色,离开此行时恢复原来的色彩。

(3)网页参考代码如下:

<html>

<head>

<title>使用循环</title>

</head>

<body>

<%

Dim i,j,k

k=0

Response.Write "<table width=98% border=1>"

For i=1 to 5

Response.Write "<tr height=25 bgcolor=#ffffff

onMouseOver=JavaScript:this.bgColor='red'

onMouseOut=JavaScript:this.bgColor='#ffffff'>"

for j=0 to 9

Response.write"<td>"&k&"</td>"

k=k+1

next

Response.Write "</tr>"

next

Response.write "</table>"

%>

</body>

</html>

实验内容二如下。

(1)完善第2章实验“简单的投票系统”,使网页能正确显示票数和统计图

(2)使用Application对象记录投票信息。

免责声明:以上内容源自网络,版权归原作者所有,如有侵犯您的原创版权请告知,我们将尽快删除相关内容。

我要反馈