-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patha-link.html
57 lines (45 loc) · 1.54 KB
/
a-link.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<title>无标题文档</title>
<link href="css/cube.css" rel="stylesheet" type="text/css">
<style>
a{outline:none;text-decoration:none;color:#686868;-webkit-tap-highlight-color:rgba(200,200,200,0.3)}
a:visited{ color:#686868}
a:hover,a:focus{ color:#ff0033}
.color-black{color:#686868;}
</style>
<script type="text/javascript" src="jquery-1.4.2.min.js"$amp;></script>
<script type="text/javascript">
document.getElementById('a1').addEventListener('touchstart',function(){
this.style.color="#F00"
});
document.getElementById('a1').addEventListener('touchend',function(){
this.style.color="#848484"
});
document.getElementById('a2').addEventListener('touchstart',function(){
this.style.color="#F00"
});
document.getElementById('a2').addEventListener('touchend',function(){
this.style.color="#848484"
});
document.getElementById('a').addEventListener('touchend',function(){
this.style.color="#848484"
});
document.getElementById('a').addEventListener('touchend',function(){
this.style.color="#848484"
});
</script>
</head>
<body onLoad="refresh()">
<a id="test" href="http://www.baidu.com">test1</a>
<a id="a1" href="http://www.baidu.com">百度</a>
<a id="a2" href="https://www.google.com.hk/">谷歌</a>
<div id="alink">
<a id="a3" class="mya" href="http://www.baidu.com">百度</a>
<a id="a4" class="mya" href="https://www.google.com.hk/">谷歌</a>
</div>
</body>
</html>