T
ThunStorm
I have a script that is working but I can't figure out how to add
paragraph breaks into the textarea. Can anyone help me? If you run the
script, the problem will be easier to understand. If possible too, can
you let me know how to run two instances of the drop down box using the
same array.
<script language="JavaScript">
var teams=new Array()
teams[0]="Karen L. <br><br> Marlene T. <br><br> Joyce A. <br><br>
Mickey Z.";
teams[1]="Joan T. <br><br> June G. <br><br> Alice G. <br><br> Sandy
B.";
teams[2]="Mary B. <br><br> Amy S. <br><br> Carol C. <br><br> Dee V.";
teams[3]="Bev W. <br><br> Fran D. <br><br> Barb F. <br><br> Gerry B.";
teams[4]="Blind <br><br> Lynda F. <br><br> Gail J. <br><br> Val B.";
teams[5]="Helen N. <br><br> Sandy S. <br><br> Pat D. <br><br> Blind";
teams[6]="Dora F. <br><br> Yo P. <br><br> Minnie C. <br><br> Blind";
teams[7]="<br>You Must Bowl NO <br> LESS THAN ( <INPUT TYPE=text
NAME=PPG SIZE=2 MAXLENGTH=3> ) To <br> Take A Point Per Game!!!";
teams[8]="Please select a team!"
function changecontent(which){
document.ddmessage.contentbox.value=teams[which.selectedIndex]
}
document.ddmessage.contentbox.value=teams[document.ddmessage.selectbox.selectedIndex]
</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="ddmessage"><table border="1"
width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><select name="selectbox" size="1"
onChange="changecontent(this)">
<OPTION>Select Team</option>
<OPTION>Alley Cats </option>
<OPTION>Blind</option>
<OPTION>Dreamers</option>
<OPTION>Lucky Strikes </option>
<OPTION>Morn D. Lites </option>
<OPTION>Pin Pals</option>
<OPTION>Pin Ups</option>
<OPTION>Ups + Downs</option>
</SELECT> <br>
</td>
</tr>
<tr>
<td width="100%"><textarea rows="8" name="contentbox"
cols="35" wrap="virtual"></textarea><br>
</td>
</tr>
</table>
</form>
paragraph breaks into the textarea. Can anyone help me? If you run the
script, the problem will be easier to understand. If possible too, can
you let me know how to run two instances of the drop down box using the
same array.
<script language="JavaScript">
var teams=new Array()
teams[0]="Karen L. <br><br> Marlene T. <br><br> Joyce A. <br><br>
Mickey Z.";
teams[1]="Joan T. <br><br> June G. <br><br> Alice G. <br><br> Sandy
B.";
teams[2]="Mary B. <br><br> Amy S. <br><br> Carol C. <br><br> Dee V.";
teams[3]="Bev W. <br><br> Fran D. <br><br> Barb F. <br><br> Gerry B.";
teams[4]="Blind <br><br> Lynda F. <br><br> Gail J. <br><br> Val B.";
teams[5]="Helen N. <br><br> Sandy S. <br><br> Pat D. <br><br> Blind";
teams[6]="Dora F. <br><br> Yo P. <br><br> Minnie C. <br><br> Blind";
teams[7]="<br>You Must Bowl NO <br> LESS THAN ( <INPUT TYPE=text
NAME=PPG SIZE=2 MAXLENGTH=3> ) To <br> Take A Point Per Game!!!";
teams[8]="Please select a team!"
function changecontent(which){
document.ddmessage.contentbox.value=teams[which.selectedIndex]
}
document.ddmessage.contentbox.value=teams[document.ddmessage.selectbox.selectedIndex]
</script>
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><form name="ddmessage"><table border="1"
width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><select name="selectbox" size="1"
onChange="changecontent(this)">
<OPTION>Select Team</option>
<OPTION>Alley Cats </option>
<OPTION>Blind</option>
<OPTION>Dreamers</option>
<OPTION>Lucky Strikes </option>
<OPTION>Morn D. Lites </option>
<OPTION>Pin Pals</option>
<OPTION>Pin Ups</option>
<OPTION>Ups + Downs</option>
</SELECT> <br>
</td>
</tr>
<tr>
<td width="100%"><textarea rows="8" name="contentbox"
cols="35" wrap="virtual"></textarea><br>
</td>
</tr>
</table>
</form>