23/07/2006 - 14h52
talondachil
Poursuivez votre recherche
23/07/2006 - 15h19
erik
Re : personnaliser sa page google (programmation)
Bonjour,
Si je comprend bien tu veux te faire une jolie page perso avec dans un coin un champ de recherche google.
Vas voir lien google dans page perso
Dernière modification par JPL ; 23/07/2006 à 16h30 .
23/07/2006 - 15h51
talondachil
Re : personnaliser sa page google (programmation)
Envoyé par
erik Bonjour,
Si je comprend bien tu veux te faire une jolie page perso avec dans un coin un champ de recherche google.
Vas voir
lien google dans page perso
C'est tout a fait ça ! Si j'avais pu connaitre le code source de la page de google , ça aurait été encore mieux !!! Mais je vais faire avec !!!
PS: Si quelqu'un a d'autre code source plus complet, je prend aussi, merci !!!
Dernière modification par JPL ; 23/07/2006 à 16h31 .
23/07/2006 - 16h36
talondachil
25/07/2006 - 11h33
talondachil
25/07/2006 - 17h20
kevinrob
Re : personnaliser sa page google (programmation)
essaye clique droite--> afficher la source sur les differente page ... Code HTML:
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8" > <title> Google</title> <style> <!--
body,td,a,p,.h{font-family:arial,sans-serif;}
.h{font-size: 20px;}
.q{color:#0000cc;}
-->
</style>
<script>
<!--
function sf(){document.f.q.focus();}
function rwt(el,oi,cad,ct,cd,sg){var e = window.encodeURIComponent ? encodeURIComponent : escape;var oi_param="" ;var cad_param="" ;if (oi) oi_param="&oi=" +e(oi);if (cad) cad_param="&cad=" +e(cad);el.href="/url?sa=t"+oi_param+cad_param+"&ct="+e(ct)+"&cd="+e(cd)+"&url="+e(el.href).replace(/\+/g,"%2B")+"&ei=TzbGRMXjO8LcSbmFxaIF"+sg;el.onmousedown="";return true;}
// -->
</script>
</head> <body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onLoad=sf() topmargin=3 marginheight=3> <center> <table border=0 cellspacing=0 cellpadding=0 width=100%> <tr> <td align=right nowrap> <font size=-1> <a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.ch/ig%3Fhl%3Dfr" onmousedown="return rwt(this,'promos','hppphnu:fr_all','pro','1','')" > Accueil personnalisé</a> | <a href="https://www.google.com/accounts/Login?continue=http://www.google.ch/&hl=fr" > Connexion</a> </font> </td> </tr> <tr height=4> <td> <img alt="" width=1 height=1> </td> </tr> </table> <table cellpadding=0 cellspacing=0 border=0> <tr> <td align=right valign=bottom> <img src=images/hp0.gif width=158 height=78 alt="Google" > </td> <td valign=bottom> <img src=images/hp1.gif width=50 height=78 alt="" > </td> <td valign=bottom> <img src=images/hp2.gif width=68 height=78 alt="" > </td> </tr> <tr> <td class=h align=right valign=top> <b> </b> </td> <td valign=top> <img src=images/hp3.gif width=50 height=32 alt="" > </td> <td valign=top class=h> <font color=#6f6f6f style=font-size:16px> <b> Suisse</b> </font> </td> </tr> </table> <br>
<form action=/search name=f> <script> <!--
function qs(el) {if (window.RegExp && window.encodeURIComponent) {var ue=el.href;var qe=encodeURIComponent(document.f.q.value);if(ue.indexOf("q=")!=-1){el.href=ue.replace(new RegExp("q=[^&$]*"),"q="+qe);}else{el.href=ue+"&q="+qe;}}return 1;}
// -->
</script> <table border=0 cellspacing=0 cellpadding=4> <tr> <td nowrap> <font size=-1> <b> Web</b> <a id=1a class=q href="/imghp?hl=fr&tab=wi" onClick="return qs(this);" > Images</a> <a id=2a class=q href="http://groups.google.ch/grphp?hl=fr&tab=wg" onClick="return qs(this);" > Groupes</a> <a id=3a class=q href="/dirhp?hl=fr&tab=wd" onClick="return qs(this);" > Annuaire</a> <a id=4a class=q href="http://news.google.ch/nwshp?hl=fr&tab=wn" onClick="return qs(this);" > Actualités</a> <b> <a href="/intl/fr/options/" class=q> plus » </a> </b> </font> </td> </tr> </table> <table cellspacing=0 cellpadding=0> <tr> <td width=25%> </td> <td align=center> <input type=hidden name=hl value=fr> <input maxlength=2048 size=55 name=q value="" title="Recherche Google" > <br> <input type=submit value="Recherche Google" name=btnG> <input type=submit value="J'ai de la chance" name=btnI> </td> <td valign=top nowrap width=25%> <font size=-2> <a href=/advanced_search?hl=fr> Recherche avancée</a> <br> <a href=/preferences?hl=fr> Préférences</a> <br> <a href=/language_tools?hl=fr> Outils linguistiques</a> </font> </td> </tr> <tr> <td colspan=3 align=center> <font size=-1> Rechercher dans : <input id=all type=radio name=meta value="" checked> <label for=all> Web </label> <input id=lgr type=radio name=meta value="lr=lang_fr" > <label for=lgr> Pages francophones </label> <input id=cty type=radio name=meta value="cr=countryCH" > <label for=cty> Pages : Suisse </label> </font> </td> </tr> </table> </form> <br> <font size=-1> Le domaine Google.ch est disponible en : <a href="http://www.google.ch/de" > Deutsch</a> <a href="http://www.google.ch/en" > English</a> <a href="http://www.google.ch/it" > Italiano</a> <a href="http://www.google.ch/rm" > Rumantsch</a> </font> <br> <br> <br> <font size=-1> <a href=/ads/> Publicité</a> - <a href=/intl/fr/services/> Solutions d'entreprise</a> - <a href=/intl/fr/about.html> À propos de Google</a> - <a href=http://www.google.com/ncr> Google.com in English</a> </font> <p> <font size=-2> © 2006 Google</font> </p> </center> </body> </html> pour ton les lien dans le code, rajoute http://www.google.ch/
sinon il y a aussi un truc un peu plus soft ... http://forums.futura-sciences.com/thread89445.html Quand j'ai pas raison, j'ai pas forcement tord ...
25/07/2006 - 18h33
talondachil
Re : personnaliser sa page google (programmation)
Voilà, sur les conseils de "KEVINROB" j'ai copié le code source de la page "google recherche image" et pour ceux que ça interesse, j'ai extrait le code suivant:
<body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onLoad=sf() topmargin=3 marginheight=3><center>
<img src="http://www.google.fr/intl/fr_ALL/images/images_hp.gif" width=304 height=110 alt="Google">
<form action="http://images.google.fr/images" name=f><script><!--
function qs(el) {if (window.RegExp && window.encodeURIComponent) {var ue=el.href;var qe=encodeURIComponent(document .f.q.value);if(ue.indexOf("q=" )!=-1){el.href=ue.replace(new RegExp("q=[^&$]*"),"q="+qe);}else{el.href=ue+ "&q="+qe;}}return 1;}
// -->
</script><span id=hf></span><table cellspacing=0 cellpadding=0><tr valign=top><td align=center><input type=hidden name=client value="firefox-a"><input type=hidden name=rls value="org.mozilla:fr:official _s"><input type=submit value="Recherche d'images" name=btnG>
<input maxlength=256 size=40 name=q value="">
<script>
document.f.q.focus();
</script>
<input type=hidden name=hl value=fr></tr></table></form></center></body>
:modo: Attention , si vous copier-coller le code, il commence a la balise <body> pour se terminer a la balise </body>
Poursuivez votre recherche :
Sur le même thème :
Sur le même sujet Actualités
Questions/réponses
Dossiers
Glossaire
Livres