Тест #19
Can - Dear - afternoon - bills - by - call - come - difficulty - gold - hair - happy - high - hotel - must - sale -
[html]<meta http-equiv=Content-Type content="text/html; charset=UTF-8">
<SCRIPT language=JavaScript>
// credits to George Mitrevski, Dennie Hoopingarner, Vineet Bansal
function da(st, co) {
var sta = st.value;
var ca = co;
result = ""
for (var c = 0; c < ca.length; c ++) {
var coX = ca.charAt(c);
var stX = sta.charAt(c);
if (coX == stX) {
result = result + coX;
}
else {
result = result + "=";
}
}
st.value = result;
}
</SCRIPT>
<form>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
1. Без трудностей ><b> without <input type="text" name="i1" size="10" onblur="da(this,"difficulty")"> </b><br>
2. В город приехал цирк. ><b> A circus has <input type="text" name="i2" size="4" onblur="da(this,"come")"> to town. </b><br>
3. Высотой семьдесят метров ><b> seventy metres <input type="text" name="i3" size="4" onblur="da(this,"high")"> </b><br>
4. Дорогой господин Х! ><b> <input type="text" name="i4" size="4" onblur="da(this,"Dear")"> Mr X, </b><br>
5. Здесь можно парковаться? ><b> <input type="text" name="i5" size="3" onblur="da(this,"Can")"> I park here? </b><br>
6. Золотой / из золота ><b> golden / made of <input type="text" name="i6" size="4" onblur="da(this,"gold")"> </b><br>
7. Нужно работать ><b> one <input type="text" name="i7" size="4" onblur="da(this,"must")"> work </b><br>
8. Она блондинка. ><b> She has blond <input type="text" name="i8" size="4" onblur="da(this,"hair")">. </b><br>
9. Переночевать в отеле ><b> to stay at the <input type="text" name="i9" size="5" onblur="da(this,"hotel")"> </b><br>
10. Продается ... ><b> for <input type="text" name="i10" size="4" onblur="da(this,"sale")"> / to be sold </b><br>
11. Расклейка запрещена ><b> Post no <input type="text" name="i11" size="5" onblur="da(this,"bills")">! / Don't put up signs! </b><br>
12. С Рождеством Вас и всего хорошего в Новом Году! ><b> Merry Christmas and a <input type="text" name="i12" size="5" onblur="da(this,"happy")"> New Year! </b><br>
13. Сегодня во второй половине дня. Вчера вечером ><b> This <input type="text" name="i13" size="9" onblur="da(this,"afternoon")">. Yesterday evening. </b><br>
14. Я зашёл сюда совершенно случайно. ><b> I was just passing <input type="text" name="i14" size="2" onblur="da(this,"by")">. </b><br>
15. Я позвоню тебе позже. ><b> I'll <input type="text" name="i15" size="4" onblur="da(this,"call")"> you later. </b><br>
</font>
</form>
<br>
<input type="button" value="Show" onclick=" document.forms[0].i1.value="difficulty"; document.forms[0].i2.value="come"; document.forms[0].i3.value="high"; document.forms[0].i4.value="Dear"; document.forms[0].i5.value="Can"; document.forms[0].i6.value="gold"; document.forms[0].i7.value="must"; document.forms[0].i8.value="hair"; document.forms[0].i9.value="hotel"; document.forms[0].i10.value="sale"; document.forms[0].i11.value="bills"; document.forms[0].i12.value="happy"; document.forms[0].i13.value="afternoon"; document.forms[0].i14.value="by"; document.forms[0].i15.value="call"; ">
<input type="button" value="Clear All" onclick=" document.forms[0].i1.value=""; document.forms[0].i2.value=""; document.forms[0].i3.value=""; document.forms[0].i4.value=""; document.forms[0].i5.value=""; document.forms[0].i6.value=""; document.forms[0].i7.value=""; document.forms[0].i8.value=""; document.forms[0].i9.value=""; document.forms[0].i10.value=""; document.forms[0].i11.value=""; document.forms[0].i12.value=""; document.forms[0].i13.value=""; document.forms[0].i14.value=""; document.forms[0].i15.value=""; ">
[/html]
Отредактировано Lesson (09-11-2021 13:11:57)