
leo71
Membros-
Total de itens
126 -
Registro em
-
Última visita
Tudo que leo71 postou
-
Como Faço P/aparecer Uma Mensagem No Cursor?
uma questão respondeu leo71 em Ajax, JavaScript, XML, DOM
Ue!? Num é ALT? ou é TITLE? To confuso!!! -
é melhor que faça assim, é mais simples... <INPUT TYPE=text NAME=data ONKEYUP="data()" ONKEYDOWN="data()"> No JS... <script> function data() { if(data.value.length==2||data.value.length==5) { data.value+="/" } } </SCRIPT> Tipo se for campo de CPF, coloque no JS assim: <script> function cpf() { if(cpf.value.length==3||cpf.value.length==7) { cpf.value+="." } if(cpf.value.length==11) { cpf.value+="/" } } </SCRIPT> ai no input maxlength coloque 15 VALEU!!!
-
Ao Sair De Um Campo, Dar Uum Refresh
pergunta respondeu ao §tRuTe® de leo71 em Ajax, JavaScript, XML, DOM
Ops!!! Faz o seguinte... Coloque uma Imagem em Algum canto dessa Pagina tipo assim: Mais nisso você terá que criar uma Imagem 1x1 com a cor branca Coloque o nome dela como PONTO.GIF <Input Name="foto" Onchange="fotos()"> <img src="ponto.gif" NAME="fotom"> já no script... <script> function fotos() { fotom.src=foto.value } </SCRIPT> Ve se é isso! Se num For Posta Ai!!! -
Cara sei não... mais você pode testar assim: x = prompt("Mensagem","Sub Mensagem","Vai","Testando","Ve","o que","Muda")
-
Posso te Ajudar de 1 Jeito... Complicado mais acho que é o unico jeito Crie sua pagina em IFRAME... como você é novo acho q não conhece... digite assim... <IFRAME NAME=area STYLE="Position:absolute; top:0; left:0; width:782; height:400"> Abaixo coloque assim: <SELECT NAME="fonte" STYLE="Position:absolute; top:400; left:300"> <OPTION VALUE="Nome da Fonte">NDF</OPTION> </SELECT> Agora que é a pior parte... você não poderá colocar a Pagina com Diversar tag Font... Apenas Uma Depois da Tag <BODY>, e Antes da Tag </Body> Na que fica antes da tag body coloque assim... ou seja, ao invés de colocar a Tag da Font, digite... <script> // Atenção Aqui existe 2 tipos de (Ponto Voador) ' esse e " esse // ou seja, o unico e o duplo! document.write("<font face='"+fonte.value+"'>") </SCRIPT> Agora Sobre a Funcao do Menu da Fonte terá tipo assim ONCHANGE="troca()" então na pagina do IFRAME coloque um script assim: <script> function troca() { area.location.reload() } </SCRIPT> PRONTO!!! Qualquer duvida Posta Ai!!!
-
<SELECT NAME='sel'> <OPTION VALUE="sem">Escolha</OPTION> <OPTION VALUE="1">Opc. 1</OPTION> </SELECT> Coloque assim no Botão de Enviar... onclick="teste()" já no JS: function teste() { if(sel.value=="sem") { alert("Esqueceu de Escolher a opcão Tal...") sel.focus() return true return } else { location.href="http://site.com/form.asp?sel="+sel.value } } Ve se é Isso!!!
-
Tenho quase toda a certeza que não da... Mais você pode fazer tipo assim, Coque um Iframe no Topo da Pagina, crie ali o visual do prompt, coloque uma tabela, Coloque nessa tabela uma barra azul, dai digite o titulo, apos clicar no OK (um botão que você tb vai criar), Muda a Pagina, e vira a hora da senha, nisso vai, É complicado mais "ACHO" que é o unico jeito!
-
<BODY BGCOLOR=#000000 text="#00FF00" link="#00FFFF" vlink="#C0C0C0" alink="#00FFFF"> <form method="GET" action="resultado.html"> <p><font face="Arial" size="2">Busca por:</font><font face="Century Gothic" size="2"> <input type="text" name="query" size="20"><input type="submit" value="Buscar"></font></p> </form> <hr color="#00FF00"> <script> function kw_list () { this.keywords = new Array (); this.num_words = 0; this.query = ""; this.original_query = ""; this.query_length = 0; this.possible_points = 0; this.multiple = points_title + points_keywords + points_description; this.get_words = get_query; this.no_query = no_query_found; } function get_query () { this.query = top.location.search.substring (top.location.search.indexOf ('=') + 1); while ((the_plus = (this.query.indexOf ("+", 0))) != -1) { this.query_length = this.query.length; this.query = this.query.substring (0, the_plus) + " " + this.query.substring (the_plus + 1); } this.original_query = unescape (this.query); this.query = this.original_query.toLowerCase (); this.query_length = this.query.length; if (this.query != "") { var query_pointer = 0; var end_word = 0; var at_end = 0; while ((this.num_words <= (max_keywords - 1)) && (! at_end)) { end_word = this.query.indexOf (" ", query_pointer); if (end_word == query_pointer) query_pointer++; else { if (end_word >= (this.query_length - 1)) at_end = 1; if (end_word != -1) this.keywords[this.num_words] = (this.query.substring (query_pointer, end_word)).toLowerCase (); else { this.keywords[this.num_words] = this.query.substring (query_pointer, this.query_length); at_end = 1; } this.num_words++; if (query_pointer != -1) query_pointer = end_word + 1; if (query_pointer > (this.query_length - 1)) at_end = 1; } } if (this.num_words == 0) return (0); else { this.possible_points = this.multiple * this.num_words; return (1); } } else return (0); } function no_query_found () { document.writeln ('<link rel="stylesheet" href="thf.css">'); document.writeln ('<CENTER><P><font size="2" face="Arial">Digite Algo no Campo de Busca</P></CENTER>'); } function entry (url, title, keywords, description) { this.url = url; this.title = title.toUpperCase(); this.keywords = keywords; this.description = description; this.points = 0; this.search_entry = find_keyword; this.print_entry = print_result; } function find_keyword (the_word) { var the_title = this.title.toLowerCase (); var the_keywords = this.keywords.toLowerCase (); var the_description = this.description.toLowerCase (); if ((the_title.indexOf (the_word)) != -1) this.points += points_title; if ((the_keywords.indexOf (the_word)) != -1) this.points += points_keywords; if ((the_description.indexOf (the_word)) != -1) this.points += points_description; } function print_result (possible_points) { document.writeln ('<FONT FACE="courier new"><A HREF="' + this.url + '">' + this.title + '</A><BR> - ' + this.description + '<BR><BR>'); } function no_entry_printed (the_query) { document.writeln ('<link rel="stylesheet" href="thf.css">'); document.writeln ("<CENTER><P><class=tg> Não há ocorrencia da palavra <U><B>'" + the_query + "'</B></U>.</class=tg></P></CENTER>"); } function print_intro (the_query) { document.writeln ('<link rel="stylesheet" href="thf.css">'); document.writeln ("<CENTER><P><class=tg>Os resultados da pesquisa por <U><B>'" + the_query + "'</B></U> são:</P></CENTER>"); } function begin_search () { var key_list = new kw_list; var entry_printed = 0; if (! key_list.get_words ()) key_list.no_query (); else { var counter = 0; var counter2 = 0; for (counter = 0; counter < entry_num; counter++) for (counter2 = 0; counter2 <= (key_list.num_words - 1); counter2++) the_entries[counter].search_entry (key_list.keywords[counter2]); for (counter = key_list.possible_points; counter > 0; counter--) { for (counter2 = 0; counter2 < entry_num; counter2++) { if (counter == the_entries[counter2].points) { if (entry_printed != 1) { entry_printed = 1; print_intro (key_list.original_query); } the_entries[counter2].print_entry (key_list.possible_points); } } } if (! entry_printed) no_entry_printed (key_list.original_query); } } the_entries = new Array (); // URL, Titulo, Palavra Chave, Descrição the_entries[0] = new entry ("Site", "Titulo", "Palavra, chave, dividido, por, virgula", "Descrição"); // Configuração: var entry_num = 1; // Digite o Maximo de ENTRIES + 1 var max_keywords = 20; // Maximo de Palavra Chave var points_title = 3; var points_keywords = 10; var points_description = 1; begin_search (); </script> <HR> Ve ai! Ve as mini "estruções"
-
nem testei por falta de tempo mais testa assim if(nome_radio.value=="null") if(nome_radio.value=="") if(nome_radio.value=="undefined") Testa um deles ai!
-
Será Que é Possível ?!?!?!?
pergunta respondeu ao carlos.antunes de leo71 em Ajax, JavaScript, XML, DOM
Tenta assim... Na pagina inicial coloque ENTRAR... Ao clicar entrar em uma pagina sem MENU nenhum, Ai você vai criar o seu proprios menus, tipo, _____________________________________ __ Endereço : |____________________________________| |IR| ¯¯ < Voltar | Avancar > | Atualizar Em baixo coloque um Iframe completamdo a pagina, Ai o endereço formado por você digite tipo, uma Palavra chave, por exemplo Jogo Ai abre a pagina de Jogos, se digitar uma inexistente aparece um erro de pagina criada por você, Tipo: if(end.value=="agua") { iframe.src="http://site.com.br/palavra/agua.html" } else { if(end.value=="jogo") { iframe.src="http://site.com.br/palavra/jogo.html" } else { iframe.src="http://site.com.br/erro/apsne.html" } } -
tipo assim: <INPUT NAME=a ONCHANGE="funcao()"> <INPUT NAME=b> <script> function funcao() { // Coloque qualquer funcão que quiser pode ser 2 3 4 5 6 7 8 9... Quantos quiser tipo: alert("Tenferindo texto A para texto B") b.value=a.value } </SCRIPT>
-
<script language="javascript"> function bt_direito(){ if (event.button == 2){ alert("Botão direito!") } } </script> Completa ai... dentro do body onmouseclick="bt_direito()" onmouseup="bt_direito()" onmousedown="bt_direito()"
-
faça o seguinte <body onunload="fechar()"> <script> function fechar() { // Ação antes de Fechar Pode ser tipo assim: alert("Obrigado por nos Visitar!\nVolte Sempre!!!") window.open('fim.html','janelanova') } </SCRIPT>
-
Me Ajudem Por Favor! Código Fonte/java Script
pergunta respondeu ao brdesigner_gyn de leo71 em Ajax, JavaScript, XML, DOM
??? "você ta me enganando!!!" Cara, Não da... Alem que vc, Fazer uma Pagina inicial tipo, <>ENTRAR<> Dai abre uma POP-UP, sem nada apenas a Pagina Maximizada, E dai você colocar um if com event.click == 2 { alert("ERRO!!!") } -
Por Q Naum Funciona? Como Fazer?
pergunta respondeu ao dmetallica de leo71 em Ajax, JavaScript, XML, DOM
Amigo, Primeiro não Coloque ==15 Coloque >14 Ou Seja, 1 numero antes do Maximo, por que o Valor ira atingir apos o numero Digitado outra... Va La em cima do Codigo fonte e Modifique o <BODY> Faça o Seguinte No BODY { <BODY ONKEYUP="muda()" ONKEYDOWN="muda()"> } No SCRIPT { <script> function muda() { // Isso Fará com que o Texto Não fique mais Inselecionavel if(form1.campo.value.legth>14) { form1.cidade.focus() } } </SCRIPT> } Pronto testa ai!!! A Outra na Caixa de Texto NOME Coloque, MAXLENGTH=15 -
<TEXTAREA NAME=campo> </TEXTAREA> <script> function inserir() { if(subcode.value=="abrir") { campo.value+="[sCODE]" subcode.value="fechar" } else { campo.value+="[/sCODE]" subcode.value="abrir" } } </SCRIPT> <INPUT TYPE=hidden NAME=subcode VALUE=abrir> <INPUT TYPE=button ONCLICK="inserir()" VALUE="[sCODE]"> Se não é o que quer... Avise Para Nós!!! Se você tem MSN adcione o meu e-mail a qualquer duvida!
-
<INPUT NAME=a ONCHANGE=" b.value=a.value;a.value='' "> <INPUT NAME=b>
-
Tipo Assim Fora do FORM você apenas coloca, NOME_DO_CAMPO.value Dentro Você coloca, NOME_DO_FORM.NOME_DO_CAMPO.value Já Aconteceu muitas veses isso comigo, mais eu descobri a causa!
-
Senha Para Entrar Em Um Site...
pergunta respondeu ao oliweira de leo71 em Ajax, JavaScript, XML, DOM
Esquece Cara! Eu já fui nessa! Não da! Ele pode pegar o SITE, ou Seja abrir o Script e Pega-lo, sem se registrar! -
testa assim... <script> function omv() { window.bgcolor="COR EM HEX ou INGLES" window.background="ligado.jpg" // Caso for com Foto } function omo() { window.bgcolor="COR EM HEX ou INGLES" window.background="desligado.jpg" // Caso for com Foto } </SCRIPT> <A HREF="algo_html" ONMOUSEOVER="omv()" ONMOUSEOUT="omo()"> leo71@MSN.com.br
-
Então ve se assim pega... <SELECT NAME=testes ONCHANGE="abrir()"> <OPTION VALUE="sem"></OPTION> <OPTION VALUE="sem">----------------</OPTION> <OPTION VALUE="teste.pdf">TESTE de PDF</OPTION> </SELECT> <script> function abrir() { if(testes.value!="sem") { location.href=testes.value } else { alert("Opção Invalida!") } } </SCRIPT> Aqui eu Faço isso, se não for assim q você quer, me avise! leo71@MSN.com.br
-
BOM você ESTA DANDO UM OTIMO EXEMPLO!!! hehehe!!! Hey... Pera ai, Quem usou o meu nome nesse forum? Eu fiquei fora 1 semana?!
-
Não sei se Me Lembro mais é... if(history.length=="0") { window.open("haha.html") } Visite http://clickgames.tpcities.com!
-
Então tá faz Assim Do tão login, coloque a senha e o login desse tipo assim: x="b" y="c" w="d" zerar="a"+x+"c" fonte=y+"e"+w Alem que faça no ASP ou PHP ou CGI
-
document.form1.codigo.style.disabled="disabled"