Created
March 24, 2012 13:10
-
-
Save tlxue/2182601 to your computer and use it in GitHub Desktop.
kidnapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title></title> | |
<script type="text/javascript"> | |
var ct = 0, | |
m_u = "http://xtxtg.netally.cn/southeast1.html", | |
l = "", | |
p_w = 343, | |
p_h = 273, | |
p_l = 0, | |
p_t = 0, | |
pt = 4, | |
xyz = "5-000000"; | |
var pd = 500, | |
cd = 60000, | |
h = "", | |
mb, mc, ml, mt, mp, my = 0, | |
ie = document.all ? true : false, | |
op = 0; | |
if (ie) var location = ""; | |
setTimeout("i()", pd); | |
function i() { | |
l = "http://" + l; | |
mp = gp(); | |
bh(); | |
if (pt != 5) { | |
document.getElementById("temp_box").innerHTML = h; | |
mb = document.getElementById("box"); | |
mb.style.width = p_w + "px"; | |
if (ct == 0) mc = document.getElementById("ai"); | |
else { | |
mc = document.getElementById("is"); | |
mc.setAttribute("src", m_u); | |
document.getElementById("il").setAttribute("href", l); | |
mc.onclick = "gu('" + l + "');" | |
} | |
mc.style.width = p_w + "px"; | |
mc.style.height = p_h + "px"; | |
ml = p_l != 0 ? p_l : (mp[0] - p_w) / 2; | |
mt = p_t != 0 ? p_t : (mp[1] - p_h) / 2; | |
mb.style.left = ml + "px"; | |
mb.style.top = mt + "px"; | |
ct == 2 && pp() | |
} | |
} | |
function pp() { | |
if (pt == 1) mb.style.display = "block"; | |
else if (pt == 2) { | |
mb.style.left = mp[0] - p_w - 2 + "px"; | |
mb.style.top = mp[1] + "px"; | |
mb.style.display = "block"; | |
bub() | |
} else if (pt == 3) { | |
mb.style.left = mp[0] - p_w - 2 + "px"; | |
mb.style.top = mp[1] + "px"; | |
mb.style.display = "block"; | |
tdb() | |
} else if (pt == 4) { | |
mb.style.left = mp[0] - p_w - 2 + "px"; | |
mb.style.top = mp[1] - p_h - 22 + "px"; | |
mb.style.display = ""; | |
mc.onload = co | |
} else mb.style.display = "block"; | |
cd != 0 && setTimeout("cpp()", cd) | |
} | |
function tit() { | |
try { | |
document.title = window.frames.frm.document.title | |
} catch (a) {} | |
} | |
function bub() { | |
if (my >= p_h) { | |
mc.style.height = p_h; | |
clearTimeout(mm); | |
return false | |
} | |
my += 7; | |
mb.style.top = mp[1] - my - 20 + "px"; | |
if (ct == 0) mc.style.height = my + "px"; | |
mm = setTimeout("bub()", 50) | |
} | |
function tdb() { | |
if (my >= p_h) { | |
clearTimeout(mm); | |
return false | |
} | |
my += 7; | |
mb.style.top = my - p_h + "px"; | |
mm = setTimeout("tdb()", 50) | |
} | |
function co() { | |
if (op < 100) op += 4; | |
else { | |
clearTimeout(mm); | |
return false | |
} | |
if (ie) mb.style.filter = "alpha(opacity:" + op + ")"; | |
else mb.style.opacity = op / 100; | |
mm = setTimeout("co()", 100) | |
} | |
function bh() { | |
if (pt == 5) { | |
if (ct == 0) document.getElementById("top_box").innerHTML = '<div id="box" style="width:100%;text-align:center;"><iframe id="ai" name="ai" src="' + m_u + '" scrolling="no" frameborder="no" width="100%" height="' + p_h + '" style="overflow-x:hidden;" ></iframe></div><div align="center" style="position:absolute; right:0px; top:' + (p_h - 22) + ';cursor:pointer;line-height:20px;font-size:12px;border:1px solid" onclick="cpp()"> \u5173\u95ed </div>'; | |
else { | |
document.getElementById("top_box").innerHTML = '<div id="box" style="width:100%;text-align:center;"><a id="il" href="#" target="_blank"><img src="' + m_u + '" style="border:none;" /></a><div>'; | |
document.getElementById("il").setAttribute("href", l) | |
} | |
setTimeout("cpp()", 15E3) | |
} else { | |
h += '<div id="box" style="display:none;position:absolute;z-index:10001;font-size:12px;"><style>* html #menu {position:absolute;}</style>'; | |
h += '<span style="float:right;border:1px solid"><a id="close_bnt" href="#" onClick="cpp();return false;" style="line-height:20px;color:#000000;text-decoration:none;"> \u5173\u95ed </a></span>'; | |
if (ct == 0) h += '<iframe id="ai" name="ai" src="' + m_u + '" onload="pp()" scrolling="auto" frameborder="no" width="100%" height="0" style="overflow-x:hidden;"></iframe></div>'; | |
else { | |
h += '<a id="il" href="#" target="_blank" style="float:left;display:block;">'; | |
h += '<img id="is" src="#" style="border:none;background:#ccc;vertical-align:bottom;"></a></div>' | |
} | |
} | |
} | |
function gu(a) { | |
window.open("http://" + a) | |
} | |
function cpp() { | |
document.getElementById("top_box").style.display = "none"; | |
document.getElementById("box").style.display = "none" | |
} | |
function gp() { | |
var a = document.documentElement; | |
return s = [window.innerWidth || self.innerWidth || a && a.clientWidth || document.body.clientWidth, window.innerHeight || self.innerHeight || a && a.clientHeight || document.body.clientHeight] | |
}; < /head><body style="margin:0px;overflow-x:hidden;overflow-y:hidden;"><div id="top_box"></div > < iframe id = "frm" | |
src = "http://www.zhihu.com/?" | |
scrolling = auto width = "100%" | |
height = "100%" | |
frameborder = "no" | |
onload = "tit();" | |
style = "position:fixed;" > < /iframe><div id="temp_box"></div > < /body></html > | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment