Всем здравствуйте,Подскажите, пожалуйста, можно ли объединить вот эти скрипты: <body>
<scripttype="text/javascript">
functionmsg1()
{ document.getElementById('f1').action = 'mailto:' +
'&body='+encodeURIComponent(document.getElementById('i2').value);
return false; }
</script>
<form method="post"action="" id="f1">
<textarea id="i2"onchange="msg1()" value="" style="width: 852px;height: 399px"></textarea>
<input type="submit" value="Отпрвить" />
</form>
</body>
и
<script>
<!--
functionset(obj)
{ vars=""
if(obj.lo01.checked)s=s+"Уважаемый\r\n"
if(obj.lo02.checked)s=s+"Уважаемая\r\n"
obj.area.value=s}
//-->
</script>
<styletype="text/css">
.style1 {
font-family: Calibri;
font-size: x-small;
}
.style3 {
font-family: Calibri;
}
.style4 {
font-size: x-small;
}
.style5 {
font-family: "Times NewRoman", Times, serif;
font-size: x-small;
}
.style6 {
font-size: x-small;
color: #002672;
}
.style7 {
color: #002672;
}
.style8 {
text-decoration: underline;
}
</style>
</HEAD>
<body>
<formname="main">
<spanclass="style6">
<strong>
<tablestyle="width: 100%">
<tr>
<tdstyle="width: 185px">
<inputtype="checkbox" name="lo01"value="lo01"> <span class="style6">
<strong><em>Уважаемый</em></strong></span></td>
<td>
<inputtype="checkbox" name="lo02"value="lo02"> <strong><em>
<spanclass="style6"><spanlang="ru">Уважаемая</span></span></em></strong><spanclass="style6">
</span>
</td>
</tr>
</table>
</span></strong></em><br>
<textareaname="area" cols=129 rows=20></textarea><br><br>
<inputtype="button" value= "Показать"onclick="set(main)" style="height: 25px">
<inputtype="reset" value="Сбросить" style="height:25px">
</form>
Замечание модератора:
Эта тема была закрыта автоматически ввиду отсутствия активности в ней на протяжении 100+ дней.
Если Вы считаете ее актуальной и хотите оставить сообщение, то воспользуйтесь кнопкой
или обратитесь к любому из модераторов.
|