<div id="cse" style="width: 500px;">
<code>Loading</code></div>
<script src="http://www.google.com/jsapi" type="text/javascript">
</script><code>
<script type="text/javascript">
google.load('search', '1', {language : 'es'});
var _gaq = _gaq || [];
_gaq.push(["_setAccount", "UA-"]);
function _trackQuery(control, searcher, query) {
var gaQueryParamName = "q";
var loc = document.location;
var url = [
loc.pathname,
loc.search,
loc.search ? '&' : '?',
gaQueryParamName == '' ? 'q' : encodeURIComponent(gaQueryParamName),
'=',
encodeURIComponent(query)
].join('');
_gaq.push(["_trackPageview", url]);
}
google.setOnLoadCallback(function() {
var customSearchControl = new google.search.CustomSearchControl('');
customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
customSearchControl.setSearchStartingCallback(null, _trackQuery);
var options = new google.search.DrawOptions();
options.setAutoComplete(true);
customSearchControl.draw('cse', options);
}, true);
</script>
<link href="http://www.google.com/cse/style/look/default.css" rel="stylesheet" type="text/css"></link>
El problema lo solucione cambiandolo por el codigo:
<style type="text/css">
@import url(http://www.google.es/cse/api/branding.css);
</style>
<div class="cse-branding-right" style="background-color:#FFFFFF;color:#000000">
<div class="cse-branding-form">
<form action="http://www.google.es/cse" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="31" />
<input type="submit" name="sa" value="Buscar" />
</div>
</form>
</div>
<div class="cse-branding-logo">
<img src="http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif" alt="Google" />
</div>
<div class="cse-branding-text">
Busqueda personalizada
</div>
</div>
No hay comentarios:
Publicar un comentario