Gockel: Focus setzen

Beitrag lesen

<?php if (GetConf(mod_rewrite)==1) { ?>
<form method="post" action="list.html" name="suchbox">
<?php } ELSE { ?>
<form method="post" action="index.php?option=list" name="suchbox">
<?php } ?>
<input name="simplesearch" value="1" type="hidden">
<table class="box2" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr>
<td width="40%" style="text-align: right; padding-top: 10px;">Suche nach:</td>
<td width="60%" style="text-align: right; padding-top: 10px; padding-right: 10px;"><input class='input' id="searchfield" name="suchfeld" size="15"></td>
<script type="text/javascript">
    document.getElementById('searchfield').focus();
  </script>
      </td>
    </tr>
  </tbody>
</table>
<table  class="box2" border="0" cellpadding="0" cellspacing="0" style="padding-bottom: 10px;" width="100%">
  <tbody>
    <tr>
<?php if (GetConf(mod_rewrite)==1) { ?>
<td class="box_kleine_schrift2" style="padding-left: 5px; vertical-align: middle; text-align: center;"><a class="box_kleine_schrift2" href="advsearch.html">Erweiterte Suche</a></td>
<?php } ELSE { ?>
<td class="box_kleine_schrift2" style="padding-left: 5px; vertical-align: middle; text-align: center;"><a class="box_kleine_schrift2" href="index.php?option=advsearch">Erweiterte Suche</a></td>
<?php } ?>
<td style="text-align: right; padding-right: 10px;"><input class="button" value="Suchen" style="width: 65px;" type="submit"></td>
    </tr>
  </tbody>
</table>
</form>