»
AnglaisFran�aisVietnamien

Imprimer - Tout-en-un script de recherche interne du site - JavaScriptBank.com

Version compl�te: jsB@nk » Utilitaire » Recherche de code » Tout-en-un script de recherche interne du site
URL: https://www.javascriptbank.com/all-in-one-internal-site-search-script.html

Tout-en-un script de recherche interne du site © JavaScriptBank.comCe script permet utiles à vos visiteurs à la recherche sur le contenu de votre site en misant sur les 3 plus populaires moteurs de recherche Google, Yahoo et MSN. Maintenant, votre site de recherche est vraiment couvert!

Version compl�te: jsB@nk » Utilitaire » Recherche de code » Tout-en-un script de recherche interne du site
URL: https://www.javascriptbank.com/all-in-one-internal-site-search-script.html



JavaScript
<script type="text/javascript">// All-in-one Internal Site Search script- By JavaScriptKit.com (http://www.javascriptkit.com)// For this and over 400+ free scripts, visit JavaScript Kit- http://www.javascriptkit.com/// This notice must stay intact for use//Enter domain of site to search.var domainroot="http://jsbank.beplaced.com/"var searchaction=[ //form action for the 3 search engines"http://www.google.com/search","http://search.yahoo.com/search","http://search.msn.com/results.aspx"]var queryfieldname=["q","p","q"] //name of hidden query form for the 3 search enginesfunction switchaction(cur, index){cur.form.action=searchaction[index]document.getElementById("hiddenquery").name=queryfieldname[index]}function jksitesearch(curobj){for (i=0; i< document.jksearch.se.length; i++){ //loop through radio to see which is checkedif (document.jksearch.se[i].checked==true)switchaction(document.jksearch.se[i], i)}document.getElementById("hiddenquery").value="site:"+domainroot+" "+curobj.qfront.value}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form name="jksearch" action="http://www.google.com/search" method="get" onSubmit="jksitesearch(this)"><p>Search:<br /><input id="hiddenquery" type="hidden" name="q" /><input name="qfront" type="text" style="width: 200px" value="navigator object" size="20" /> <input type="submit" value="Search" /><br /><div style="font: bold 11px Verdana;">Google:<input name="se" type="radio" checked>  Yahoo:<input name="se" type="radio">  MSN:<input name="se" type="radio"></div></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->