I've done it but I'm not hapyy with it, it only works in IE and I don't know why. Can some one please tell me why?
Here's the code:
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script type="text/javascript"> function doIt() { text_which_scrolls = document.getElementById('wee').innerHTML new_text="" i= new Number(0) while (i<text_which_scrolls.length) { new_text += text_which_scrolls.substring(i,parseInt(i)+60)+"*" i=i+60 } alert(new_text) document.getElementById('wee').innerHTML = new_text } </script> </head> <body onload="doIt()"> <textarea cols="20" rows="10" id="wee"> 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 0123456789 </textarea> </body> </html>




Reply With Quote