⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insertmusic.html

📁 jsp+ajax实例
💻 HTML
字号:
<!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=gb2312" />
<title>添加音乐</title>
<link rel="stylesheet" href="css/css.css" type="text/css" />
</head>

<body>
<script language="javascript">
function on_submit()
{
if(form1.music.value=="")
  {
  document.getElementById("geming").innerHTML="<img src=error.gif height=15 width=15>"; 
  form1.music.focus(); 
  return false;
  }
else
  {
  document.getElementById("geming").innerHTML="<img src=yes.gif height=15 width=15>"; 
  }
if(form1.name.value=="")
  {
  document.getElementById("geshou").innerHTML="<img src=error.gif height=15 width=15>"; 
  form1.name.focus(); 
  return false;
  }
else
  {
  document.getElementById("geshou").innerHTML="<img src=yes.gif height=15 width=15>"; 
  }
if(form1.music2.value=="")
  {
  document.getElementById("gequ").innerHTML="<img src=error.gif height=15 width=15>"; 
  form1.music2.focus(); 
  return false;
  }
else
  {
  document.getElementById("gequ").innerHTML="<img src=yes.gif height=15 width=15>"; 
  }
}
</script>
<form name="form1" method="post" onSubmit="return on_submit()" action="upfile.jsp" enctype="multipart/form-data">
<table border="0" align="center">
<tr><th colspan="2">音乐添加(40M以内的音频或Media视频)</th></tr>
<tr><td align="right">歌名</td>
<td>
 <input type="text" name="music" />
 *<span id="geming"></span></td>
</tr>
<tr><td align="right">歌手</td>
<td><input type="text" name="name" />
*<span id="geshou"></span></td>
</tr>
<tr>
<td align="right">音乐/视频</td>
<td><input type="file" name="music2" />
  *<span id="gequ"></td>
</tr>
<tr>
  <td align="right">歌词</td>
  <td><input type="file" name="lrc" /></td>
</tr>
<tr>
<td align="right">图片</td>
<td><input type="file" name="pic" /></td>
</tr>
<tr><td colspan="2" align="center">
<input type="submit" name="submit" value="提交" />&nbsp;
<input type="reset" name="reset" value="重置" />&nbsp;

<input name="button" type="button" id="button" value="返回主页" onclick="self.location.href='index.html'" />
</td></tr>
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -