Я хочу сделать поля разных факультетов,т.е что бы чел выбирал.
Я вставила этот код в поле "название"....
Ток нифига не получилось.Куда его надо тыкать?
Код:
<script type="text/javascript"> var cont=document.getElementsByTagName("legend") if (cont[0].innerHTML.indexOf("Мой факультет:")!=-1) {document.getElementById('fld1').style.display="none" var form=document.getElementById('profile8').innerHTML var init=document.getElementById('fld1').value document.getElementById('profile8').innerHTML=form.substring(0, (form.indexOf("fld1")-11))+"<select id='subst'>"+"<option value =' -=Naruto=-'>-=Naruto=-</option>"+"<option value =' -=witch=-'>-=witch=-</option>"+"<option value=' -=winx=-'>-=winx=-</option>"+"<option value=' -=Shaman King=-'>-=Shaman King=-</option>" +"</select>"+form.substr((form.indexOf("fld1")-11)) document.getElementById('subst').value=document.getElementById('fld1').value document.getElementsByName('update')[0].onclick=transForm} function transForm() {document.getElementById('fld1').value=document.getElementById('subst').value return true} </script>