Ir para conteúdo
Fórum Script Brasil

fercosmig

Moderadores
  • Total de itens

    4.048
  • Registro em

  • Última visita

Tudo que fercosmig postou

  1. vê se te serve: http://scriptbrasil.com.br/forum/index.php...mp;#entry323596
  2. vê se te ajuda ae! fiz um teste aqui no FF e funcionou de boa! function mostradiv(status){ alert(status); } window.onload = function(){ obj = document.getElementsByName('tipo'); for(i = 0;i < obj.length; i++){ if(obj[i].checked) vstatus = obj[i].value; } mostradiv(vstatus); } <input type="radio" id="rd1" name="tipo" value="emprego" onClick="mostradiv(this.value);" checked="checked"/>Emprego <br/> <input type="radio" id="rd2" name="tipo" value="estagio" onClick="mostradiv(this.value);"/>Estágio <br/> <input type="radio" id="rd3" name="tipo" value="ambos" onClick="mostradiv(this.value);"/>Ambos
  3. fecha a tag title corretamente que aparece também no IE.
  4. faz um teste ae function formata_valor(str_valor) tamanho = len(str_valor) inicio = left(str_valor,tamanho-2) final = right(str_valor,2) formata_valor = inicio & "." & final end function v_valor = "4500" response.write(formata_valor(v_valor))
  5. se não em engano só utilizando espaços (&nbsp;). existe o &#09; porém só funciona dentro da tag <pre></pre>.
  6. testei aqui no no FF e funcionou de boa.. testa ae <script language="javascript" type="text/javascript"> <!-- window.onload = function(){ div = 900; tamanho = window.outerWidth; sobra = tamanho - div; margin = sobra/2; document.getElementById('global').style.left = margin; } --> </script> ----- edited ----- putz... de acordo o w3schools só funciona no FF http://www.w3schools.com/jsref/obj_window.asp
  7. um exemplo ae: <script language="javascript" type="text/javascript"> <!-- aux = 0; function mudar(obj1, idobj2){ obj2 = document.getElementById(idobj2); if (aux == 0){ obj1.src = '004.jpg'; obj2.src = '001.jpg'; aux++; }else{ obj1.src = '001.jpg'; obj2.src = '004.jpg'; aux--; } } --> </script> <img src="001.jpg" id="a" onMouseOver="mudar(this,'b');" onMouseOut="mudar(this,'b');"/> <img src="004.jpg" id="b" onMouseOver="mudar(this,'a');" onMouseOut="mudar(this,'a');"/>
  8. utilize os eventos onmouseover e onmouseout exemplo: <img src="001.jpg" onMouseOver="this.src = '004.jpg';" onMouseOut="this.src = '001.jpg';"/>
  9. usa no head <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
  10. testei no FF 3.0.15 e funcionou de boa! utilize o firebug e avisa se apresentar erro. <script language="javascript" type="text/javascript"> <!-- function max1(txarea){ total = 50; tam = txarea.value.length; str=""; str=str+tam; Digitado1.innerHTML = str; Restante1.innerHTML = total - str; if (tam > total){ aux = txarea.value; txarea.value = aux.substring(0,total); Digitado1.innerHTML = total Restante1.innerHTML = 0 } } --> </script> <textarea onKeyUp="java script: return max1(this);" rows="10" cols="80"></textarea> <div>Digitado: <span id="Digitado1">0</span></div> <div>Restante: <span id="Restante1"></span></div>
  11. fercosmig

    Moderador

    leia os itens 7.3, 7.4 e 7.5 do link abaixo http://scriptbrasil.com.br/forum/index.php?act=boardrules
  12. Criação de diretórios virtuais em Apache
  13. utiliza ponto no lugar da vírgula, ele dá erro de NaN (Not a Number) porque o javascript entende que é uma string por causa da vírgula. pode usar o replace() também para trocar a vírgula por ponto na hora de calcular.
  14. user blur() e focus() para iniciar e pausar o contador. da uma olhada no link: The Window Object
  15. cria nesta tabela um campo data_cadastro com valor default getdate() No SQL Server é getdate() no MySQL deve ser também mesmo assim da uma olhada no link abaixo: MySQL 5.1 Reference Manual :: 11 Functions and Operators :: 11.6 Date and Time Functions e no select select top 3 mat_id, mat_titulo, mat_texto from tabela order by data_cadastro desc ----- edited (+) ----- ou se não quiser inserir a data use: select top 3 mat_id, mat_titulo, mat_texto from tabela order by mat_id desc
  16. usa array nas variáveis click e for para esconder os itens.
  17. fercosmig

    Dúvida em JOIN

    select garcom.nome from garcom inner join pedido on garcom.idGarcom = pedido.Garcom_idGarcom where pedido.idPedido = 1
  18. letras minusculas => JavaScript toLowerCase() Method testa estas duas formas (com CSS e com javascript) veja a diferença: <input type="text" name="txt1" id="txt1" style="text-transform:uppercase;"/> <input type="button" name="btn1" onClick="java script: exibe('txt1');" /> <br /><br /> <input type="text" name="txt2" id="txt2" onKeyUp="java script: maius(this);"/> <input type="button" name="btn2" onClick="java script: exibe('txt2');" /> com as funções: function exibe(id){ str = document.getElementById(id).value; alert(str); } function maius(obj){ obj.value = obj.value.toUpperCase(); } function minus(obj){ obj.value = obj.value.toLowerCase(); }
  19. JOGO 01: SPORT-PE JOGO 02: SANTOS-SP JOGO 03: BARUERI-SP x ATLÉTICO-PR JOGO 04: FLUMINENSE-RJ JOGO 05: INTERNACIONAL-RS JOGO 06: FLAMENGO-RJ JOGO 07: VITÓRIA-BA JOGO 08: AVAÍ-SC JOGO 09: CORINTHIANS-SP JOGO 10: BOTAFOGO-RJ x PALMEIRAS-SP
  20. JOGO 01: CORINTHIANS-SP JOGO 02: ATLÉTICO-MG JOGO 03: SANTO ANDRÉ-SP x NÁUTICO-PE JOGO 04: ATLÉTICO-PR x BOTAFOGO-RJ JOGO 05: GRÊMIO-RS JOGO 06: FLUMINENSE-RJ JOGO 07: GOIÁS-GO JOGO 08: INTERNACIONAL-RS JOGO 09: CRUZEIRO-MG JOGO 10: AVAÍ-SC x SANTOS-SP
×
×
  • Criar Novo...