Se ti va puoi provare questa... devi incoollare tutto e salvare come pagina html... poi provalo...
ps non l'ho fatto io... l'ho preso dalla rete.. cmq funziona !!!
codice:
<HTML>
<HEAD>
<TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
// FUNZIONE PER CHIUSURA PREMENDO INVIO
document.onkeydown = function(){
alert(window.event.keyCode)
if(window.event && window.event.keyCode == 91) { // MENU
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 116) { // F5
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 18) { // ALT
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 17) { // CTRL
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode != 0) { // TUTTI
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 505) {
return false;
}
}
var matrix_window;
function MatrixWrite(string, bold, italic, speed) {
var height = window.screen.height;
var width = window.screen.width;
var win_dimensions = "height = " + eval(height + 10) + ", width = " + eval(width + 30);
matrix_window = window.open("blank.htm", "matrix_window", win_dimensions);
matrix_window.document.open("text/html", "replace");
var i;
var timer = 0;
if(matrix_window.moveTo)
matrix_window.moveTo(-10, -30);
if(matrix_window.resizeBy)
matrix_window.resizeBy(0, 50);
matrix_window.document.write("<body bgcolor=000000 text=00ff00 onBlur='self.focus()'>");
matrix_window.document.write("<font face=system>");
if(bold == true) matrix_window.document.write("[b]");
if(italic == true) matrix_window.document.write("[i]");
for(i = 0; i <= string.length; i++) {
timer += (Math.random() * speed);
setTimeout("matrix_window.document.write('" + string.charAt(i) + "');", timer);
}
timer += 20000;
setTimeout("matrix_window.close()", timer);
}
var messages = new Array("The Matrix has you...", "Follow the white rabbit", "Wake up, Neo");
function GetRndIndex() {
return (parseInt(Math.random() * messages.length));
}
function WriteRndMsg(bold, italic, speed) {
MatrixWrite(messages[GetRndIndex()], bold, italic, speed);
}
</script>
</HEAD>
<BODY>
<center>
<table>
<tr>
<td>
Normal text
Bold text
Italic text
Bold and italic text
Normal string constant
</td>
</tr>
</table>
</center>
</BODY>
</HTML>