Ir para conteúdo
Fórum Script Brasil

fercosmig

Moderadores
  • Total de itens

    4.048
  • Registro em

  • Última visita

Tudo que fercosmig postou

  1. Parabéns aos dois novos estagiários!!! Sucesso.
  2. JOGO 01: ATLETICO-GO JOGO 02: SANTOS-SP
  3. JOGO 01: ATLETICO-GO JOGO 02: SANTOS-SP
  4. var str = "400 Teste de Categoria"; document.write(str.substr(4,str.length)); http://www.w3schools.com/jsref/jsref_obj_string.asp
  5. veja alguns exemplos em: http://scriptbrasil.com.br/forum/index.php?showtopic=82408
  6. JOGO 01: são PAULO-SP JOGO 02: FLUMINENSE-RJ JOGO 03: ATLETICO-MG JOGO 04: CORINTHIANS-SP JOGO 05: INTERNACIONAL-RS JOGO 06: FLAMENGO-RJ JOGO 07: SANTOS-SP JOGO 08: PALMEIRAS-SP JOGO 09: CRUZEIRO-MG JOGO 10: ATLETICO-PR
  7. qtd:<input type="text" name="txt1" id="qtd" value="0" /><br /> sep:<input type="text" name="txt1" id="sep" onBlur="verifica();" value="0" /><br /> smd:<input type="text" name="txt1" id="smd" onBlur="verifica();" value="0" /><br /> pth:<input type="text" name="txt1" id="pth" onBlur="verifica();" value="0" /><br /> fin:<input type="text" name="txt1" id="fin" onBlur="verifica();" value="0" /><br /> <div id='resp'></div> em todos os inputs ele chama fução onBlur="verifica();" deixa a chamada da função somente no campo fin
  8. tem que alterar a data de expiração do cookie da uma olhada ae http://www.w3schools.com/js/js_cookies.asp http://www.quirksmode.org/js/cookies.html
  9. troca resp.innerHTML = 'qtd maior que soma: ' + qtd + ' > ' + soma; por alert('qtd maior que soma: ' + qtd + ' > ' + soma);
  10. faz um teste ae function verifica(){ resp = document.getElementById('resp') qtd = document.getElementById('qtd').value; sep = document.getElementById('sep').value; smd = document.getElementById('smd').value; pth = document.getElementById('pth').value; fin = document.getElementById('fin').value; soma = parseInt(sep) + parseInt(smd) + parseInt(pth) + parseInt(fin); if ( qtd > soma ) resp.innerHTML = 'qtd maior que soma: ' + qtd + ' > ' + soma; else resp.innerHTML = 'qtd menor ou igual a soma: ' + qtd + ' <= ' + soma; } qtd:<input type="text" name="txt1" id="qtd" value="0" /><br /> sep:<input type="text" name="txt1" id="sep" onBlur="verifica();" value="0" /><br /> smd:<input type="text" name="txt1" id="smd" onBlur="verifica();" value="0" /><br /> pth:<input type="text" name="txt1" id="pth" onBlur="verifica();" value="0" /><br /> fin:<input type="text" name="txt1" id="fin" onBlur="verifica();" value="0" /><br /> <div id='resp'></div>
  11. olha um exemplo ae function abrir(pagina){ vURL = pagina; vName_Target = pagina; vConf = 'top=0, left=0, width='+screen.width+', height='+screen.availHeight; vConf += ', channelmode=0, directories=0, fullscreen=0, location=0, menubar=0'; vConf += ', resizable=1, scrollbars=1, status=0, titlebar=1, toolbar=0'; window.open(vURL,vName_Target,vConf); } <a href="java script: abrir('pag1.htm');">Abrir POPUP1</a> <a href="java script: abrir('pag2.htm');">Abrir POPUP2</a> <a href="java script: abrir('pag3.htm');">Abrir POPUP3</a> <a href="java script: abrir('pag4.htm');">Abrir POPUP4</a>
  12. use o focus() no onload da página HTMLElement focus() Method
  13. olha um exemplo ae: http://scriptbrasil.com.br/forum/index.php?showtopic=121008
  14. JOGO 01: VASCO-RJ JOGO 02: PALMEIRAS-SP JOGO 03: GREMIO-RS JOGO 04: SANTOS-SP
  15. opa, como está tentando fazer? está apresentando erro? qual sua dúvida?
  16. tem exemplos no repositório de scripts, dá uma olhada: http://scriptbrasil.com.br/forum/index.php?showforum=65
  17. bem vindo ae kreison da uma olhada no tópico abaixo: http://scriptbrasil.com.br/forum/index.php...mp;#entry553421
  18. JOGO 01: VASCO-RJ JOGO 02: SANTOS-SP JOGO 03: PALMEIRAS-SP JOGO 04: FLUMINENSE-RJ
  19. fercosmig

    Janela Popup

    da uma olhada: Window open() Method
  20. JOGO 01: SANTOS-SP JOGO 02: GREMIO-RS JOGO 03: PALMEIRAS-SP JOGO 04: FLAMENGO-RJ JOGO 05: ATLETICO-MG JOGO 06: INTERNACIONAL-RS JOGO 07: CORINTHIANS-SP JOGO 08: FLUMINENSE-RJ JOGO 09: GOIAS-GO JOGO 10: AVAI-SC
  21. faz um teste ae (no exemplo abaixo mostra somente quando for maior que 5) SELECT nome, COUNT(exemplar) AS qtd_locacoes FROM locacao JOIN usuario ON ( codigo = usuario ) WHERE EXTRACT(YEAR FROM retirada) = '2000' GROUP BY usuario having count(exemplar) > 5;
×
×
  • Criar Novo...