Come si modifica l'attualke codice per inserire la ricerca di google nel proprio sito affinche sia anche valido come XHTML 1.0 strict?
Grazie![]()
Come si modifica l'attualke codice per inserire la ricerca di google nel proprio sito affinche sia anche valido come XHTML 1.0 strict?
Grazie![]()
Est modus in rebus...
Ecco come ho fatto io:
- www.itgmarinoni.it
Il codice javascript esterno che fa funzionare la ricerca è:
codice:function gSearch() { var testo = document.getElementById("campoRicerca") window.location = "http://www.google.com/search?hl=it&ie=UTF-8&domains=www.itgmarinoni.it&q=" + testo.value + "&btnG=Cerca&sitesearch=www.itgmarinoni.it" }![]()
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
Grazie ora provo![]()
Est modus in rebus...
Scusate siccome anche a me mi serve questo
function gSearch() {
var testo = document.getElementById("campoRicerca")
window.location = "http://www.google.com/search?hl=it&ie=UTF-8&domains=www.itgmarinoni.it&q=" + testo.value + "&btnG=Cerca&sitesearch=www.itgmarinoni.it"
}
dove lo imposto
<html>
<head>
<title>Benvenuti su mistislash.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
color: #000000;
}
body {
background-color: #000000;
}
.Stile1 {font-family: "Old English Text MT"}
.Stile2 {font-family: Geneva, Arial, Helvetica, sans-serif}
.Stile3 {font-family: Verdana, Arial, Helvetica, sans-serif}
.Stile4 {font-family: Georgia, "Times New Roman", Times, serif}
.Stile5 {font-family: "Courier New", Courier, mono}
.Stile6 {font-family: "Times New Roman", Times, serif}
-->
</style></head>
<body>
[img]immagini/05.jpg[/img]</p>
<span class="Stile1"><span class="Stile2"><span class="Stile3"><span class="Stile4"><span class="Stile5"><span class="Stile6">HOME</span></span></span></span></span></span></p>
<p class="Stile6">"Registrati al forum
<p class="Stile6">forum</p>
<p class="Stile6">Registrati al ForumMagic
<p class="Stile6">ForumMagic
<p class="Stile6">Registrati al Forum Yu-Gi-Ho
<p class="Stile6">Forum yu-go-ho
<p class="Stile6">Registrati al Forum Politico
<p class="stile6">Forum Politico
<p class="Stile6">Chat
</p>
<span class="Stile6">
</p>
</span>
</body>
</html>
Vi ringrazio in anticipo![]()
Guarda nel codice di
- www.itgmarinoni.it
![]()
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
Ma dove devo andare una volta li :master:
Visualizza il codice sorgente... ecco il form in questione:
codice:<form id="googleSearch" action="javascript:gSearch();"> <p id="searchTitle">Cerca nel sito</p> <p id="googleLogo"></p> <label for="campoRicerca">Trova: </label><input name="campoRicerca" id="campoRicerca" type="text" accesskey="r" /> <input type="submit" value="vai" /></p> <p id="poweredby">Servizio offerto da Google</p> </form>
![]()
Leading the Web to Its Full Potential...
www.pierofix.it | www.w3.org | www.zeldman.com/externals | http://browsehappy.com | www.alistapart.com | www.webstandards.org | www.flickr.com/photos/pierofix/
Grazie tante![]()
![]()
![]()
![]()