-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathie-warning.html
88 lines (75 loc) · 2.72 KB
/
ie-warning.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
86
87
88
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Warning</title>
<link href="css/ie-warning.css" rel="stylesheet" type="text/css" />
<script>
var item = location.href.split('return=');
var return_url = item[1];
function agree() {
setCookie('warning_has_shown', 'yes');
window.location.href = return_url;
}
function setCookie(name, value) {
if(name != '')
today = new Date();
expires = new Date(today.getTime() + (8 * 7 * 86400000));
document.cookie = name + '=' + value + '; expires=' + expires;
}
function getCookie(name) {
if(name == '')
return('');
name_index = document.cookie.indexOf(name + '=');
if(name_index == -1)
return('');
cookie_value = document.cookie.substr(name_index + name.length + 1, document.cookie.length);
end_of_cookie = cookie_value.indexOf(';');
if(end_of_cookie != -1)
cookie_value = cookie_value.substr(0, end_of_cookie);
space = cookie_value.indexOf('+');
while(space != -1) {
cookie_value = cookie_value.substr(0, space) + ' ' +
cookie_value.substr(space + 1, cookie_value.length);
space = cookie_value.indexOf('+');
}
return(cookie_value);
}
</script>
</head>
<body>
<div class="warn">
<div class="black">
<h1><span class="orange">Oops!</span> You're using Internet Explorer 6-8 ?</h1>
<p>You're using Internet Explorer 6-8 to browse webpages right now, our website will work better for you if you upgrade to Internet Explorer 9 or switch to another browser.</p>
<div class="action clear">
<div class="left">
<input checked="checked" type="checkbox"> I know, skip it.
</div>
<div class="right">
<a style="cursor:pointer" onclick="agree()"><img src="img/warning.png" /></a>
</div>
</div>
</div>
<div class="white clear">
<ul class="browser">
<li>
<p><a href="http://www.apple.com.cn/safari/" target="_blank"><img src="img/safari.png" /></a></p>
<p><a href="http://www.apple.com.cn/safari/" target="_blank">Safari</a></p>
</li>
<li>
<p><a href="http://www.google.com/chrome/?hl=zh-CN" target="_blank"><img src="img/chrome.png" /></a></p>
<p><a href="http://www.google.com/chrome/?hl=zh-CN" target="_blank">Chrome</a></p>
</li>
<li>
<p><a href="http://www.mozillaonline.com/" target="_blank"><img src="img/firefox.png" /></a></p>
<p><a href="http://www.mozillaonline.com/" target="_blank">Firefox</a></p>
</li>
<li>
<p><a href="http://www.operachina.com/" target="_blank"><img src="img/opera.png" /></a></p>
<p><a href="http://www.operachina.com/" target="_blank">Opera</a></p>
</li>
</ul>
</div>
</div>
</body>