السلام عليكــم ورحمـة الله وبركاتــه
بغيت منكم مساعده
عندي مشروع سويته بلغة
asp.net + vb.net
وأبي أضيف كود جاهز للبحث في محركات البحث
لكن المشكله اني مو عارفة وين اضيفه بالضبط
حاولت كثير ووضعته في
master page
مانفع حطيته بصفحات الـ
asp
برضو مانفع
بليز ساعدوني محتاجته ضروري
هذا الكود
</P>
<script language="JavaScript">
<!--
current_site = "Yahoo"</P>
var set_def = false</P>
function fetch() {</P>
if (set_def == true) {</P>
set_default = "t"</P>
}else{</P>
set_default = ""</P>
}</P>
tmp = document.SearchForm.Search.value;</P>
stmp = "";</P>
for (i=0; i <= tmp.length; i++) {</P>
if (tmp.charAt(i) == " ") {</P>
stmp = stmp + "+"; </P>
} else {</P>
stmp = stmp + tmp.charAt(i); </P>
}</P>
}</P>
if (current_site == "Yahoo") {</P>
top.location.href = "<A href="http://search.yahoo.com/bin/search?p">http://search.yahoo.com/bin/search?p</A>=" + document.SearchForm.Search.value</P>
}</P>
if (current_site == "AltaVista") {</P>
top.location.href = "<A href="http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q">http://altavista.digital.com/cgi-bin/query?pg=q&what=web&fmt=.&q</A>=" + document.SearchForm.Search.value</P>
}</P>
if (current_site == "Lycos") {</P>
top.location.href = "<A href="http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query">http://www.lycos.com/cgi-bin/pursuit?adv=%26adv%3B&cat=lycos&matchmode=and&query</A>=" + document.SearchForm.Search.value + "&x=35&y=2"</P>
}</P>
if (current_site == "Excite") {</P>
top.location.href = "<A href="http://www.excite.com/search.gw?c=web&search">http://www.excite.com/search.gw?c=web&search</A>=" + document.SearchForm.Search.value + "&trace=a&x=31&y=20"</P>
}</P>
if (current_site == "Infoseek") {</P>
top.location.href = "<A href="http://www.infoseek.com/Titles?qt">http://www.infoseek.com/Titles?qt</A>=" + document.SearchForm.Search.value + "&col=WW&sv=IS&lk=noframes&nh=10"</P>
}</P>
if (current_site == "HotBot") {</P>
top.location.href = "<A href="http://www.hotbot.com/?SW=web&SM=MC&MT">http://www.hotbot.com/?SW=web&SM=MC&MT</A>=" + document.SearchForm.Search.value + "&DC=10&DE=2&RG=NA&_v=2&act.search.x=87&act.search.y=9"</P>
}</P>
</P>
return false;</P>
}</P>
</P>
function toggle_setdef() {</P>
set_def = !(set_def);</P>
}</P>
</P>
function setsite(sitenow) {</P>
current_site = sitenow;</P>
}</P>
</P>
// --></script></P>
<!-- A1 -->
<center><h1>Multiple Search Engines</h1></center>
<form method="GET" name="SearchForm" onsubmit="return fetch()">
<center><font size="-1">Yahoo</font><input type="radio" name="SITE" value="Yahoo" checked onclick="setsite('Yahoo')"> <font size="-1">AltaVista</font><input type="radio" name="SITE" value="AltaVista" onclick="setsite('AltaVista')"> <font size="-1">Lycos</font><input type="radio" name="SITE" value="Lycos" onclick="setsite('Lycos')"> <font size="-1">Excite</font><input type="radio" name="SITE" value="Excite" onclick="setsite('Excite')"> <font size="-1">Infoseek</font><input type="radio" name="SITE" value="Infoseek" onclick="setsite('Infoseek')"> <font size="-1">Hotbot</font><input type="radio" name="SITE" value="HotBot" onclick="setsite('HotBot')"></center>
<center><input type="Text" name="Search" size=30></center>
<center><input type="Submit" name="Submit"></center></form><hr>
<!-- -->
</P>موجود على هذا اللينك http://www.kettaneh.net/java/12-4.htm
اختكم / برستيج


