Jump to content


vhsantana

Member Since 22/11/2004
Offline Last Active 11/09/2009, 10:44
-----

Topics I've Started

Demora Na Carga De Arquivo

14/12/2005, 19:24

Olá Moçada,

Estou desenvolvendo um arquivo em Flash 8 utilizando ActionScript, porém, estou tendo um grave problema na hora da carga de arquivos externos.

Se possível me adicione no MSN Messenger vhsantana_mao@hotmail.com para discutirmos sobre o problema em tempo real.

Aguardo respostas de vcs!

Grato

Pq Naum Funfa No Firefox?

20/07/2005, 12:42

Não consigo fazer funcionar o script abaixo no Firefox... no IE Funfa legal, ajudem-me por favor:

<html>
<head>
<title> Textbox formatado... </title>
  <script language="JavaScript">
   function verifica() {
   var tipo;
   tipo = document.form1.tipodoc.value;
   if (tipo == "CPF" || tipo==""){
   txtBoxFormat(document.form1, 'doc', '999.999.999-99', event);
   }
   if (tipo == "CNPJ"){
   txtBoxFormat(document.form1, 'doc', '99.999.999/9999-99', event);
   }
   }
   
   function txtBoxFormat(objForm, strField, sMask, evtKeyPress) {
      var i, nCount, sValue, fldLen, mskLen,bolMask, sCod, nTecla;

      if(document.all) { // Internet Explorer
        nTecla = evtKeyPress.keyCode; }
      else if(document.layers) { // Nestcape
        nTecla = evtKeyPress.which;
      }

      sValue = objForm[strField].value;
 
      sValue = sValue.toString().replace( "-", "" );
      sValue = sValue.toString().replace( "-", "" );
      sValue = sValue.toString().replace( ".", "" );
      sValue = sValue.toString().replace( ".", "" );
      sValue = sValue.toString().replace( "/", "" );
      sValue = sValue.toString().replace( "/", "" );
      sValue = sValue.toString().replace( "(", "" );
      sValue = sValue.toString().replace( "(", "" );
      sValue = sValue.toString().replace( ")", "" );
      sValue = sValue.toString().replace( ")", "" );
      sValue = sValue.toString().replace( " ", "" );
      sValue = sValue.toString().replace( " ", "" );
      fldLen = sValue.length;
      mskLen = sMask.length;

      i = 0;
      nCount = 0;
      sCod = "";
      mskLen = fldLen;

      while (i <= mskLen) {
        bolMask = ((sMask.charAt(i) == "-") || (sMask.charAt(i) == ".") || (sMask.charAt(i) == "/"))
        bolMask = bolMask || ((sMask.charAt(i) == "(") || (sMask.charAt(i) == ")") || (sMask.charAt(i) == " "))

        if (bolMask) {
          sCod += sMask.charAt(i);
          mskLen++; }
        else {
          sCod += sValue.charAt(nCount);
          nCount++;
        }

        i++;
      }

      objForm[strField].value = sCod;

      if (nTecla != 8) { 
        if (sMask.charAt(i-1) == "9") { 
          return ((nTecla > 47) && (nTecla < 58)); } 
        else { 
          return true;
        } }
      else {
        return true;
      }
    }
  </script>
</head>
<body>
<form name="form1" method="post" action="">
  <table width="500" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="51">Tipodoc</td>
      <td width="449"><select name="tipodoc" id="tipodoc">
   <option value="CPF">CPF</option>
   <option value="CNPJ">CNPJ</option>
      </select></td>
    </tr>
    <tr>
      <td>Doc</td>
      <td><input name="doc" type="text" id="doc" size="20" onkeyup="verifica();"></td>
    </tr>
  </table>
</form>
</body>
</html>


Ajuda

19/05/2005, 17:16

Tenho um arquivo que sozinho carrega o CSS sem problemas, porém quando chamo esse mesmo arquivo pelo LoadMovieNum ele perde toda a formatação.

Por favor ajudem-me.


Grato

IPB Skin By Virteq