FrontPage report this error:Code:<html dir="rtl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1255"> <title>Edut</title> </head> <body> <p align="center"> <a href="javascript:edut();">click!</a> </body> </html> <script language="javascript"> function edut() { string s = "i liv*d*e in i*m*srael"; string s2 = null; string [] arr = s.split("*"); for(var i=0;i<arr.length;i+2;) { for(var j=0;j<arr.length;j++) { s2+=" "; } s2+=arr[i+1]; } document.write(s2); document.write(s); } </script>
In firefox and Internet explorer, when I click the link it simpley does nothing.Code:LINE 20 CHAR 8 EXPECT ";"
the objective of the function is to make each letter between the "*" apper in the exact position of the letter before it, in the line above.
why doesn't it work fellas?


Reply With Quote


Bookmarks