Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/02/2002, 13:02
yampoo4
 
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(&quot;A escrito mal el nombre de Usuario o éste Usuario no existe.&quot;);
}

if (IE4) {
txt = win.document.body.createTextRange();

// Find the nth match from the top of the page.

for (i = 0; i &lt;= n &amp;&amp; (found = txt.findText(str)) != false; i++) {
txt.moveStart(&quot;character&quot;, 1);
txt.moveEnd(&quot;textedit&quot;);
}

// If found, mark it and scroll it into view.

if (found) {
txt.moveStart(&quot;character&quot;, -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 &gt; 0) {
n = 0;
findInPage(str);
}

// Not found anywhere, give message.

else
alert(&quot;A escrito mal el nombre de Usuario o éste Usuario no existe.&quot;);
}
}

return false;
}

&lt;/script&gt;

&lt;form name=&quot;search&quot; onSubmit=&quot;return findInPage(this.string.value);&quot;&gt;
&lt;font size=&quot;2&quot;&gt;&lt;p align=&quot;center&quot;&gt;&lt;/font&gt;&lt;font size=&quot;3&quot;&gt;&lt;input name=&quot;string&quot; type=&quot;text&quot; size=&quot;15&quot;
onChange=&quot;n = 0;&quot; style=&quot;color: #3366CC; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF&quot;&gt;&lt;/font&gt; &lt;input type=&quot;submit&quot; value=&quot;Buscar&quot; style=&quot;font-family: Verdana; font-size: 8 pt; color: #0066FF; font-weight: bold; background-color: #FFFFFF; border: 1 solid #0066FF&quot;&gt;&lt;input type=&quot;reset&quot; value=&quot;Borrar&quot; name=&quot;B1&quot; style=&quot;background-color: #FFFFFF; color: #0066FF; font-family: Verdana; font-size: 8 pt; font-weight: bold; border: 1 solid #0066FF&quot;&gt; &lt;/p&gt;
&lt;/form&gt;
&lt;/font&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=&quot;21%&quot; height=&quot;17&quot; valign=&quot;top&quot; bgcolor=&quot;# </pre>