休闲一下,菊花体文字
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>火星文</title> <style> </style> <script type="text/javascript"> var c = 1161; //菊花体 // c = 773; // c = 818 function charCh(){ g("rst").innerHTML = fuckAss(g("str").value,c); } function fuckAss(inStr,code) { var c1 = String.fromCharCode(code); var outStr = ''; for(var i=0,l=inStr.length; i<l; i++){ outStr += inStr.charAt(i) + c1; } return outStr; } function g(id){ return document.getElementById(id); } </script> </head> <body> <center> <textarea id="str" rows="10" cols="50" onKeyUp="charCh();"></textarea> <div id="rst"></div> </center> </body> </html>
菊花体 你妹
……….