Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

carmolim

um problema maluco...

Recommended Posts

galera é o seguinte

 

eu criei um form, que se abre num pop-up, daí quando eu vou preencher o form e passo o mouse por cima do type="text" abre um outro form do nada que tb abre em pop-up...

 

eu vou mandar o código da pagina que tem o frm que vai ser aberto em um popup, para vcs vererm, se vcs acharem alguma coisa me avisem....

 

<html><head><title>[:::ENQUETE:::]</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script language="JavaScript" type="text/JavaScript"><!--function MM_jumpMenu(targ,selObj,restore){ //v3.0  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  if (restore) selObj.selectedIndex=0;}function MM_openBrWindow(theURL,winName,features) { //v2.0  window.open(theURL,winName,features);}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_validateForm() { //v4.0  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);    if (val) { nm=val.name; if ((val=val.value)!="") {      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';      } else if (test!='R') { num = parseFloat(val);        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');          min=test.substring(8,p); max=test.substring(p+1);          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }  } if (errors) alert('The following error(s) occurred:\n'+errors);  document.MM_returnValue = (errors == '');}//--></script></head><body bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="581" border="0" cellpadding="0" cellspacing="0">  <!--DWLayoutTable-->  <tr>     <td height="55" colspan="3" valign="top"><div align="left">         <pre><font color="#FFFFFF" size="+4" face="Small Fonts">  Recado</font></pre>      </div></td>  </tr>  <tr>     <td width="26" height="497"> </td>    <td width="509" valign="top"><pre> </pre>      <form name="mensagem" method="post" action="http://unix.wmonline.com.br/formmail/formmail.php">        <pre><font color="#CCCCCC" face="Verdana, Arial, Helvetica, sans-serif"><strong>Nome</strong>:<input type="hidden" name="recipient" value="tpfcs@terra.com.br"><input type="hidden" name="redirect" value="http://www.tpfcs.kit.net/enviada.htm"><strong></strong><input name="name" type="text" id="name" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40"><strong>Assunto:</strong><input name="subject" type="text" id="subject" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40"><strong>Mensagem: </strong></textarea><textarea name="textarea" cols="70" rows="10" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000"></textarea></font><font color="#CCCCCC" size="2" face="Verdana"><input name="envia" type="image" onClick="MM_validateForm('name','','R','subject','','R','textarea','','R');return document.MM_returnValue" src="/botoes/envia.jpg" width="50" height="22" border="0"></font></pre>      </form></td>    <td width="46"> </td>  </tr></table></body></html>

 

valew....

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tira o q ta em vermelho....

 

<html>

<head>

<title>[:::ENQUETE:::]</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script language="JavaScript" type="text/JavaScript">

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

if (restore) selObj.selectedIndex=0;

}

 

function MM_openBrWindow(theURL,winName,features) { //v2.0

window.open(theURL,winName,features);

}

 

function MM_findObj(n, d) { //v4.01

var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];

for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);

if(!x && d.getElementById) x=d.getElementById(n); return x;

}

 

function MM_validateForm() { //v4.0

var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;

for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args);

if (val) { nm=val.name; if ((val=val.value)!="") {

if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');

if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';

} else if (test!='R') { num = parseFloat(val);

if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';

if (test.indexOf('inRange') != -1) { p=test.indexOf(':');

min=test.substring(8,p); max=test.substring(p+1);

if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';

} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }

} if (errors) alert('The following error(s) occurred:\n'+errors);

document.MM_returnValue = (errors == '');

}

//-->

</script>

</head>

 

<body bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<table width="581" border="0" cellpadding="0" cellspacing="0">

<!--DWLayoutTable-->

<tr>

<td height="55" colspan="3" valign="top"><div align="left">

<pre><font color="#FFFFFF" size="+4" face="Small Fonts"> Recado</font></pre>

</div></td>

</tr>

<tr>

<td width="26" height="497"> </td>

<td width="509" valign="top"><pre> </pre>

