Hello everybody.
maybe someone can help me with this Form.
When someone does not select anything from any of the 3 Select Opions they should not get any value on the Textarea
<script>
function doReset(){self.focus()
document.inputForm.message.value = ""}</script>
<script>
function passText(dp1,dp2,dp3){var str = '<font' + dp1.options[dp1.selectedIndex].value +
dp2.options[dp2.selectedIndex].value + dp3.options [dp3.selectedIndex].value + '>';
document.inputForm.message.value += str;}</script>
<form name="inputForm">
<select name=dropdownbox1 size=1 style="background: gray">
<option style="COLOR:black" value=http://www.webdeveloper.com/forum/archive/index.php/"">Color</option>
<option style="COLOR:black" value=' color="black"'>black</option>
<option style="COLOR:red" value='http://www.webdeveloper.com/forum/archive/index.php/color="red"'> red</option>
</select>
<select name="dropdownbox2" size=1 style="background: gray">
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"" selected>Face</OPTION>
<OPTION value=' face="Andale Mono"'>Andale Mono</OPTION>
<OPTION value='http://www.webdeveloper.com/forum/archive/index.php/face="Verdana"'>Verdana</OPTION></SELECT>
<select name="dropdownbox3" size=-1 style="background: gray">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"" selected>Size</option>
<option value=' size="5"'>5</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/size="4"'>4</option></select>
<input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Create Font" style="background: url();color:;font:1";width:;font:xx-small onClick="passText(this.form.dropdownbox1,this.form.dropdownbox2,this.form.dropdownbox3);">
<a href="javascript:doReset()">
<font color="#006699">RESET</font></a>
<script language="JavaScript">
<!-- // Begin
function storeCareti(objTxt) {if (objTxt.createTextRange) {objTxt.selection = document.selection.createRange().duplicate();}}function insertAtCareti (objTxt, text) {
if (objTxt.createTextRange && objTxt.selection) {var objTxtRange = objTxt.selection;
objTxtRange.text = (objTxtRange.text.charAt(objTxtRange.text.length - 1) ==' ') ?text + ' ' : text;} else {objTxt.value =text;}}
// End --></script>
<textarea name="message" cols="40" rows="5" onSelect="storeCareti(this);"
onClick="storeCareti(this);"onKeyup="storeCareti(this);"></textarea>
|
|
|
V
Check out the Form down here!!
<!-- m --><a class="postlink" href="http://chapimp.freewebspace.com/form.html">http://chapimp.freewebspace.com/form.html</a><!-- m -->
maybe someone can help me with this Form.
When someone does not select anything from any of the 3 Select Opions they should not get any value on the Textarea
<script>
function doReset(){self.focus()
document.inputForm.message.value = ""}</script>
<script>
function passText(dp1,dp2,dp3){var str = '<font' + dp1.options[dp1.selectedIndex].value +
dp2.options[dp2.selectedIndex].value + dp3.options [dp3.selectedIndex].value + '>';
document.inputForm.message.value += str;}</script>
<form name="inputForm">
<select name=dropdownbox1 size=1 style="background: gray">
<option style="COLOR:black" value=http://www.webdeveloper.com/forum/archive/index.php/"">Color</option>
<option style="COLOR:black" value=' color="black"'>black</option>
<option style="COLOR:red" value='http://www.webdeveloper.com/forum/archive/index.php/color="red"'> red</option>
</select>
<select name="dropdownbox2" size=1 style="background: gray">
<OPTION value=http://www.webdeveloper.com/forum/archive/index.php/"" selected>Face</OPTION>
<OPTION value=' face="Andale Mono"'>Andale Mono</OPTION>
<OPTION value='http://www.webdeveloper.com/forum/archive/index.php/face="Verdana"'>Verdana</OPTION></SELECT>
<select name="dropdownbox3" size=-1 style="background: gray">
<option value=http://www.webdeveloper.com/forum/archive/index.php/"" selected>Size</option>
<option value=' size="5"'>5</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/size="4"'>4</option></select>
<input type=button value=http://www.webdeveloper.com/forum/archive/index.php/"Create Font" style="background: url();color:;font:1";width:;font:xx-small onClick="passText(this.form.dropdownbox1,this.form.dropdownbox2,this.form.dropdownbox3);">
<a href="javascript:doReset()">
<font color="#006699">RESET</font></a>
<script language="JavaScript">
<!-- // Begin
function storeCareti(objTxt) {if (objTxt.createTextRange) {objTxt.selection = document.selection.createRange().duplicate();}}function insertAtCareti (objTxt, text) {
if (objTxt.createTextRange && objTxt.selection) {var objTxtRange = objTxt.selection;
objTxtRange.text = (objTxtRange.text.charAt(objTxtRange.text.length - 1) ==' ') ?text + ' ' : text;} else {objTxt.value =text;}}
// End --></script>
<textarea name="message" cols="40" rows="5" onSelect="storeCareti(this);"
onClick="storeCareti(this);"onKeyup="storeCareti(this);"></textarea>
|
|
|
V
Check out the Form down here!!
<!-- m --><a class="postlink" href="http://chapimp.freewebspace.com/form.html">http://chapimp.freewebspace.com/form.html</a><!-- m -->