Ir para conteúdo
Fórum Script Brasil

renan_doidera

Membros
  • Total de itens

    361
  • Registro em

  • Última visita

Tudo que renan_doidera postou

  1. O oncontextmenu que o André citou iria desabiltar o botão direito do mouse, você também pode impedir que a pessoa selecione alguma coisa no site, porque tipo se o cara selecionar a imagem ele pode salvar com os botões do "menubar" né... para impedir seleção: onSelectStart = "return false" Também pode colocar um .gif na frente da imagem, tipo um gif transparente, aí o cara quando fosse tentar salvar a foto iria salvar o gif ... Falows
  2. Ah eu fiz uma parada aqui... vê se é disso que precisa... <html> <head> </head> <body onload="javascript:mostraframe()"> <script> cont = 0 function mostraframe() { window.open("pagina"+cont,"meio","") } function anda() { if (cont < 20) {cont = cont+1;javascript:mostraframe();} else {alert("Este é o fim do tutorial!")} } function volta() { if (cont > 0 ) {cont = cont-1;javascript:mostraframe();} else {alert("Este é o Início do tutorial!")} } </script> <p><a href="javascript:anda()">Avançar</a></p> <p><a href="javascript:volta()">Retroceder</a></p> </body> </html> O nome das paginas nesse caso tem que ser, pagina0.htm - pagina1.htm - pagina2.htm - pagina3.htm ... pagina19.htm - pagina20.htm Sacou? Falows
  3. Tou ligado no que você quer fazer... Cara primeiramente a "loucura" funcionou?
  4. No IE o resizeTo não tira nada, só redimenciona a janela atual, para mudar algo você pode usar o window.open, para abrir uma nova janela como quiser, e fechar a atual, com uma outra função láh, mas ao que me parece não tem como fechar janelas no Mozila/Firevox ... Falows
  5. É mais aí teria que definir do mesmo jeito o que seria adicionado... Serviria muito se fosse para coisas repetitivas em que mudasse só uma variavel ou outra...
  6. - Impedir Minimização de Janela e Foco de outras pages Vai o código aí.... <html> <h1 align="left"><font type="tahoma" color="red"> Tente Minimizar essa Janela! ou tire ela de foco e espere uns 30 segundos!!!!</font> </p> <br> <br> <br> <br> <h5 align="left"><font type="technical" color="green">Script by <u><b>RENAN MANOLA</u></b></font> <font size="1"> (20/04/03)</font> <script language="JavaScript"> if (top.frames.length!=0) top.location=self.document.location; self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight); setInterval("self.focus()",5); self.focus(); </script> <html>
  7. Eu consigo fazer escrever no meio do documento quando a página é carregada, mas colocar dentro de uma função eu não sei não. Se imprimir no carregamento resolve , eu te falo como faz. Mas você também pode colocar o valor dentro de um campo de formulário cara, tipo mascara ele com o fundo da pagina que não vai nem dar pra perceber que ele está láh, aí é só mudar o valor dele quando quiser... Se se interessar nesse lance de formulário me avisa que eu explico melhor... Falows
  8. Vê se é isso cara: //Popup que se redimensiona automaticamente conforme as dimensões da imagem //Esteja a vontade para remover todos os comentarios, menos a linha abaixo: //(c) 2001 - Luciano Lourenço de Souza Almeida (dark.man@mailbr.com.br) // Permitida copia e alteração desde que em carater gratuito e citada a fonte. //Testado com sucesso no Internet Explorer 5.5 e Opera 5.12 //A função imgPop é usadas pelo documento que CHAMA a janela: //imgPop (imagem,titulo, legenda, imglink) //Parametros de entrada: //imagem - URL do arquivo da imagem (item obrigatorio) //titulo - Opcional. Titulo da janela. Na ausencia deste parâmetro, é usado "Imagem: "+ nome-do-arquivo //legenda - Opcional. Pequeno texto que será apresentado logo em baixo da janela, e na etiqueta da imagem. //imglink - Opcional. Um link que se abrirá em uma nova janela caso a imagem seja clicada. Na sua ausencia, fecha a janela. //URIjanela - Variavel global, contem a URI do documento que contem as imagens //Saida: //Nova janela, com o endereco do documento que abre a imagem, acrescido dos parametros para a montagem deste documento //Variaveis: //caracteristicas: string contendo os parametros da janela //udfd: um "resumo" para a string 'undefined' //parametros: uma string concatenando as variaveis a serem passadas para a janela pop-up function imgPop(imagem,titulo,legenda,imglink) { //As caracteristicas da janela pop-up estao definidas abaixo: var caracteristicas='resizable=no,scrollbars=yes,menubar=no,toolbar=no,location=no,left=0,top=0'; //Caso algum parametro da funcao seja omitido, será interpretado pelo navegador como 'undefined' //Os testes condicionais a seguir verificam se algum parametro foi omitido, e aplica o tratamento adequado var udfd='undefined'; if (titulo+''==udfd) { titulo='.::Sessão Hentais::. -|-www.manolahp.hpg.com.br-|- Manola\'s Home Page ..........................................;........................................;.......................' } if (legenda+''==udfd) { legenda='Clique na figura para fechar a janela'; } if (imglink+''==udfd) { imglink=''; } //Concatenamos todas as variaveis numa unica string: var parametros= 'imagem="'+imagem+'"\;titulo="'+titulo+'"\;legenda="'+legenda+'"\;imglink="'+imglink+'"'+'\;bidu="z.htm"'; //Aqui abrimos efetivamente a janela. Note que juntamos o caractere '?'ao endereco, juntamente com todas as variaveis concatenadas. nova=window.open(URIjanela+'?'+parametros,'Imagem', caracteristicas); } //As funcoes abaixo são usadas pela nova janela, cujo documento carrega a imagem: //decodificaVariaveis() //escreveDocumento() //redimensiona() //decodificaVariaveis() //Esta funcao quebra a URL em variaveis capazes de serem lidas via JAVASCRIPT. //é um metodo interessante e rapido de se passar variaveis para outros documentos, sem ter de recorrer a cookies ou outros metodos mais complexos. //Adicionalmente, tambem escreve o titulo do documento. //Parametros de entrada: A propria URL da janela //Saida: sequencia de variaveis decodificadas da URL do documento function decodificaVariaveis() { var vrv=window.location.search; eval(unescape(vrv.substring(vrv.indexOf('?')+1))); target='target="_blank"' if (imglink=='') { imglink='javascript:self.close()'; target=''; } document.write('<title>'+titulo+ '</title>'); } //A funcao escreveDocumento() escreve o documento, de acordo com os parametros obtidos das variaveis obtidas na funcao decodificaVariaveis() // Foi colocada em separado para permitir a modificacao do corpo do documento. //Entrada: variaveis globais: imagem, legenda e imglink //Saida: TAGs HTML correspondentes a imagem, hiperlink e texto de legenda. function escreveDocumento() { document.write('<table cellpadding=0 cellspacing=0 border=0 width=100% height=100%><tr><th><A href="'+imglink+'" '+target+'><img name="img" border=0 src="'+imagem+'" alt="'+legenda+ '"></A><BR><font face="Verdana, Arial, Helvetica, sans-serif" size=2>www.manolahp.hpg.com.br</font></th></tr></table>'); } //A funcao redimensiona(), que e executada apos a carga completa do documento, redimensiona a janela e coloca esta em primeiro plano para o usuario. //Entrada: Propriedades width e height da imagem "img" //Variaveis: //margemVertical - contem a margem (em pixels), a ser dividida entre o topo e o rodape do documento. //margemHorizontal - contem a margem (me pixels) a ser dividida entre os lados esquerdo e direito. function redimensiona() { var margemVertical=55; //determina a margem vertical, em pixels a ser usada. A margem leva em consideracao a altura da barra de titulo, e as bordas da janela //Caso haja uma legenda, a margem vertical deve ser um pouco maior, o que e determinado pelo teste abaixo: if (legenda!='') { margemVertical=65; } var margemHorizontal=30; //Valor da margem horizontal. window.resizeTo(margemHorizontal + parseInt(document.img.width), margemVertical + parseInt(document.img.height)); //redimensiona a janela com base nas propriedades da imagem window.focus(); //Coloca a janela em primeiro plano. } Deve ser né? rsrsrsrsrsrsrss, bem no link da imagem pequena coloca assim: javascript:imgPop("ENDEREÇO DA IMAGEM") Aí no script acima você pode mudar algumas coisas como as cores a barra de títulos da janela criada e tal. Ele está muito bem explicado, não é muito difícil... Falows
  9. Você define especificamente em que distância alguma coisa deve ficar do topo da tela e da parte mais à esquerda da mesma, assim para diferentes resoluções são diferentes as posições dessa alguma coisa em posição absoluta...
  10. Gif transparente... aí vê em fóruns de editores de imagens, eu já mexi com esse negócio de gif com transparencia, é facin tem um monte de tutorial ensinando .
  11. Olha um cara postou esse script de slide show láh, parece ser o que você está querendo... <html> <head> <title>PushButton SlideShow</title> <!-- Set up the caption font in the following style. Also set the styles for the controls. Place the style script in the head of the page. //--> <style> .Caption { font-family: Arial; font-weight: normal; font-size: 12pt; color: #FF3300; } A.Controls:link { color:#666666; text-decoration:none; font-family: Arial; font-size: 14pt; font-weight: bold; } A.Controls:visited { color:#666666; text-decoration:none; font-family: Arial; font-size: 14pt; font-weight: bold; } A.Controls:active { color:#666666; text-decoration:none; font-family: Arial; font-size: 14pt; font-weight: bold; } A.Controls:hover { color:#00FF00; text-decoration:none; font-family: Arial; font-size: 14pt; font-weight: bold; } </style> <!-- Place the following script in the head of the page. Follow the set-up instructions within the script. //--> <script> // (C) 2003 by CodeLifter.com // Free for all users, but leave in this header. // ============================== // Set the following variables... // ============================== // Set the slideshow speed (in milliseconds) var SlideShowSpeed = 3000; // Set the duration of crossfade (in seconds) var CrossFadeDuration = 2; var Picture = new Array(); // don't change this var Caption = new Array(); // don't change this var showHot = false; // don't change this // Specify the image files... // To add more images, just continue // the pattern, adding to the array below. // To use fewer images, remove lines // starting at the end of the Picture array. // Caution: The number of Pictures *must* // equal the number of Captions! Picture[1] = 'Nebula01.jpg'; Picture[2] = 'Nebula02.jpg'; Picture[3] = 'Nebula03.jpg'; Picture[4] = 'Nebula04.jpg'; Picture[5] = 'Nebula05.jpg'; Picture[6] = 'Nebula06.jpg'; Picture[7] = 'Nebula07.jpg'; Picture[8] = 'Nebula08.jpg'; Picture[9] = 'Nebula09.jpg'; Picture[10] = 'Nebula10.jpg'; // Specify the Captions... // To add more captions, just continue // the pattern, adding to the array below. // To use fewer captions, remove lines // starting at the end of the Caption array. // Caution: The number of Captions *must* // equal the number of Pictures! Caption[1] = "This is the first caption."; Caption[2] = "This is the second caption."; Caption[3] = "This is the third caption."; Caption[4] = "This is the fourth caption."; Caption[5] = "This is the fifth caption."; Caption[6] = "This is the sixth caption."; Caption[7] = "This is the seventh caption."; Caption[8] = "This is the eighth caption."; Caption[9] = "This is the ninth caption."; Caption[10] = "This is the tenth caption."; // ===================================== // Do not edit anything below this line! // ===================================== var tss; var iss; var jss = 1; var pss = Picture.length-1; var preLoad = new Array(); for (iss = 1; iss < pss+1; iss++){ preLoad[iss] = new Image(); preLoad[iss].src = Picture[iss];} function runSlideShow(){ if (document.all){ document.images.PictureBox.style.filter="blendTrans(duration=2)"; document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)"; document.images.PictureBox.filters.blendTrans.Apply(); } document.images.PictureBox.src = preLoad[jss].src; if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss]; if (document.all) document.images.PictureBox.filters.blendTrans.Play(); jss = jss + 1; if (jss > (pss)) jss=1; tss = setTimeout('runSlideShow()', SlideShowSpeed); } function control(how){ if (showHot){ if (how=="H") jss = 1; if (how=="F") jss = jss + 1; if (how=="B") jss = jss - 1; if (how=="I") runSlideShow(); if (jss > (pss)) jss=1; if (jss < 1) jss = pss; if (document.all){ document.images.PictureBox.style.filter="blendTrans(duration=2)"; document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)"; document.images.PictureBox.filters.blendTrans.Apply();} document.images.PictureBox.src = preLoad[jss].src; if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss]; if (document.all) document.images.PictureBox.filters.blendTrans.Play(); }} </script> </head> <!-- Add onload='showHot=true;' to the body tag. This is needed to prevent false object calls while the page is loading. Optional: If you are using this in a popup, as in this demo, adding self.focus() to the onload event in the body tag will bring the popup to the front each time it is loaded [recommended]. //--> <body onload='showHot=true;self.focus();' bgcolor=#000000 link="#FF0000" vlink="#FF0000" alink="#FF0000"> <!-- The following table holds the images, captions, and controls. Place the table in your page where you want the slideshow to appear. Follow the instructions for each table cell. //--> <div align="center"> <center> <table border=0 cellpadding=10 cellspacing=0> <tr> <!-- The next table cell holds the images. Set cell and image width and height the same. The img src must have name=PictureBox in its tag. Often, the first image in the Picture array in the script is used here; but you may also use a different, introductory image as we have here, since this image is shown only on start-up. //--> <td width=350 height=280 colspan="3"> <img src=Nebula00.gif name=PictureBox width=350 height=280> </td> </tr> <tr> <!-- The next table cell holds the captions. This table cell must have id=CaptionBox and class=Caption in its tag. The default caption shows whilst loading in all browsers; NS4 will show only the default caption, throughout. //--> <td id=CaptionBox class=Caption align=center colspan="3"> This is the default caption. </td> </tr> <!-- The following three cells contain the controls. Each of the control a href's must contain class= Controls, to attach the styles (see top of script). To dress this up a bit, you can of course substitute <img src> images for the text in the links. //--> <tr> <td align="center"> <a class=Controls href="#" onClick="javascript:control('B');">< <</a> </td> <td align="center"> <a class=Controls href="#" onClick="javascript:control('I');">| | |</a> </td> <td align="center"> <a class=Controls href="#" onClick="javascript:control('F');"><b>> ></b></a> </td> <td align="center"> <a class=Controls href="#" onClick="javascript:clearTimeout(tss)"><b>Parar</b></a> </td> <td align="center"> </td> </tr> </table> </center> </div> </body> </html>
  12. Mas nesse script o poup-up abre sempre deipois de um tempo, mesmo que o primeiro não seja fechado, acho que a intenção é abrir depois de um tempo depois que o poup-up é fechado não é? Se for tira o setTimeout da função abre, coloca a função na página que vai abrir ou poup-up , e dentro do poup-up também , aí no evento "onunload" você coloca o "setTimeout" , aí só vai abrir a outra poup-up depois de um tempo se a primeira aberta for fechada.... Falows
  13. E acho que nem deve ter como cara... isso já é muita viajem... se tiver como ( o que acredito que não) deve ser em VB. Falows
  14. Hummmmm, banco de dados... É MySQL, ou é de ASP mesmo? Talvez o pessoal que mexa com isso poderá ajudar mais... Falows
  15. Eu faço assim: <html> <body> <script> jan1 = window.open("","jan11","top=0,left=0") jan1.window.resizeTo(screen.AvailWidth/2, screen.AvailHeight/2) jan1.window.moveTo(screen.AvailWidth/4, screen.AvailHeight/4) window.open("http://www.bol.com.br","jan11","") </script> </body> </html> Detalhe: Não funciona no Mozila!
  16. Heuaheau, é verdade eu copiei muito código até aprender a fazer os meus!!! "Na internet nada é feito nada é criado, tudo é copiado!!" Isso Aê galera! Falows!
  17. De vez em quando é interessante abrir o poup up no meio da janela... pra quem quiser... width=screen.Availwidth/2, height=screen.Availheight/2 Falows
  18. Bem no width você coloca o tamanho horizontal da janela que vai abrir a foto, no height coloca o tamanho vertical da janela que vai abrir a foto, ou seja, você vai ter que substituir o "XXXXX" do script. Outra coisa ; Você pode colocar quantas imagens quiser no site, aí você coloca um hyperlink em cada imagem direcionado para : "javascript:abrefoto(WWWWWWW)" Em cada imagem você coloca esse endereço, aí no lugar do "WWWWW" você coloca o endereço da foto.. tipo: <a href="javascript:abrefoto(http://scriptbrasil.com.br/forum/style_images/1/t_qr.gif)"><img src="pequena.gif"></a> Só vai ter que colocar a função láh uma vez, depois você chama ela quantas vezes quiser... Sacou?
  19. Heuaheua, entaum, qualquer dúvida com aquele script... pergunta pro Crystian!! Hueaheuaheau. Falows cara!
  20. <script> function abrefoto(imagem) { window.open("imagem","nomedajanela","width=XXXX,height=XXXXXX,top=0,left=0") } </script> Pra usar coloca no onlick do link da imagem : javascript:abrefoto(endereçodaimagem) E pronto. Falows
  21. Inibir cliques também não chega a ser tão seguro assim não, o bom mesmo seria encriptar o código-fonte da page! Falows
  22. Desculpa tá lá em "Scripts" eu confundi!! Para ser mais exato no último post dessa page: http://scriptbrasil.com.br/forum/index.php...opic=3341&st=75 Falows
  23. Bem não sei não... comecei a estudar "C" hoje, em Processamento de Dados II, então não entenderia a parada feita em C, e eu também não sei o que é Switch... E estou dando pequenos passos em php, comecei a ver alguns tutoriais semana passada... Mas vou tentar , vê se é mais ou menos isso: function ancora(chegada) { if (chegada == "1") {location.href='pagina1.htm'} else if (chegada == "0") {location.href='pagina2.htm'} else {} }
  24. Detalhe já que você está usando " ' " ... Faz assim: window.open('ok.asp?id='+form.checa.value,'teste','width=1,height=1', toolbar=0, directories=0'); Tchau.
×
×
  • Criar Novo...