Scripto koda dedame i mums reikalinga svetaines vieta:
Code
<center>
<br>Ko Ieskom?
<!--search-->
<script>
function thismod(mod) {
document.poisk.action='/'+mod+'/';
switch (mod) {
case 'blog':
aa=13;
break;
case 'news':
aa=14;
break;
default:
aa=2;
}
document.poisk.a.value=aa;
}
</script>
<form name="poisk" method="post" style="margin: 0px;" action="/news/">
<input name="query" maxlength="30" size="20" type="text"><br>Kur Ieskom?
<div><select size="1" name="modul" onchange="thismod(this.value)">
<br><option value="news" selected="selected">News</option>
<option value="load">Failai</option>
<option value="forum">Forume</option>
</select>
<br>
<input class="loginButton" name="sbm" value="Surasti" type="submit">
<input name="a" value="14" type="hidden">
</form>
<!--search-->
</center>