test3.html 1.28 KB
<!DOCTYPE HTML>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>yas-jssdk - 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>
(
  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','/dist/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>