tengo este codigo de un buscador "muy bonito" que venia con un diseño, pero que me gustaria mantenerlo por relación con el aspecto de la plantilla:
Cita:
Se podría combinar con un motor de búsqueda de Google?<div style='float:right;padding:25px 0px 0 0;'><form action='/search' id='searchform' method='get'>
<div id='searchbox'>
<input id='s' name='s' onblur='if (this.value == '') {this.value = 'Type here to search...';}' onfocus='if (this.value == 'Type here to search...') {this.value = '';}' type='text' value=''/>
<input alt='Search' id='searchsubmit' src='http://4.bp.blogspot.com/_0Nr--qemD8Y/TCLuh3e0OAI/AAAAAAAAArM/-jjZV6HM9GI/s1600/search.png' style='margin: 2px 0 0 0;' title='Search' type='image'/>
</div>
</form>
</div>
<div style='clear: both;'></div>
<div id='cats'>
<div id='searchbox'>
<input id='s' name='s' onblur='if (this.value == '') {this.value = 'Type here to search...';}' onfocus='if (this.value == 'Type here to search...') {this.value = '';}' type='text' value=''/>
<input alt='Search' id='searchsubmit' src='http://4.bp.blogspot.com/_0Nr--qemD8Y/TCLuh3e0OAI/AAAAAAAAArM/-jjZV6HM9GI/s1600/search.png' style='margin: 2px 0 0 0;' title='Search' type='image'/>
</div>
</form>
</div>
<div style='clear: both;'></div>
<div id='cats'>
Cita:
(Sin lo del Loading...)<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'ca', style : google.loader.themes.MINIMALIST});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('011377781821475 887615:56fm52_s2sw');
customSearchControl.setResultSetSize(google.search .Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'ca', style : google.loader.themes.MINIMALIST});
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('011377781821475 887615:56fm52_s2sw');
customSearchControl.setResultSetSize(google.search .Search.FILTERED_CSE_RESULTSET);
customSearchControl.draw('cse');
}, true);
</script>
Muchas gracias!