能不能帮忙写一个动态添加课程的课程表,前面一部分跟我给的代码差不多,一定只能用JS语言,用到select与option,不知道是不是应该用文本框啊

qq_24885695 2015-10-31 11:58:36
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>课程表</title>
</head>

<body>
<p align="center" style="font:'微软雅黑';font-size:24px">课程表</p>
<table border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333" style="font-size:18px">
<tr>
<td height="20" colspan="2" align="center" bgcolor="#FFFFFF">时间段</td>
<td width="100" height="20" align="center" bgcolor="#FFFFFF">起止时间</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期一</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期二</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期三</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期四</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期五</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期六</td>
<td width="200" height="20" align="center" bgcolor="#FFFFFF">星期日</td>

</tr>
<tr>
<td width="100" height="25" rowspan="5" align="center" bgcolor="#FFFFFF">上午</td>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第一节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">8∶00~8∶45</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第二节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">8∶50~9∶35</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第三节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">9∶55~10∶40</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第四节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">10∶45~11∶30</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第五节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">11∶35~12∶20</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="100" height="25" rowspan="4" align="center" bgcolor="#FFFFFF">下午</td>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第六节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">13∶30~14∶15</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第七节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">14∶20~15∶05</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第八节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">15∶25~16∶10</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第九节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">16∶15~17∶00</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="100" height="25" rowspan="3" align="center" bgcolor="#FFFFFF">晚上</td>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第十节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">18∶30~19∶15</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第十一节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">19∶20~20∶05</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td width="140" height="25" align="center" bgcolor="#FFFFFF">第十二节课</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF">20∶10~20∶55</td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
<td width="150" height="25" align="center" bgcolor="#FFFFFF"></td>
</tr>
</table>
<br />
<hr />
</body>
</html>


...全文
128 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

50,329

社区成员

发帖
与我相关
我的任务
社区描述
Java相关技术讨论
javaspring bootspring cloud 技术论坛(原bbs)
社区管理员
  • Java相关社区
  • 小虚竹
  • 谙忆
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