-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathothertest.html
85 lines (74 loc) · 2.75 KB
/
othertest.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="css/axure_rp_page.css" type="text/css" rel="stylesheet"/>
<link href="css/default.css" type="text/css" rel="stylesheet"/>
<link href="css/othertest.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="common.js"></script>
<script>
function passname() {
document.getElementById("name").value = getUrlParam("name");
}
function checknum() {
var cnt = 0;
for ( var i = 0; i < document.forms["attrform"]["attr"].length; ++i ) {
if ( document.forms["attrform"]["attr"][i].checked == true ) cnt++;
}
if(cnt != 5) {
alert( '请选择5个选项' );
return false;
}
else {
return true;
}
}
document.title = "帮"+getUrlParam("name")+"测";
//function copyUrl2()
// {
// var Url2=window.location.href;
// var oInput = document.createElement('input');
// oInput.value = Url2;
// document.body.appendChild(oInput);
// oInput.select(); // 选择对象
// document.execCommand("Copy"); // 执行浏览器复制命令
// oInput.className = 'oInput';
// oInput.style.display='none';
// alert('复制成功');
// }
</script>
</head>
<body>
<div id="u23" class="ax_default heading_1">
<div id="u23_text" class="text ">
<p style="font-size:70px;"><span style="color:#003399;">请选择5个符合<script>document.write(getUrlParam("name"))</script>的词</span></p><p style="font-size:45px;"><span style="color:#990000;">*重新点击词语可以取消选择哦</span></p><p style="font-size:45px;"><span style="color:#990000;"><br></span></p>
</div>
</div>
<form name="attrform" onsubmit="passname(); return checknum()" action="OtherTest" method="POST">
<input type="hidden" name="name" id="name">
<div class="attrs_mat">
<script>
for(var i = 0; i < 10; i++) {
document.write("<div class='attrs_row'>");
for(var j = 4*i; j < 4*i+4; j++) {
document.write("<label class='my_protocol'>");
document.write("<input class='input_agreement_protocol' type='checkbox' name='attr' value='"+j+"' />");
document.write("<span>");
document.write("<div class='attr_text'>");
document.write("<p><span>"+attr[j]+"</span></p>");
document.write("</div>");
document.write("</span>");
document.write("</label>");
}
document.write("</div>");
document.write("<br>");
}
</script>
</div>
<input class="submit ax_default primary_button" type="submit" value="提交" />
</form>
<!--<input type="button" onClick="copyUrl2()" value="点击复制链接" />-->
<!--<script>document.write(window.location.href)</script>-->
</body>
</html>