1 Star 0 Fork 0

linyangkai/网页设计大作业

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
contactus.html 3.66 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0, minimal-ui">
<title></title>
<link rel="stylesheet" type="text/css" href="css/body.css" />
<link rel="stylesheet" type="text/css" href="css/contactus.css" />
<link rel="stylesheet" type="text/css" href="css/header.css" />
<link rel="stylesheet" href="jquery-ui-1.12.1.custom/jquery-ui.css" />
<script src="js/jquery-3.2.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/index.js"></script>
<script src="js/jquery.easing.js" type="text/javascript" charset="utf-8"></script>
<script src="jquery-ui-1.12.1.custom/jquery-ui.js"></script>
<script src="js/cookie.js" type="text/javascript" charset="utf-8"></script>
<script src="js/canvas.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
function i()
{
//document.getElementById("form").addEventListener('submit', contactsubmit);
var cookit = getCookie("username");
if(cookit!="")
{
$("#loginin").text("注销");
}
Canvas_Initialization();
}
function check()
{
var iswrong = false;
if(document.getElementById("input_name").value == "")
{
document.getElementById("namewrong").innerHTML = "名字不能为空";
iswrong=true;
}
else
{
document.getElementById("namewrong").innerHTML = "";
}
var email = document.getElementById("input_email").value;
if(email == "")
{
document.getElementById("emailwrong").innerHTML="邮箱不能为空";
iswrong=true;
}
if(email.indexOf("@")==-1)
{
document.getElementById("emailwrong").innerHTML="邮箱格式不正确";
iswrong=true;
}
else
{
document.getElementById("emailwrong").innerHTML="";
}
if(!iswrong)
{
document.getElementById("form").submit();
}
}
</script>
</head>
<body onload="i()">
<header>
<nav>
<a href="index.html" id="Game">Game</a>
<a id="navlistbutton"></a>
<ul id="navlist">
<li>
<a href="index.html" id="homepage">主页</a>
</li>
<li>
<a href="ranking.html" id="rankinglist">排行榜</a>
</li>
<li>
<a href="other.html" id="other">关于</a>
</li>
<li>
<a href="loginin.html" id="loginin">登录</a>
</li>
</ul>
</nav>
</header>
<canvas id="myCanvas"></canvas>
<div id="text_contactsus">联系我们</div>
<form action="mailto:[email protected]" method="GET" enctype="text/plain" id="form">
<section id="form_section">
<textarea type="text" cols=1 rows=1 placeholder="您的名字" name="name" id="input_name"></textarea>
<div id="namewrong">&nbsp;</div>
<textarea type="text" cols=1 rows=1 placeholder="您的邮箱" name="email" id="input_email"></textarea>
<div id="emailwrong">&nbsp;</div>
</section>
<div><textarea type="text" placeholder="建议..." id="input_advise" name="advise"></textarea></div>
<input type="button" id="contactsubmit" value="提交" onclick="check()"/>
</form>
<section id="address">
<div>
<p>公司地址</p>
<a href="#" id="goto4399">前往官网</a>
</div>
<div>
<p>广州</p>
<p>1234561111</p>
<p>1234561</p>
</div>
<div>
<p>上海</p>
<p>12345111611</p>
<p>12345116</p>
</div>
<div>
<p>北京</p>
<p>12311145611</p>
<p>12345116</p>
</div>
</section>
<iframe src="http://www.4399.com/" width="100%" height="200px" id="fuckiframe"></iframe>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/tkkeni/WebDesign.git
[email protected]:tkkeni/WebDesign.git
tkkeni
WebDesign
网页设计大作业
master

搜索帮助