<h1>При вводе текста в одном поле автоматическое изменение в другом</h1>
<script>
function PathRecip()
{
if(window.document.form1.urln.value.substr(window.document.form1.urln.value.length-1) != '/')
{
window.document.form1.url2.value = window.document.form1.urln.value;
if(window.document.form1.script.value == 'perl') window.document.form1.url2.value = window.document.form1.url2.value + '/cgi-bin';
window.document.form1.url2.value = window.document.form1.url2.value + '/reciv/';
}
}
</script>
<form method="POST" name="form1">
URL : <input TYPE="text" NAME="urln" size=40 value="http://"
onselect="PathRecip(this);" onclick="PathRecip(this);"
onkeyup="PathRecip(this);" onfocus="PathRecip(this);"
onkeydown="PathRecip(this);" onkeypress="PathRecip(this);"
onchange="PathRecip(this);"> адрес вашего сайта<br>
Установлены скрипты для:
<select NAME="script" onselect="PathRecip(this);" onclick="PathRecip(this);"
onkeyup="PathRecip(this);" onfocus="PathRecip(this);"
onkeydown="PathRecip(this);" onkeypress="PathRecip(this);"
onchange="PathRecip(this);">
<option value="php" >PHP
<option value="perl" >Perl
</select><br>
Размещение скриптов на вашем сайте: <input TYPE="text" NAME="url2" size=40 value="http://">
http://адрес вашего сайта/recip<br>
<input type="submit" value="Добавить" style="font: 8pt" align="absmiddle" size="-1">
</form>
Скопировать в буфер
© Copyright 2008-2012 by KDG