مشاهدة النسخة كاملة : سؤال لخبراء PHP.أنا عاوز أعمل search في موقعي هل من حل.
iliassinfo
03-19-2006, 04:14 PM
أنا عاوز أعمل search في موقعي هل من حل.
يعني عمل سكريبت فيه Search على لغة PHP ?
أرجوووووووووووووووووووووووووووووووووووووووووو المساعدة.
تحيييييييييييييييييياتى
قم بعميل البحث في المنتدى هنا
انا كنت حاطة بس ناسي ...
وهو سهل :)
كود البحث في نفس الصفحة
<!-- TWO STEPS TO INSTALL FIND IN PAGE:
1. Copy the coding into the HEAD of your HTML ********
2. Add the last code into the BODY of your HTML ******** -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML ******** -->
<HEAD>
<****** LANGUAGE="Java******">
<!-- The Java****** Source!! http://www.hey.to/spcialman -->
<!-- Begin
var NS4 = (********.layers);
var IE4 = (********.all);
var win = this;
var n = 0;
function findInPage(str) {
var txt, i, found;
if (str == "")
return false;
if (NS4) {
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
if (n == 0) alert(str + " was not found on this page.");
}
if (IE4) {
txt = win.********.body.createTextRange();
for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
txt.moveStart("character", 1);
txt.moveEnd("textedit");
}
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
else {
if (n > 0) {
n = 0;
findInPage(str);
}
else
alert(str + " was not found on this page.");
}
}
return false;
}
// End -->
</******>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML ******** -->
<BODY>
<form name=search onSubmit="return findInPage(this.string.value);">
أبحث في نفس الصفحة
<input name=string type=text size=15 onChange="n = 0;">
</form>
<p><center>
<font face="arial, helvetica" size="-2">Free Java******s provided<br>
by <a href="http://www.hey.to/spcialman">SpcialMan</a></font>
</center><p>
<!-- ****** Size: 1.54 KB -->
جرب هذاااا
iliassinfo
03-19-2006, 10:56 PM
مشكووووور أخي على السكريبت.
أنا عايز بحث في الموقع كاملا.
على أي مشكور