матрица в html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document </title> </head> <body> <canvas id="q" onmousemove="color_random()"> </canvas> <!--For Matrix--> <script> var width = q.width = 2200; var height = q.height = 1300; var letters = Array(256).join(1).split(''); var draw = function () { q.getContext('2d').fillStyle='rgba(0,0,0,.05)'; q.getContext('2d').fillRect(0,0,width,height); q.getContext('2d').fillStyle='rgba(0,327,217,' + ( Math.random() * 5 + 0.80 ) + ')';; letters.map(function(y_pos, index){ text = String.fromCharCode(65+Math.random()*33); x_pos = index * 10; q.getContext('2d').fillText(text, x_pos, y_pos); letters[index] = (y_pos > 758 + Math.random() * 1e4) ? 0 : y_pos + 10; }); }; setInterval(draw, 50); function color_random(){ q.getContext('2d').fillStyl = 'red'; } </script> </body> </html> Код <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document </title> </head> <body> <canvas id="q" onmousemove="color_random()"> </canvas> <!--For Matrix--> <script> var width = q.width = 2200; var height = q.height = 1300; var letters = Array(256).join(1).split(''); var draw = function () { q.getContext('2d').fillStyle='rgba(0,0,0,.05)'; q.getContext('2d').fillRect(0,0,width,height); q.getContext('2d').fillStyle='rgba(0,327,217,' + ( Math.random() * 5 + 0.80 ) + ')';; letters.map(function(y_pos, index){ text = String.fromCharCode(65+Math.random()*33); x_pos = index * 10; q.getContext('2d').fillText(text, x_pos, y_pos); letters[index] = (y_pos > 758 + Math.random() * 1e4) ? 0 : y_pos + 10; }); }; setInterval(draw, 50); function color_random(){ q.getContext('2d').fillStyl = 'red'; } </script> </body> </html> создаём текстовый файл ВАШЕНАЗВАНИЯ.html и запихиваете туда код, запускаем дабл кликом , ??? , профит
Happy, текстовый файл вашеназвание.html? А может создадим файл index.html что бы сайт запустился, а потом через блокнот изменить его содержимое?