Начало
Сообщения
Текстовая Рябь
Рябь создана, преобразовывая каждое последовательное письмо от нижнего регистра до верхнего регистра.
JavaScript Messages: Текстовая Рябь
<!-- THREE STEPS TO INSTALL TEXT RIPPLE: 1. Copy the coding into the HEAD of your HTML document 2. Add the onLoad event handler into the BODY tag 3. Put the last coding into the BODY of your HTML document --> <!-- STEP ONE: Paste this code into the HEAD of your HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <! > <! > <!-- Begin ripplespeed = 300; // lower = faster string = "Sally sells seashells by the seashore. "; function rippleText() { box = document.scrollform.box; // box to display text in arg0 = rippleText.arguments[0]; i = (arg0) ? ( (arg0 == string.length) ? 0 : arg0) : 0; box.value = string.substring(0,i) + (string.substring(i,i+1).toUpperCase()) + string.substring(i+1, string.length); scrollcmd = "rippleText("+(i+1)+")"; timer = window.setTimeout(scrollcmd, ripplespeed); } // End --> </script> </HEAD> <!-- STEP TWO: Insert the onLoad event handler into your BODY tag --> <BODY OnLoad="rippleText()"> <!-- STEP THREE: Copy this code into the BODY of your HTML document --> <center> <form name=scrollform> <input type=text name=box size=50> </form> </center> <!-- Script Size: 1.32 KB -->