Use the Smiley javascript code for this :bandit: *fg
replace your line
Code:
<input type="button" class="bginput" value="SPACE" title="Insert a Space" onclick="vbcode(this.form,' ','')" onmouseover="stat('space')">
with:
Code:
<input type="button" class="bginput" value="SPACE" title="Insert a Space" onclick="javascript:smilie('& nbsp;')" onmouseover="stat('space')">
or with this:
Code:
<input type="button" class="bginput" value="SPACE" title="Insert a Space" onclick="javascript:document.vbform.message.value+='& nbsp;';document.vbform.message.focus();" onmouseover="stat('space')">
Note: & nbsp; -> without blank (between & and nbsp; )