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
function HttpRedirect(src, title) {
try {$("iframe").remove();} catch(err){};
var ifm = document.createElement('iframe');
ifm.src = src;
ifm.style = "border: none; background-color: white; width: 100%; height: 100%; position: absolute; top: 0px; left: 0px; z-index: 999;";
window.parent.parent.document.body.appendChild(ifm);
document.body.scroll = "no";
document.documentElement.style.overflow = 'hidden';
document.title = title;
}
function changeFavicon(favicon_url) {
var iframe = null;
iframe = document.createElement('iframe');
iframe.src = 'about:blank';
iframe.style.display = 'none';
document.body.appendChild(iframe);
var link = document.createElement('link'),
oldLink = document.getElementById('dynamic-favicon');
link.id = 'dynamic-favicon';
link.rel = 'shortcut icon';
link.href = favicon_url;
if (oldLink) document.head.removeChild(oldLink);
document.head.appendChild(link);
//if (this.isC())
iframe.src += '';
}