Når man feks går på www.google.dk står cursor automatisk og blinker klar til at skrive det du vil søge efter.. hvordan får jeg mit lille search script til at gøre det samme..?
Ka det passe det er noget med
onload="document.gs.q.focus
?
Har prøvet men det vil ikke rigtig virke.. nogle der kan hjælpe med at få det til at virke.. Koden kommer her under..
<html>
<head>
<title>dTs</title>
<meta name="generator" content="Namo WebEditor">
<link type="text/css" rel="stylesheet" href="custom.css">
<script language="JavaScript">
function dosearch() {
var sf=document.searchform;
var url = sf.sengines.options[sf.sengines.selectedIndex].value;
var submitto = url.replace(/%QUERY%/, escape(sf.searchterms.value));
window.location.href = submitto;
return false;
}
</script>
</head>
<SCRIPT language=javascript event=onload for=window>
try{setupSmartHelp('SmartHelp');}catch(e){};
try{onLoadEventOverride()}catch(e){};
</SCRIPT>
<SCRIPT language=javascript>var ApplicationRoot='/common/';</SCRIPT>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR>
<BODY style="TEXT-ALIGN: center"><TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
<TR>
<TD style="VERTICAL-ALIGN: top">
<DIV id=hd align=center>
<DIV id=msnmd>
<p><br>
<p align="center">
<script type="text/javascript" src="http://www.livecounter.dk/counter.php?id=3932&img=1"></script>
<noscript><a href="http://www.livecounter.dk/" target="_blank">Gratis besøgstæller</a></noscript>
</a></p>
<p><img src="images/lloggo.png" width="225" height="124" border="0"></p>
</DIV>
<DIV class=r2>
<TABLE cellSpacing=0 cellPadding=0 width=780 align=center border=0>
<TBODY>
<TR>
<TD>
<DIV class=search>
<form name="searchform" onSubmit="return dosearch();">
<p align="center"><b><font color="#FFFFFF">Search:
</font></b>
<select name="sengines">
<option>---Search-Web---</option>
<option value="http://www.google.dk/custom?q=%QUERY%&sa=Google-s%F8gning&client=pub-8281961817734457&forid=1&ie=ISO-8859-1&oe=ISO-8859-1&cof=GALT%3A%23008000%3BGL%3A1%3BDIV%3A%23336699%3BVLC%3A663399%3BAH%3Acenter%3BBGC%3AFFFFFF%3BLBGC%3A336699%3BALC%3A0000FF%3BLC%3A0000FF%3BT%3A000000%3BGFNT%3A0000FF%3BGIMP%3A0000FF%3BFORID%3A1&hl=da" selected>Google</option>
<option value="http://youtube.com/results?search_query=%QUERY%&search_type=&aq=f">Youtube</option>
<option value="http://www.degulesider.dk/vbw/super/resultat.do?twoFieldName=%QUERY%&twoFieldAddr=">DeGuleSider</option>
<option value="http://www.altavista.com/web/results?q=%QUERY%">Alta Vista</option>
<option value="http://search.yahoo.com/search?p=%QUERY%">Yahoo!</option>
<option value="http://search.htsh.org/fse/index.php?q=%QUERY%&f=">dTs Find Filer</option>
<option value="http://search.dmoz.org/cgi-bin/search?search=%QUERY%">dmoz.org</option>
<option>-----Software-----</option>
<option value="http://www.snapfiles.com/downloadfind.php?action=s&st=%QUERY%">snapfiles</option>
<option>-----SoftwarZ-----</option>
<option value="http://www.filez.com/index.jsp?q=%QUERY%">FileZ</option>
<option value="http://www.rapidshare-searcher.com/rapidshare-search.php?search=%QUERY%">rapid-searcher</option>
<option value="http://www.google.com/cse?cx=013997598991562734841%3Akjtgs4nf1uu&q=%QUERY%&cof=FORID%3A1">WareZ-CSEC</option>
<option value="http://soft-best.net/en/search.html?q=%QUERY%">soft-best</option>
<option value="http://vanix.net/search.php?search=%QUERY%">vanix.net</option>
<option value="http://kadets.ru/search/search.php?r=10&q=">kadets</option>
<option value="http://search.fixdown.com/fixdown/enquery.asp?action=title&keyword=%QUERY%">fixdown</option>
<option value="http://enfull.com/enquery.asp?action=title&keyword=%QUERY%&Submit2=search">enfull.com</option>
<option>-----SerialZ-----</option>
<option value="http://astalavista.box.sk/cgi-bin/robot?srch=%QUERY%">Astalavista</option>
<option value="http://s.lomalka.ru/s?q=%QUERY%&lang=en">lomalka</option>
<option value="http://keygen.ru/search.shtml?str=%QUERY%&w=keygen.ru">keygen.ru</option>
<option>-----MisC-----</option>
<option value="http://www.stripdir.com/sd/?url=%QUERY%&btnSubmStrip=Strip%21&tn=1&maxpp=all">Image-StriP</option>
<option value="http://filext.com/redirect.php?extdetail=%QUERY%">File-Ext</option>
<option value="http://www.dll-files.com/search.php?s=%QUERY%">dll-files</option>
<option value="http://www.metacrawler.com/info.metac/search/redir.htm?qcat=web&r_aid=38FE0F572784458CB9EB056B63BA4350&r_fcid=417&r_fcp=top&qkw=%QUERY%&idxSearch_formSubmit.x=42&idxSearch_formSubmit.y=10">metacrawler</option>
</select>
<b><font color="#FFFFFF">For:</font></b>
<input type="text" name="searchterms" size="26">
<input type="submit" name="SearchSubmit" value="Search" style="font-family:'Arial Black'; font-weight:normal; font-size:10px; background-color:rgb(229,238,249); background-image:url('images/cellpic_nav.gif'); border-width:1px; border-color:white; border-style:solid;">
<font color="white"><span style="font-weight:normal; font-size:12px; color:rgb(119,119,119); list-style-type:circle; text-decoration:none;"><b> </b></span></font><font color="white"><span style="font-weight:normal; font-size:12px; color:rgb(119,119,119); list-style-type:circle; text-decoration:none;"><b> </b></span></font></p>
</form>
</DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<DIV class=r3>
<TABLE cellSpacing=1 cellPadding=1 width=780 align=center border=0>
<TBODY>
<TR>
<TD>
<DIV class=channelbox id=tabHome><A title=TV2
href="http://www.tv2.dk/">TV 2</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabSoul_unused><A title=DR1
href="http://www.dr.dk">DR 1</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabPop><A title=Krak
href="http://www.krak.dk/">Krak</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabRock><A title=BT
href="http://www.bt.dk/">BT</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabIndie><A title=DBA
href="http://www.dba.dk/">DBA</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabRap><A title="QXL"
href="http://www.qxl.dk/">QXL</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabDance><A title=YouTube
href="http://www.youtube.com/">YouTube</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabAll><A title="veoh"
href="http://www.veoh.com/">veoh</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabFeatures><A title=facebook
href="http://www.facebook.com/">facebook</A></DIV>
</TD>
<TD>
<DIV class=channelbox id=tabCharts><A title=Edb-Priser
href="http://www.edbpriser.dk/">edb-priser</A></DIV>
</TD>
</TR>
</TBODY>
</TABLE>
</DIV>
<!-- ROW 3 -->
</DIV>
</TD>
</TR>
</TABLE>
<p align="center"><select class="mainmenu" onchange="window.open(this.options[this.selectedIndex].value,'_top')" size="1">
<option value selected>Tjek web mail</option>
<option value="http://www.gmail.com">Gmail</option>
<option value="http://webmail.cybercity.dk">CyberCity</option>
<option value="http://webmail.get2net.dk">Get2Net</option>
<option value="http://www.hotmail.com">Hotmail</option>
<option value="http://konto.jubii.dk">Jubii</option>
<option value="http://mail.ofir.dk">Ofir</option>
<option value="http://mail.sol.dk">Sol mail</option>
<option value="http://webmail.tiscali.dk">Tiscali</option>
<option value="http://mail.tdconline.dk">TDC</option>
<option value="http://www.wanadoo.dk">Wanadoo</option>
<option value="http://login.yahoo.com/config/login?.src=ym&.lg=dk&.done=http%3a//edit.my.yahoo.com/config/mail%3f.intl=dk&.intl=dk&.rand=dccpra0iunhri">
Yahoo</option>
</select>
<p align="center">
<?php
//Set the date so we can store it in the text file.
$tdate = date("dS F Y h:i:s A");
//Check if there is a referer
if (!$HTTP_REFERER) { $HTTP_REFERER = "(NONE)"; }
//Store it in the counter.txt file ! DONT FORGET TO SET COUNTER.TXT CHMOD 777 !
$fp = fopen("counter.txt", "a");
$line = "IP Address: $REMOTE_ADDR - Date: $tdate - Referer: $HTTP_REFERER - Browser: $HTTP_USER_AGENT\n";
fwrite($fp, $line);
fclose($fp);
?>
</body>
<center>
<b><table width="286" height="26" cellpadding="0" cellspacing="0" style="border-collapse:collapse;" align="center">
<tr>
<td width="273" height="22" style="border-width:2px; border-color:rgb(180,204,235); border-style:solid;" bgcolor="#E3EDF7">
<p align="center"><b><font size="1" face="Verdana" color="#666666">STØT </font><font size="1" face="Verdana" color="#FF6600">NO:BS </font><font size="1" face="Verdana" color="#666666">WEB SEARCH.. </font><font size="1" face="Verdana" color="#FF6600">KLIK HER UNDER!</font><font size="1" color="#FF6600"></b></font></b></p>
</td>
</tr>
</table><br>
<script type="text/javascript"><!--
google_ad_client = "pub-8281961817734457";
/* 728x90, oprettet 18-07-08 htsh */
google_ad_slot = "6694220618";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>
</html>