test3.html
1.4 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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>发送鼠标信息的demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="nico 0.5.1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
<script>
(
function(w,d,s,j,f)
{
w['YohoAcquisitionObject'] = f;
w[f] = function()
{
w[f].p=arguments;
};
var a=d.createElement(s);
var m=d.getElementsByTagName(s)[0];
a.async=1;
a.src=j;
m.parentNode.insertBefore(a,m);
}
)(window,document,'script','http://cdn.yoho.cn/yas-jssdk/1.0.15/yas-debug.js','_yas');
_yas(1*new Date(),'1.0','ds6das2kkj','21323231','geo', $('.test >a >img'));
window.onload = function(){
alert('haha!');
var button = document.getElementById('button');
button.onclick = function(e){
_yas.sendMouseEvent(e);
}
}
</script>
</head>
<body style="height:2000px; width:800px; scroll:auto">
<div class="test">
<a href="test2.html">
<img src="http://7xlrzp.com1.z0.glb.clouddn.com/IMG_0118.JPG?format/webp">
</a>
<a href="test.html">
<img src="http://7xlrzp.com1.z0.glb.clouddn.com/IMG_0118.JPG?format/webp">
</a>
</div>
<p><button id="button">触发记录</button>
</body>
</html>