Phiên bản đầy đủ: jsB@nk » Tiêu đề » Thanh trạng thái » Viết chữ trên thanh trạng thái
URL: https://www.javascriptbank.com/write-text-in-status-bar.html
Hiệu ứng sẽ viết những chữ mà người dùng đã nhập vào lên thanh trạng thái của trang web hiện hành.
Phiên bản đầy đủ: jsB@nk » Tiêu đề » Thanh trạng thái » Viết chữ trên thanh trạng thái
URL: https://www.javascriptbank.com/write-text-in-status-bar.html
<script language=\\\"JavaScript\\\">//by Brett Burridgefunction JSrot13(text) {var rot13text_rotated = \\\"\\\"; /* the function will return this string */;for (i = 1 ; i < (text.length + 1); i++) {k = text.charCodeAt(i-1);if (k >= 97 && k <= 109) {k = k + 13;} else if (k >= 110 && k <= 122) {k = k - 13;} else if (k >= 65 && k <= 77) {k = k + 13;} elseif (k >= 78 && k <= 90) {k = k - 13;} rot13text_rotated = rot13text_rotated + String.fromCharCode(k); }return rot13text_rotated;}</script><script language=\\\"JavaScript\\\">function displayROT13() {var t = self.text1.valuewindow.status=(t);window.text1.value = JSrot13(self.text1.value);}</script><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com--><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com--><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
Enter text to transform using the ROT13 method: <input type=\\\"text\\\" size=\\\"20\\\" name=\\\"text1\\\"> <input type=\\\"submit\\\" value=\\\"Go!\\\" name=\\\"button1\\\" onclick=\\\"displayROT13()\\\"><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com--><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com--><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->