Bouton de rechercher

Bonjour,

j'ai develpper un site web ce dernier temps en html mais j'ai un probleme avec le bouton de recherche quel scripte doi je mettre pour que les visiteur peuvent chercher dans mon site et merci a tous .
Configuration: Windows XP
Firefox 2.0.0.14

1 réponse

  1. Contributeur
    Bonjour,

    Tu peux insérer un script en Php, avec ou sans base de données :
    http://www.phpscripts-fr.net/scripts/scripts.php?cat=Moteurs+de+recherche

    ou plus simplement utiliser les services d'un moteur de recherche externe, comme Google par exemple, en ajoutant ce formulaire de recherche à ton site :

    <form method="get" action="https://www.google.com/webhp">
    <div class="center">
    
    <input type="hidden" name="domains" value="tonsite.fr" />
    
    <table cellspacing="0" cellpadding="0" border="0">
    <tr><td style="height: 10px"></td></tr>
    <tr><td style="text-align: center"><img src="http://www.google.fr/logos/Logo_25wht.gif" height="32" width="75" alt="Google" title="Google" style="border: 0px" /></td></tr>
    <tr><td style="height: 10px"></td></tr>
    
    <tr><td style="text-align: center"><input type="text" name="q" size="15" maxlength="255" value="" /></td></tr>
    <tr><td style="height: 5px"></td></tr>
    <tr><td style="text-align: center"><input type="submit" name="sa" value="OK" /></td></tr>
    <tr><td style="height: 5px"></td></tr>
    </table>
    
    <table cellspacing="0" cellpadding="0" border="0">
    <tr><td><input type="radio" name="sitesearch" value="" /></td><td><p>Sur le web</p></td></tr>
    <tr><td><input type="radio" name="sitesearch" value="tonsite.fr" checked="checked" /></td><td><p>Sur ce site</p></td></tr>
    </table>
    
    </div>
    </form>


    en remplaçant "tonsite.fr" par l'adresse de ton site sans http://

    Attention, il faut indexer ton site chez Google : https://accounts.google.com/ServiceLogin?service=sitemaps&passive=1209600&continue=https://www.google.com/webmasters/tools/submit-url?hl%3Dfr%26continue%3D/addurl&followup=https://www.google.com/webmasters/tools/submit-url?hl%3Dfr%26continue%3D/addurl&hl=fr