The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Empty search box Reply To: Empty search box


Thank you so much for your feedback, i tried the one of google and it was a little bit confusing, and now, i need your help to match between google search code and my code, here we go :
Google code :
(function() {
var cx = '000954822679884360703:to7re88yauo';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);

My code :
&lt;!-- begin search box --&gt;
&lt;div class="box"&gt;
&lt;h2&gt;صندوق البحث&lt;/h2&gt;
&lt;form action="#ads"&gt;
&lt;input type="text" name="s" id="s" value="" /&gt;
&lt;button type="submit"&gt;اذهب&lt;/button&gt;
&lt;!-- end search box --&gt;

Thank you guy’s