|
Webteacher Software now offers
function encode(text) { Ref="0123456789abcdefghijklmnopqrstuvwxyz.-~ABCDEFGHIJKLMNOPQRSTUVWXYZ" Result="" for (Count=0; Count<text.length; Count++) { Char=text.substring (Count, Count+1);} document.form1.result.value=Result }
Looking at the function above, you can see that I have created a loop. The loop uses Count as its counting variable. It will repeat once for each letter in text. Inside the loop I have written four commands to be executed every time the loop is repeated. Take our initial example of HAL. Here is what would happen during each pass through the loop.
At the start of the loop:
| ||||||||||||||||||||||
Home | WebData - Web Database Software | Javascript | CGI | Consulting | Map Builder | Contact Us | The Press Room |