Here's a simple alternative to typing multiple consecutive space characters ( ) and other repetitious characters, strings, and HTML code. Just call the "put" function in your HTML code where repetition is needed, and JavaScript does the rest for you. Here are three sample uses of the JavaScript "put" function:
<SCRIPT>put(31,'- ')</SCRIPT>
Writes 31 dashes and spaces:
<IMG SRC="image.gif"><SCRIPT>put(73,' ')</SCRIPT>
<IMG SRC="image.gif">
Writes 73 spaces between the images:
<SCRIPT>put(4,'<br><img src=\"image.gif\">')</SCRIPT>
Writes four line breaks (with images):