Phiên bản đầy đủ: jsB@nk » Vui nhộn » Format ổ cứng
URL: https://www.javascriptbank.com/fake-hdd-format.html
Hiệu ứng JavaScript này sẽ tạo một quá trình format ổ cứng giả trên máy khách.
Phiên bản đầy đủ: jsB@nk » Vui nhộn » Format ổ cứng
URL: https://www.javascriptbank.com/fake-hdd-format.html
<SCRIPT language=javaScript>var count = 0var bar_count = 0var bartxt = ""var delay = 20var fun_name = "virus()"bar_count = count + 3function show_bar() { box.innerHTML = "<table bgcolor='black' border='1' width='280' height='35'><td><table><td><font color='yellow'><span id='bar'></span></font></td></table></td></table>" virus() }function virus() {if (document.all) { msg.innerHTML = "DOWNLOADING VIRUS" if (count < 100) { count++ txt = count + "% complete" window.status = txt counter.innerHTML = txt if (bar_count == count) { bartxt = bartxt + "#" bar.innerHTML = bartxt bar_count = count + 3 } timer=setTimeout(fun_name,delay) } else { msg.innerHTML = "FORMATTING HARD DRIVE" bartxt = "" bar.innerHTML = bartxt count = 0 bar_count = count + 3 delay = 500 fun_name = "format()" format() } } }function format() { if (document.all) { if (count < 100) { count++ txt = count + "% complete" window.status = txt counter.innerHTML = txt if (bar_count == count) { bartxt = bartxt + "#" bar.innerHTML = bartxt bar_count = count + 3 } timer=setTimeout(fun_name,delay) } else { msg.innerHTML = "FORMAT OF HARD DRIVE COMPLETE." counter.innerHTML = "ALL DATA ERASED" bartxt = "" bar.innerHTML = bartxt line.innerHTML = bartxt box.innerHTML = bartxt } }}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<FONT color=blue><SPAN id=msg></SPAN></FONT></B> <HR width=330> <BR> <H1><FONT color=red><SPAN id=counter> <FORM><INPUT onclick=show_bar() type=button value=Press></FORM></SPAN></FONT></H1> <HR width=330> </CENTER> <CENTER><SPAN id=line></SPAN><SPAN id=box></SPAN><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->