Code: Alles auswählen
<script type="text/javascript">
<!--
function checkSearch()
{
if (document.search_block.search_engine.value == 'google')
{
window.open('http://www.google.com/search?q=' + document.search_block.search_keywords.value, '_google', '');
return false;
}
else
{
return true;
}
}
//-->
</script>
<form name="search_block" method="post" action="{U_SEARCH}" onsubmit="return checkSearch()">
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th>{L_SEARCH}</th>
</tr>
<tr>
<td align="center" class="row1">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="center"><input class="post" type="text" name="search_keywords" size="15" /></td>
</tr>
<tr>
<td align="center">
<select class="post" name="search_engine">
<option value="google">Gooooogle</option>
<option value="site">{L_FORUM}</option>
</select>
</td>
</tr>
<tr>
<td align="center"><input class="mainoption" type="submit" value="{L_SEARCH}" /></td>
</tr>
</table>
<input type="hidden" name="search_fields" value="all" />
<input type="hidden" name="show_results" value="topics" />
<br />
<a href="{U_SEARCH}" class="gensmall">{L_ADVANCED_SEARCH}</a>
</td>
</tr>
</table>
Es soll lediglich eine Zeile übrig bleiben, die dann googelt.
Die Forumssuche soll verschwinden und das Auswahlfenster auch, NUR die Eingabezeile soll noch vorhanden sein