<form name="mensagem" method="post" action="http://unix.wmonline.com.br/formmail/formmail.php">

<pre><font color="#CCCCCC" face="Verdana, Arial, Helvetica, sans-serif"><strong>

Nome</strong>:<input type="hidden" name="recipient" value="tpfcs@terra.com.br"><input type="hidden" name="redirect" value="http://www.tpfcs.kit.net/enviada.htm"><strong></strong>

 

<input name="name" type="text" id="name" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40"><strong>

 

Assunto:

 

</strong><input name="subject" type="text" id="subject" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40">

 

<strong>Mensagem: </strong>

 

</textarea><textarea name="textarea" cols="70" rows="10" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000"></textarea>

</font><font color="#CCCCCC" size="2" face="Verdana">

 

<input name="envia" type="image" onClick="MM_validateForm('name','','R','subject','','R','textarea','','R');return document.MM_returnValue" src="/botoes/envia.jpg" width="50" height="22" border="0">

</font></pre>

</form></td>

<td width="46"> </td>

</tr>

</table>

</body>

</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

eu jah tirei isso, mas continua abrindo e para falar a verdade eu neum sei da onde que apareceu essa porrada de coisa ai:

 

<script language="JavaScript" type="text/JavaScript"><!--function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0;}function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}function MM_findObj(n, d) { //v4.01 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);   if (val) { nm=val.name; if ((val=val.value)!="") {     if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');       if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';     } else if (test!='R') { num = parseFloat(val);       if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';       if (test.indexOf('inRange') != -1) { p=test.indexOf(':');         min=test.substring(8,p); max=test.substring(p+1);         if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';   } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; } } if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == '');}//--></script>

você tem ideia de onde que veio tdo isso?

 

 

valew

Compartilhar este post


Link para o post
Compartilhar em outros sites

Testa agora...

 

<html><head><title>[:::ENQUETE:::]</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script language="JavaScript" type="text/JavaScript"><!--function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0;}function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features);}function MM_findObj(n, d) { //v4.01 var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {   d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_validateForm() { //v4.0 var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments; for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);   if (val) { nm=val.name; if ((val=val.value)!="") {     if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');       if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';     } else if (test!='R') { num = parseFloat(val);       if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';       if (test.indexOf('inRange') != -1) { p=test.indexOf(':');         min=test.substring(8,p); max=test.substring(p+1);         if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';   } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; } } if (errors) alert('The following error(s) occurred:\n'+errors); document.MM_returnValue = (errors == '');}//--></script></head><body bgcolor="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><table width="581" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr>    <td height="55" colspan="3" valign="top"><div align="left">        <pre><font color="#FFFFFF" size="+4" face="Small Fonts">  Recado</font></pre>     </div></td> </tr> <tr>    <td width="26" height="497"> </td>   <td width="509" valign="top"><pre> </pre>     <form name="mensagem" method="post" action="http://unix.wmonline.com.br/formmail/formmail.php">       <pre><font color="#CCCCCC" face="Verdana, Arial, Helvetica, sans-serif"><strong>Nome</strong>:<input type="hidden" name="recipient" value="tpfcs@terra.com.br"><input type="hidden" name="redirect" value="http://www.tpfcs.kit.net/enviada.htm"><strong></strong><input name="name" type="text" id="name" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40"><strong>Assunto:</strong><input name="subject" type="text" id="subject" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000" size="40"><strong>Mensagem: </strong><textarea name="textarea" cols="70" rows="10" style="background-color: #CCCCCC; font-family: Verdana; font-size: 8 pt; border: 1 solid #000000"></textarea><input name="envia" type="image" onClick="MM_validateForm('name','','R','subject','','R','textarea','','R');return document.MM_returnValue" src="/botoes/envia.jpg" width="50" height="22" border="0"></font></pre>     </form></td>   <td width="46"> </td> </tr></table></body></html>

Alica CWB

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.