Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/08/2006, 07:37
White_Devi
 
Fecha de Ingreso: noviembre-2002
Ubicación: http://localhost/
Mensajes: 195
Antigüedad: 22 años, 2 meses
Puntos: 1
si! me funciono, no es justo lo que queria, pero con eso de "lastIndexOf" lo pude modificar y ya me funciona como quiero, mil gracias :D y para si a alguien le interesa la funcion aqui la pongo ya modificada:

Código:
<html>
<script>
function determinarValor(t){
  var i = t.indexOf("(");
  var j = t.lastIndexOf(")");

  return t.substring(i+1,j);
}
</script>
<body>
texto <input name="texto"><input type="button" onclick="alert(determinarValor(determinarValor(document.all['texto'].value)));" value="+">
</body>
</html>
__________________
http://www.ingenierosinc.com