وجزاكم الله خير
كيف أدمج خدمة البحث من Google داخل موقعي
<head>
<style type="text/css">
#q
{
width: 110px;
}
</style>
</head>
<script language="javascript" type="text/javascript">
// <!CDATA[
function Submit1_onclick() {
var obj = document.getElementById("q");
if (obj.value!="")
{
window.open("<A href="http://www.google.com/search?hl=ar&btnG=Google+Search&q="+obj.value">http://www.google.com/search?hl=ar&btnG=Google+Search&q="+obj.value);
}
else
return false;
}
// ]]>
</script>
<div class="head_vote" ></div>
<div class="repeater_vote">
<img alt="" src="../images/google.png" align="middle" /><br />
<input id="q" type="text" /> <input id="Submit1" type="submit" value="بحث" onclick="return Submit1_onclick()" />
</div>
<div class="foot_vote" ></div>
<br />