Forums

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

#187133
Eriaku
Participant

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 :
<script>
(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:') +
'//www.google.com/cse/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
<code></code>

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;/form&gt;
&lt;/div&gt;
&lt;!-- end search box --&gt;
<code></code>

Thank you guy’s