forked from anbang/javascript-notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-file.html
More file actions
184 lines (159 loc) · 5.21 KB
/
test-file.html
File metadata and controls
184 lines (159 loc) · 5.21 KB
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
html, body {
width: 100%;
height: 100%;
position: relative;
}
.diy-window {
position: fixed;
width: 500px;
height: 150px;
border: 1px dashed darkcyan;
/*opacity: 0.2;*/
}
.window-title {
padding: 10px 15px;
background-color: #f4f4f4;
position: relative;
}
.window-title .close-window {
display: inline-block;
position: absolute;
right: 20px;
cursor: pointer;
}
.diy-window .window-body {
position: absolute;
right: 50px;
bottom: 30px;
}
.test-one {
width: 500px;
height: 300px;
background-color: #37C7D4;
border-radius: 30px 10px;
-webkit-border-radius: 30px 10px;
}
.test-two {
width: 500px;
height: 300px;
background-color: #d46c4d;
-webkit-border-radius: 30px 10px;
border-radius: 30px 10px;
}
</style>
</head>
<body>
<div class="test-one">
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</div>
<div class="test-two">
<ul>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
<li><a href=""></a></li>
</ul>
</div>
<DIV>
<UL>
<LI><A></A></LI>
<LI><A></A></LI>
<LI><A></A></LI>
<LI><A>
</A></LI>
</UL>
</DIV>
<button class="wui-button wui-button-s wui-button-orange j-block-today-user"
data-users="{"data":[{"user_id":"723579806832907230","wx_nick_name":"暖宝宝","black_status":2,"wx_head_img_url":"http://wx.qlogo.cn/mmopen/qGusKyb0IEchePqdeTeVSkgNy7TKehZCFlK5XSjxlt7rGLoaGeqdPnHOtI28gvn8ZseicboUDwFprYVIico8SVxQ/0"},{"user_id":"721899587060764672","wx_nick_name":"名字还没想好。。","black_status":2,"wx_head_img_url":"http://wx.qlogo.cn/mmopen/Mb2TiaPnTNictgZU0DHJwfbCHlxg3niaaIgibztSYm0S2oFP3nw1Ny1iaB4gPPykIQUyyVEWSB0GjIpCeIZaJXTZWib3hPJWkqiadut/0"},{"user_id":"721524177898700800","wx_nick_name":"小海螺 ~","black_status":2,"wx_head_img_url":"http://wx.qlogo.cn/mmopen/ajNVdqHZLLBa8boOZ7cNjY9uYPico3VC2u2nvcaSqTibaibG0B8YJoMFeekfVlnPmpOahcH1e4RNPposaRQice2jMg/0"}],"count":3}">
<i class="iconfont wui-txt-sm"></i> 拉黑该IMEI用户
</button>
<div id="dsdsdsd"></div>
<mark>Text</mark>
<strong>Text</strong>
<em>Text</em>
<span id="test">ddddd</span>
<div class="diy-window">
<div class="window-title">
<span>的感觉如何</span>
<span class="close-window" id="close-window">X</span>
</div>
<div class="window-body">
<input type="button" class="select-btn" id="input-one" name="islike" value="我喜欢"/>
<input type="button" class="select-btn" id="input-two" name="islike" value="不喜欢"/>
</div>
</div>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<a target="_blank" href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&[email protected]" style="text-decoration:none;"><img src="http://rescdn.qqmail.com/zh_CN/htmledition/images/function/qm_open/ico_mailme_02.png"/></a>
<br/>
<div class="shake-monery-user">
<span class="shake-monery-user-avatar">
<img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png" alt="用户头像">
</span>
<a href="/shakemoney/user_detail?id=688189193821626368" target="_blank" data-userid="688189193821626368" class="j-user-cardinfo">用户名字</a>
</div>
<script>
var ooTest = document.getElementById("test");
console.dir(ooTest);
//todo 获取需要的元素
var inoputOne = document.getElementById("input-one");
var inoputTwo = document.getElementById("input-two");
var closeWindow = document.getElementById("close-window");
//todo input-two的mouse事件
inoputTwo.onmouseover = function () {
inoputTwo.value = "我喜欢";
inoputOne.value = "不喜欢";
};
inoputTwo.onmouseout = function () {
defaultValue();
};
inoputOne.onmouseover = function () {
defaultValue()
};
inoputOne.onmouseout = function () {
defaultValue();
};
//todo 点击关闭
closeWindow.onclick = function () {
};
//默认的value值
function defaultValue() {
inoputOne.value = "我喜欢";
inoputTwo.value = "不喜欢";
}
"use strict";
var aaa=2;
console.log(typeof aaa);//number
aaa="222";
console.log(typeof aaa);//string
aaa=true;
console.log(typeof aaa);//boolean
aaa=null;
console.log(typeof aaa);//object
aaa=function(){};
console.log(typeof aaa);//function
aaa={"name":"test"};
console.log(typeof aaa);//object
</script>
</body>
</html>