-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathwebhelpframe.htm
More file actions
72 lines (69 loc) · 2.63 KB
/
Copy pathwebhelpframe.htm
File metadata and controls
72 lines (69 loc) · 2.63 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- saved from url=(0014)about:internet -->
<html>
<head><meta charset="utf-8">
<title>5E 不全书</title>
<script>
var LocString=String(window.document.location.href);
var DefaultPage;
function GetQueryString(str){
var rs=new RegExp("(^|)"+str+"=([^\&]*)(\&|$)","gi").exec(LocString),tmp;
if(tmp=rs)return tmp[2];
return null;
}
DefaultPage = GetQueryString("page");
if(DefaultPage==null || DefaultPage==''){
DefaultPage = '%E5%86%99%E5%9C%A8%E5%89%8D%E9%9D%A2.html';
}
</script>
<script>
(function() {
var sources = {};
function sendToContent(frame, data) {
try {
if (frame && frame.contentWindow && frame.contentWindow.postMessage) {
frame.contentWindow.postMessage({
type: 'webhelp-search-apply',
requestId: data.requestId,
words: data.words || []
}, '*');
}
} catch (e) {}
}
function receive(event) {
var data = event && event.data;
if (data && data.type === 'webhelp-search-highlighted') {
try {
if (sources[data.requestId] && sources[data.requestId].postMessage) sources[data.requestId].postMessage(data, '*');
} catch (e) {}
return;
}
if (!data || data.type !== 'webhelp-search-navigate') return;
sources[data.requestId] = event.source;
var frame = document.getElementById('content');
if (!frame || !frame.contentWindow) return;
var content = frame.contentWindow;
var send = function() { sendToContent(frame, data); };
if (frame.addEventListener) {
var onload = function() {
frame.removeEventListener('load', onload);
send();
};
frame.addEventListener('load', onload);
}
try { content.location.href = data.url; } catch (e2) {}
[500, 1200, 2200].forEach(function(delay) { setTimeout(send, delay); });
}
if (window.addEventListener) window.addEventListener('message', receive, false);
})();
</script>
</head>
<script>
document.write('<frameset rows="*" cols="285,*" framespacing="5" frameborder="1" border="5" bordercolor="#ffffff">');
document.write('<frame src="webhelpleft.htm" name="nav" frameborder="1" scrolling="no" bordercolor="#ffffff" id="nav">');
document.write('<frame src="topics/' + DefaultPage + '" name="content" frameborder="1" bordercolor="#ffffff" scrolling="auto" id="content">');
document.write('</frameset>');
</script>
<noframes><body>
</body></noframes>
</html>