Io uso questo script, vedi se può fare al caso tuo.
codice:
<font face="Verdana" color="#000080">
<center>
<form name="search" onSubmit="return findInPage(this.string.value);" style="background-color: #FFFFFF">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" height="46">
<tr>
<td width="33%" height="45" rowspan="2">
<p align="center">
</td>
<td width="33%" height="18">
<p align="center">Trova</td>
<td width="34%" height="18"></td>
</tr>
<tr>
<td width="33%" height="27" valign="bottom">
<font face="Verdana" color="#000080">
<p align="center"><font size="1">
<script language="JavaScript">
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
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("Not found.");
}
if (IE4) {
txt = win.document.body.createTextRange();
// Find the nth match from the top of the page.
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("Parola non trovata in questa pagina.");
}
}
return false;
}
</script>
</font><font size=3><input name="string" type="text" size=17 onChange="n = 0;"></font><input type="submit" value="Cerca" style="font-size: 10"></font></td>
<td width="34%" height="27" valign="bottom">
</td>
</tr>
</table></font>
Ram
CPU
ROM
CDROM
</p>
Funziona abbastanza bene