-
Total de itens
638 -
Registro em
-
Última visita
Tudo que Tenko postou
-
Tem fundamento o que o Amon-Rá_Beraldo disse, nós programadores temos que fazer um sistema pensando no usuário, não nas coisas que possuímos em nossas máquinas.
-
Pessoal, queria fazer uma pergunta, acho que é meio burrinha, mas como eu faço o seguinte esquema. Gostaria de apresentar na tela, em uma tabela, o resultado de uma busca no banco, só que quando a tabela tiver mais de 5 tudo, uma do lado da outra é claro, quebre a linha e faça o mesmo esquema novamente. Não sei se deu pra entender, vai ficar mais ou menos assim. Teste 1 teste 2 teste 3 teste 4 teste 5 Teste 6 teste 7 teste 8 teste 9 teste 10
-
Como faço pra mudar a cor do textfield quando o mesmo receber o focus
-
Por que moveram pra cá, a dúvida era como fazer isso em JAVA mesmo, em JavaScript é fácil
-
Fazer Cursor Focar O Primeito Input Do Form
pergunta respondeu ao biriba de Tenko em Ajax, JavaScript, XML, DOM
Precisando estamos ai -
Fazer Cursor Focar O Primeito Input Do Form
pergunta respondeu ao biriba de Tenko em Ajax, JavaScript, XML, DOM
function setaFolha(){ document.nome_do_form.nome_do_campo.focus() } < body onload="setaFolha()" > -
Boa tarde pessoal, beleza? Como faço pra mudar a cor do textfield quando o mesmo receber o focus
-
Realmente, um dos melhores livros que eu li.
-
Se não for isso quie você quer então não sei o que é: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script> function trataCliqueLogin() { var blocoLogin = document.getElementById( "divLogin" ); var linkBuscaAvancada = document.getElementById( "lnkBuscaAvancada" ); var exibicaoAtual = blocoLogin.style.display; if ( exibicaoAtual == "none" ) { blocoLogin.style.display = "block"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>««</font> Ocultar Acesso Site</b>"; } else { blocoLogin.style.display = "none"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>»»</font> Exibir Acesso Site</b>"; } } </script> <style type="text/css"> <!-- #divLogin { position:absolute; left:107px; top:1px; width:228px; height:91px; z-index:1; } --> </style> </head> <body> <div id="divLogin" style="display: none"> <table border="1" cellpadding="4" cellspacing="0" width="100%" bordercolor="#000000"> <tr bgcolor="#CCCCCC"> <tudo> Usuário : </tudo> <tudo> <input type="text" name="txtLogin" value=""> </tudo> </tr> <tr bgcolor="#CCCCCC"> <tudo> Senha : </tudo> <tudo> <input type="password" name="txtSenha" value=""> </tudo> </tr> <tr bgcolor="#CCCCCC"> <tudo colspan="2"> <input type="button" name="logar" value="Logar"> </tudo> </tr> </table> </div> </div> <a id="lnkBuscaAvancada" href="#" onClick="trataCliqueLogin();" style="text-decoration:none"> <b><font color="#000000">»»</font> Exibir Acesso Site</b> </a> </body> </html>
-
Se o texto esta com quebra de linha use o comando nl2br. $sTexto = nl2br( $sTexto );
-
Valeu, fui bem burraldo, já fiz o esquema funcionar, obrigado.
-
Php 5 conceitos, programação e integração com banco de dados. Editora Erica
-
Se não for isso que você quer eu desisto, esse menu esta flutuando na tela. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <script> function trataCliqueLogin() { var blocoLogin = document.getElementById( "divLogin" ); var linkBuscaAvancada = document.getElementById( "lnkBuscaAvancada" ); var exibicaoAtual = blocoLogin.style.display; if ( exibicaoAtual == "none" ) { blocoLogin.style.display = "block"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>««</font> Ocultar Acesso Site</b>"; } else { blocoLogin.style.display = "none"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>»»</font> Exibir Acesso Site</b>"; } } </script> <style type="text/css"> <!-- #divLogin { position:absolute; left:107px; top:1px; width:228px; height:91px; z-index:1; } --> </style> </head> <body> <div id="divLogin" style="display: block"> <table border="1" cellpadding="4" cellspacing="0" width="100%" bordercolor="#000000"> <tr bgcolor="#CCCCCC"> <tudo> Usuário : </tudo> <tudo> <input type="text" name="txtLogin" value=""> </tudo> </tr> <tr bgcolor="#CCCCCC"> <tudo> Senha : </tudo> <tudo> <input type="password" name="txtSenha" value=""> </tudo> </tr> <tr bgcolor="#CCCCCC"> <tudo colspan="2"> <input type="button" name="logar" value="Logar"> </tudo> </tr> </table> </div> </div> <a id="lnkBuscaAvancada" href="#" onClick="trataCliqueLogin();" style="text-decoration:none"> <b><font color="#000000">»»</font> Exibir Acesso Site</b> </a> </body> </html>
-
<?php // Array com as informações a serem alteradas $aNomes = array( "Rodrigo Tenko","Este teste retira o espaço em branco","Php Java Sql JavaScript" ); // Variavel Busca : busca por ESPAÇOS EM BRANCO no array $busca = " "; // Variavel Valores : Troca os ESPAÇOS EM BRANCO encontrados na Variavel Busca // por ; $valores = ";"; // str_replace : Faz a troca entre as informações // Ex : Rodrigo Tenko fica = Rodrigo;Tenko $sNomes = str_replace( $busca, $valores, $aNomes ); // Loop usado para exibir as informações contidas na Variavel $aNomes for( $i=0; $i < count( $sNomes ); $i++ ){ // Exibe todos os resultados echo $i." - ".$sNomes[$i]."<br>"; } ?>
-
Espero que te ajude <html> <head> <title>Form soma</title> <script> var bola="21.00"; var boliche="50.00"; </script> <script> function soma(){ var qt = parseInt(document.f1.qtd.value); var total = qt * bola; document.f1.total.value = total+",00"; } </script> <style type="text/css"> BODY { scrollbar-arrow-color:000000; scrollbar-track-color:f2f2f2; scrollbar-shadow-color:cccccc; scrollbar-face-color:ffffff; scrollbar-highlight-color:ffffff; scrollbar-darkshadow-color:000000; scrollbar-3dlight-color:e2e2e2; } .titulo1 {font-family :arial; font-size:13; color:darkred} .titulo {font-family :arial; font-size:18; color:darkred} .texto {font-family :arial; font-size:12; color:gray} .texto1 {font-family :arial; font-size:12; color:white} .codigo {font-family :arial; font-size:10; color:gray} .h, A.h:link, A.h:visited, A.h:hover {font-size: 12px;color: gray;font-face:arial;text-decoration: none} A.h:hover {color: red} .extra, A.extra:link, A.extra:visited, A.extra:hover {font-size: 12px;color: gray;font-face:arial;text-decoration: none} A.extra:hover {color: black} .box { border-top:1px solid #c8c8c8; border-bottom:1px solid #c8c8c8; border-left:1px solid #c8c8c8; border-right:1px solid #c8c8c8; font-family:arial; font-size:12px; color: gray; background-color:ffffff; } navegacao{font-family :arial; font-size:12; color:white; text-decoration:none} a:hover{font-family :arial; font-size:12; color:red;text-decoration:none} a:link{font-family :arial; font-size:12; color:gray;text-decoration:none} a:vlink{font-family :arial; font-size:12; color:gold;text-decoration:none} a:visited{font-family :arial; font-size:12; color:green;text-decoration:none} </style> </head> <body> <form enctype="application/x-www-form-urlencoded" name="f1"> <table border=1 class="box" bordercolor="darkblue" cellspacing=0 cellpaddin=2> <tr> <tudo class="texto1" width="12%" align="center" background="azul.gif"><b>Produto</b></tudo> <tudo class="texto1" width="12%" align="center" background="azul.gif"><b>Quantidade</b></tudo> <tudo class="texto1" width="12%" align="center" background="azul.gif"><b>Preço Unitário</b></tudo> <tudo class="texto1" width="12%" align="center" background="azul.gif"><b>Total</b></tudo> </tr> <tr> <tudo class="texto1" align="center" bgcolor="iceblue">Bola de Futebol</tudo> <tudo class="texto" align="center" bgcolor="iceblue"><input type="text" size="5" maxlength="5" class="box" name="qtd"></tudo> <tudo class="texto1" align="center" bgcolor="iceblue"><b><script>document.write(bola);</script></b></tudo> <tudo class="texto1" align="center" bgcolor="iceblue"><input type="text" size="6" maxlength="6" class="box" name="total"></tudo> </tr> <tr> <tudo class="texto" align="center" colspan=4 bgcolor="iceblue"><input type="button" value=" Calcular " class="box" name="Calcular" onClick="soma();"></tudo> </tr> </form> </body> </html>
-
Eu fiz assim e não esta funcionando function pegaValorTexto( valor ){ <!-- Variaveis Globais --> textoDigitado = document.selection.createRange(); alert( textoDigitado.txt ); }
-
Boa tarde pessoal, beleza? Minha duvida é a seguinte: Tenho um campo TextArea e gostaria de saber como pegar o valor que foi selecionado pelo usuário e exibir em um alert(); Ex: Este é um teste de selecionador de textos. O usuário seleciona só o texto, e quando clica fora do TextArea é exibido a mensagem de alerta contendo o valor texto. Alguém pode me ajudar?
-
<?php $aNomes = array( "Rodrigo Tenko","Este teste retira o espaço em branco","Php Java Sql JavaScript" ); $busca = " "; $valores = ";"; $sNomes = str_replace( $busca, $valores, $aNomes ); for( $i=0; $i < count( $sNomes ); $i++ ){ echo $i." - ".$sNomes[$i]."<br>"; } ?>
-
Como FaÇo Pra Exibir Uma VariÁvel De Php Colorida?,
pergunta respondeu ao Saulo_Jitsu de Tenko em PHP
$sT = "Tenko"; echo "<font color='#f2f2f2'>" .$sT. "</font>"; -
Pagina login.htm <html> <head> <title></title> <script> function janelaLogin( url,nome,tamanho ) { window.open( url,nome,tamanho ); } function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); } </script> </head> <body> <input name="button" type="button" onClick="janelaLogin('login1.htm','Login','width=250,height=250')" value="Logar"> </body> </head> </html> pagina login1.htm <html> <head> <title></title> </head> <body> <table border="0" cellpadding="2" cellspacing="0" width="30%"> <tr> <tudo> Usuário : </tudo> <tudo> <input type="text" name="txtLogin" value=""> </tudo> </tr> <tr> <tudo> Senha : </tudo> <tudo> <input type="password" name="txtSenha" value=""> </tudo> </tr> <tr> <tudo colspan="2"> <input type="button" name="logar" value="Logar"> </tudo> </tr> </table> </body> </html>
-
<html> <head> <title></title> <script> function janelaLogin( url,nome,tamanho ) { window.open( url,nome,tamanho ); } </script> </head> <body> <input name="button" type="button" onClick="janelaLogin('login.htm','Login','width=250,height=250')" value="Logar"> </body> </html>
-
Perai, você não quer trabalhar com DIV, você quer uma janela Pop Up simples...
-
<html> <head> <title> </title> <script> function confirmaMail( url ) { if ( window.confirm( "Todos os dados estão corretos?( Confirmar / Cancelar )" ) ) window.location.href=url; } </script> </head> <body> <a href="#" onClick="java script:confirmaMail( 'confmail.htm' );"> <input type="button" value="enviar"> </a> </body> </html>
-
Bom dia, espero que isso te ajude. <html> <head> <title> </title> <script> function trataCliqueLogin() { var blocoLogin = document.getElementById( "divLogin" ); var linkBuscaAvancada = document.getElementById( "lnkBuscaAvancada" ); var exibicaoAtual = blocoLogin.style.display; if ( exibicaoAtual == "none" ) { blocoLogin.style.display = "block"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>««</font> Ocultar Acesso Site</b>"; } else { blocoLogin.style.display = "none"; linkBuscaAvancada.innerHTML = "<b><font color='#000000'>»»</font> Exibir Acesso Site</b>"; } } </script> </head> </head> <body> <a id="lnkBuscaAvancada" href="#" onClick="trataCliqueLogin();" style="text-decoration:none"> <b><font color="#000000">»»</font> Exibir Acesso Site</b> </a> <div id="divLogin" style="display: none"> <table border="0" cellpadding="2" cellspacing="0" width="30%"> <tr> <tudo> Usuário : </tudo> <tudo> <input type="text" name="txtLogin" value=""> </tudo> </tr> <tr> <tudo> Senha : </tudo> <tudo> <input type="password" name="txtSenha" value=""> </tudo> </tr> <tr> <tudo colspan="2"> <input type="button" name="logar" value="Logar"> </tudo> </tr> </div> </body> </html>
-
//Data vinda do form dd/mm/aaaa $sData = $_POST[ "data" ]; // Transformando a data no formato para bd aaaa/mm/dd // indice 0 1 2 // Data 08/05/2006 $sData = explode( "/" , $sData ); $sData = $sData[2]."/".$sData[1]."/".$sData[0];