[spoiler="Скрин"][/spoiler] [Table]Вставлять в блок[/Table]
Code
<script type="text/javascript">
//Search start
function searchSelect(f) {
n = f.modul.selectedIndex;
modul = f.modul.options[n].value;
document.search.action = 'http://diz-cs.ru/'+modul+'/';
if (modul == 'news')
{
document.search.a.value = '14';
}
else
if (modul == 'load' || modul == 'publ' || modul == 'dir' || modul == 'board')
{
document.search.a.value = '2';
}
else
if (modul == 'blog')
{
document.search.a.value = '13';
}
else
if (modul == 'faq')
{
document.search.a.value = '3';
}
}
//Search end
</script>
<div class="searchForm">
<form name="search" onSubmit="this.sfSbm.disabled=true" method="post" style="margin: 0px;">
<div class="schQuery" align="center">
<input name="query" maxlength="30" size="20" class="queryField" type="text">
<select name="modul" onChange="searchSelect(this.form);">
<option value="none">Где искать?</option>
<option value="news">Новости</option>
<option value="load">Файлы</option>
<option value="publ">Статьи</option>
<option value="dir">Сайты</option>
<option value="blog">Блог</option>
<option value="faq">FAQ</option>
<option value="board">Объявления</option>
</select>
</div>
<div class="schBtn" align="center">
<input class="searchSbmFl" onClick="this.sfSbm.disabled=true" name="sfSbm" value="« Найти »" type="submit">
</div>
<input name="a" type="hidden">
</form>
</div>