
08/02/2002, 13:02
|
| | Fecha de Ingreso: febrero-2002
Mensajes: 52
Antigüedad: 23 años, 3 meses Puntos: 0 | |
Re: k le pasa a esto... <pre>if (NS4) {
// Look for match starting at the current point. If not found, rewind
// back to the first match.
if (!win.find(str))
while(win.find(str, false, true))
n++;
else
n++;
// If not found in either direction, give message.
if (n == 0)
alert("A escrito mal el nombre de Usuario o éste Usuario no existe.");
}
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, mark it and scroll it into view.
if (found) {
txt.moveStart("character", -1);
txt.findText(str);
txt.select();
txt.scrollIntoView();
n++;
}
// Otherwise, start over at the top of the page and find first match.
else {
if (n > 0) {
n = 0;
findInPage(str);
}
// Not found anywhere, give message.
else
alert("A escrito mal el nombre de Usuario o éste Usuario no existe.");
}
}
return false;
}
</script>
<form name="search" onSubmit="return findInPage(this.string.value);">
<font size="2"><p align="center"></font><font size="3"><input name="string" type="text" size="15"
onChange="n = 0;" style="color: #3366CC; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF"></font> <input type="submit" value="Buscar" style="font-family: Verdana; font-size: 8 pt; color: #0066FF; font-weight: bold; background-color: #FFFFFF; border: 1 solid #0066FF"><input type="reset" value="Borrar" name="B1" style="background-color: #FFFFFF; color: #0066FF; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF"> </p>
</form>
</font></td>
</tr>
<tr>
<td width="21%" height="17" valign="top" bgcolor="# </pre> |