Ir para conteúdo
Fórum Script Brasil
  • 0

Scripts


Dezinh0

Pergunta

Atenção!!!

- Poste apenas Scripts relacionados;

-Caso possua dúvidas, crie um novo post;

-Evite postar scripts repetidos;

-Clique no link do script que você irá para o local certo.

Página 1

Validacao De Caracteres Para O Campo E-mail

Páginas Sem Erro De Script

Desabilita Botao Direito

Desabilita Botao Direito 2

Desabilita Seleçao De Textos

Abre Uma Outra Janela Ao Sair Da Que Esta

Voltar Ao Topo Da Tela

Onmouseover

Coloca Mensagem Na Barra De Status

Coloca Uma Mensagem Na Barra De Status Quando Passa O Mouse

Este É Otimo Para Documentacoes Na Mesma Pagina

Imprimir

Links Sublinhandos

Botao Link

Move A Posição Da Página Ao Carregar

Desabilitar O Teclado

Pop Diaria

Quiz Do Anao

Trabalhando Com Datas

Validação De E-mail

Uma Validação Para Combobox, Podendo Passar Mensagens

Utilizando O Onmouseover E Onmouseout

Datas... Calcular Entre Elas

Adicionar A Favoritos

Para Abrir Uma Janela Pop Up

Formatação De Valores Na Digitação

Página 2

Aniversarios

Texto Sendo Digitado

Coração Configurável (cor, Nome, Tamanho)

Hora Dual

Fechar Sem Pedir Confirmação Automático

Fechar Sem Pedir Confirmação Por Meio De Botão

Criando Um Cookie

Fazer Pesquisas Com Js

Contagem De Caracteres Numa Area De Texto

Janela Div Arrastável Com Clique Do Mouse

Pop Up No Meio Da Tela

Pop Up em Tela Cheia

Figura Que Acompanha O Scroll

Texto Piscando em Várias Cores

Usando Array E Loop While Para Criar Tabela

Pop Que Abre Automaticamente De Acordo Com A Resolução Do Usuário

Barra De Cores em Gradiente

Love Test

Página 3

Montagem Automática De Tabela

Mensagens Randômicas

Destaque De Ocorrência De Palavras Na Página

Menu Explorer

Scroller Lateral Que Muda De Cor De Acordo Com A Posição Do Mouse

Texto Rotativo Na Barra De Status

Rolagem Suave Automática Da Página

Banner Rotativo

Centralizar Pop No Centro Da Tela

Código De Página Para Criptografia

Marquee Com Botão Iniciar E Parar

Sublinhado nos Links

Bloquear A Atividade Do Teclado

Alterar Cor De Fundo De Link Quando Com O Cursor Sobre

Mensagem Na Barra De Status Com O Mouse Sobre

Barra De Rolagem Colorida

Borda Da Página

Passar Uma Linha Sobre O Texto

Botão Desabilitado

Máscara De Horas Com ":" Automático E Validação

Email Direto Da Página, Utilizando O Outlook, Sem Linguagem Dinâmica

Desabilitar Botoes/text

Maximizar A Janela E Simular O F11

Adicionar Aos Favoritos

Página 4

Ler Código Fonte De Página

Script De Bem-vindo Na Barra De Status

Scroll Automático Para Textos Grandes

Formulário Com Preenchimento Obrigatório

Relógio

Visualizar O Código Fonte De Alguma Página

Confirm Que Nunca Cancela

Efeito De Transição De Página

Como Retirar A Barra De Rolagem Vertical, Ou Horizontal, Ou Ambas

Botão Que Só Pode Ser Clicado 1 Vez

Cronometro

Conversor De Html Para Javascript

Formatação Inteligente dos Campos

Iframe Com Fundo Transparente

Janela Cadente

Página 5

Página Carrega Ao Passar O Mouse

Query String em Js

Guerra nas Estrelas

Animação Que Segue O Mouse Apenas Na Horizontal, Com A Vertical Fixa

Janelinha Maluquinha Rs

Desabilitando Um Objeto Atraves De Um Checkbox

Smilies Na Textarea

Desabilitando Botões Ao Enviar Um Form

Teclado Virtual

Enquete Do John

Resolução De Equações Do Segundo Grau

Verifica Se O Número É Primo Ou Não

Select Que Com Data De Nascimento, Retorna O Signo Automaticamente

Contagem Regressiva

Quadro Com Rolagem

Página 6

Passar Parâmetros em Javascript

Aparecer O Botão Continuar Ao Clicar em Aceitar

Função Trim

Forçar O User A Não Poder Desmarcar Os Check's

Forçar A Marcar Pelo Menos Um Check

Enter Como Tab nos Principais Navegadores

Impedir Minimização De Janela E Foco De Outras Páginas

Filtro De Arquivos Para Upload

Endereço Da Pasta De Um Arquivo Com Contra-barras Convertido em Barras

Conforme Digita Num Input Vai Procurando A Opção Num Select

Pegar Conteúdo De Uma Determinada Coluna Da Tabela.

Efeito De Cores em Tabela Tipo Phpmyadmin

Script Para Enviar Um Submit Para O Formulario, Quando O Foco Estiver em Uma Optonbox

Relogio De Ponteiro Bem Legal Que Acompanha O Mouse

Exporta Variáveis Fácil

Página 7

Trabalhando Com Cookies

Número Primo Ou Não

Hacker Speed

Texto Rotativo

Popup Centralizados

Trava Botao 2 Do Mouse

Confirmar Cancelar Que não Cancela

Carrega Pagina Sem O Click Apenas Com O Passar Do Mouse

Marcar E Desmarcar Checkbox De Mesmo Id

Marcar E Desmarcar Todos Checkboxs Com Ids Diferentes

Auto Completar Para Formularios

Antispam ..

Musica On Off

Troca De Figuras

Mover Div

Página 8

Validação de e-mails

Carregar foto

Contagem de Caracteres

Banner Voador

Remover item da tabela

Remover item da tabela - melhorado

Deletando linhas com o evento OnClick

Atualização da página

Botão de Confirmação

Esvazia campo ao focar

Só permite digitação de números

Hint no link

Cria opções - botão direito do mouse

Muda figura ao passar o mouse

Página 9

Efeito em texto

Texto que acompanha o mouse

Bloqueando o botão do teclado "PrintScreen"

Usando fontes diferentes sem o auxilio de imagem

Pré-load

Formatando Body com CSS

Máscara de valores

Menu centralizado a esquerda que se move com a página

Transforme strings numéricas em texto

Scrollbar que pisca

Scrollbar que pisca 2

Janela não minimiza

Link que pisca

Texto como máquina de escrever

Links vivos

Página 10

Preencher Select conforme opção escolhida

Coordenadas do mouse na tela

Permitir Ou Bloquear Alterações Em Inputs Sem Desabilitar, Com Um Botão

Página de redirecionamento com contagem regressiva

Validar todos os campos do form independente da quantidade

Passa para letras maiusculas ao digitar

Muda para o proximo campo automaticamente

Vários efeitos de transição em imagem

Abre janela de texto (layer)

Script para validação de campos /você decide quais campos serão obrigatórios pelo nome do objeto

Inativa Botão Direito Também No FireFox

Auto-completar diferente

Checador de checkbox - adaptado

Validação de campos em branco

Checkar todos os checkbox (melhorado)

Pagina 11

Jogo da velha

Conta quantos formulário existem em uma página! && Quantas imagens existem em uma página

Adicionar aos favoritos [iE] // Adicionar ao Bookmarks [FF]

Função que valida o radiobutton e define a action do form de acordo com o selecionado.

Converte caracter em imagem

Conta a quantidade de Elementos de um FORM

Valida campo && Verifica se data é válida

Código muito interessante de um banner full

Trabalhando com abas

Bloqueando o F5 do teclado

Merlin do MS Office

Escolher action do form com radiobutton

Tratando campos data

Editado por OSJunior
Link para o comentário
Compartilhar em outros sites

  • Respostas 162
  • Created
  • Última resposta

Top Posters For This Question

Top Posters For This Question

Posts Recomendados

  • 0

Minis script isso? bem.. vou colaborar com também..

Vou criar uma tabela dinamicamente... (eu uso no meu site este código)

E ainda varia a cor da linha automaticamente...

Usando array e um loop while.. (vocês podem ver este script clicando aqui)

<table width=625  cellpadding=2 cellspacing=0 border=1 bordercolor=#009933 style="border-collapse:collapse;border:1px solid #009933"> 

<tr>

<td background=img/tab_cell.gif class=text1 align=center colspan=4>

<font size=4> Agenda de Shows BS

  </td>

  </tr>   

          <tr>

                <td background=img/tab_cell.gif align=center><font size=2 face=verdana color=#336699><b>

                  Data:

            </td>

                <td background=img/tab_cell.gif align=center> <font size=2 face=verdana color=#336699><b>

        Evento:

            </td>

                <td background=img/tab_cell.gif align=center><font size=2 face=verdana color=#336699><b>

                  Local: 

        </td>

              <td background=img/tab_cell.gif align=center>

                <font size=2 face=verdana color=#336699><b>

              Cidade:

              </td>

          </tr>

<script>

data=new Array("13/09/03","07/06/03","05/05/03","25/04/03","08/12/02","31/10/02");

evento=new Array("Jantar Dançante","Baile Country","Baile Dançante","Casamento","Formatura","Hallowen");

local=new Array("Homens do Trabalho","Clube Palmerense","STG","Clube Palmerense","Clube Curitibano","Clube Palmerense");

cidade=new Array("Ponta Grossa","Palmeira","Pato Branco","Palmeira","Curitiba","Palmeira");

var cor=true;

i=0;

cont=data.length;

while(i<cont) {

document.write("<tr"+((cor=!(cor))?" bgcolor=#e9e9e9":" bgcolor=#f7f7f7")+">");

if(i==0) { var b="<b>"; }

else { var b="";  }

document.write("<td align=center><font size=1 face=verdana>"+B);

document.write(data);

document.write("</td>");

document.write("<td align=center ><font size=1 face=verdana>"+B);

document.write(evento);

document.write("</td>");

document.write("<td align=center><font size=1 face=verdana>"+B);

document.write(local);

document.write("</td>");

document.write("<td align=center><font size=1 face=verdana>"+B);

document.write(cidade);

document.write("</td>");

document.write("</tr>");

i++;}

</script>

</table>

pronto... quando quero adicionar um show novo... basta colocar no array..

data=new Array("nova data"); etc... você pode ver o script em funcionamento no site da Banda Segredo.. (se quiser, clique aqui)

Link para o comentário
Compartilhar em outros sites

  • 0

esse código é pra abrir um POP.... ele faz com que a página pop seja aberta automaticamente assim que a página na qual ele está inserido é aberta.........

<script language="javascript">

document.write("Resolucao : ",screen.width,"x",screen.height,"<p>");

switch(screen.width){

case 640:

window.open("1","poup","width=540  height=380");

close(2);

break;

case 800:

window.open("2","poup","width=700  height=500");

close(2);

break;

case 1024:

window.open("3","poup","width=924  height=668");

close(2);

break;

}

</script>

no lugar do 1 você coloca a página que deve ser aberta caso a resolução do usuário seja de 640x480

no lugar do 2 você coloca a página que deve ser aberta caso a resolução do usuário seja de 800x600

no lugar do 3 você coloca a página que deve ser aberta caso a resolução do usuário seja de 1024x768

o Width é a largura (horizontal) da página..... e o Height é a altura (vertical) da página..........

__________________________________________________________________

#####################################################

agora, caso você queira utilizar este código em um link para abrir pop.... é o seguinte.......

#####################################################

----------------------------------------------------------------------------------------------------------

<script language="javascript">

function popUp(){

switch(screen.width){

case 640:

window.open("1,"poup","width=540 height=380");

history.go(0)

break;

case 800:

window.open("2,"poup","width=700 height=500");

history.go(0)

break;

case 1024:

window.open("3,"poup","width=924 height=668");

history.go(0)

break;

}}

</script>

no lugar do 1 você coloca a página que deve ser aberta caso a resolução do usuário seja de 640x480

no lugar do 2 você coloca a página que deve ser aberta caso a resolução do usuário seja de 800x600

no lugar do 3 você coloca a página que deve ser aberta caso a resolução do usuário seja de 1024x768

o Width é a largura (horizontal) da página..... e o Height é a altura (vertical) da página..........

e no link você faz assim.......

<a href="" onClick="popUp()">Teste</a>

bem, espero ter ajudado....... :D

Link para o comentário
Compartilhar em outros sites

  • 0

Gradient Barr

<script language="JavaScript1.2">

<!--

/*

Gradient Bar Script (By Alex Szorkovszky alex@wmresources.com)

Permission granted to Dynamicdrive.com to feature script in archive

For full source code and installation instructions to this script, visit http://dynamicdrive.com

*/

if (document.all){

one=new Array();

two=new Array();

var a=10;var b=11;var c=12;var d=13;var e=14;var f=15;

//configure gradient

//width and height of gradient

var width = 350;

var height = 20;

//no of pixels between colours

var gap = 5;

//0 for horizontal, 1 for vertical

var direction = 0;

//colour number 1 - enter 1st, 3rd and 5th numbers/letters of colour code

one[0]=f;

one[1]=f;

one[2]=0;

//colour number 2 - enter 1st, 3rd and 5th numbers/letters of colour code

two[0]=0;

two[1]=c;

two[2]=0;

//end configuration

if(direction==0) var num = width / gap;

if(direction==1) var num = height / gap;

color2=new Array();

color1=new Array();

diff=new Array();

for(i=0;i<3;i++) {

diff = two - one;

diff = diff / num;

}

for(i=0;i<3;i++){

color1 = Math.round(diff * Math.pow(10, 0));

if(color1 > diff)color1 = color1 - 1;

color2 = diff - color1;

color2 = color2 * 15;

color2 = Math.round(color2 * Math.pow(10, 0));

}

x=new Array();

two[0]=0;

two[1]=0;

two[2]=0;

document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+width+'" height="'+height+'">');

if(direction==0) document.write('<tr>');

for(i=0;i<=num;i++) {

if(direction==1) document.write('<tr>');

document.write('<td bgcolor="#');

for(j=0;j<3;j++) {

if(one[j]==a)document.write("a");

if(one[j]==b)document.write("b");

if(one[j]==c)document.write("c");

if(one[j]==d)document.write("d");

if(one[j]==e)document.write("e");

if(one[j]==f)document.write("f");

if(one[j]<10)document.write(one[j]);

if(two[j]==a)document.write("a");

if(two[j]==b)document.write("b");

if(two[j]==c)document.write("c");

if(two[j]==d)document.write("d");

if(two[j]==e)document.write("e");

if(two[j]==f)document.write("f");

if(two[j]<10)document.write(two[j]);

one[j] = one[j] + color1[j];

two[j] = two[j] + color2[j];

if(two[j]>15) {

two[j] = two[j] - 15;

one[j]++;

}

}

if(direction==0) document.write('" width="'+gap+'" height="'+height+'">&nbsp;</td>');

if(direction==1) document.write('" width="'+width+'" height="'+gap+'">&nbsp;</td></tr>');

}

document.write('</table>');

}

//-->

</script>

Bom uso!!! :D

Link para o comentário
Compartilhar em outros sites

  • 0

LOVE TEST - Não acredite no resultado se for desanimador! O importante, é você!

<HEAD>

<script LANGUAGE="JavaScript">
function calc() {

first = document.loveform.name1.value.toUpperCase();
firstlength = document.loveform.name1.value.length;
second = document.loveform.name2.value.toUpperCase();
secondlength = document.loveform.name2.value.length;
var LoveCount=0;

for (Count=0; Count < firstlength; Count++) {
letter1=first.substring(Count,Count+1);
if (letter1=='L') LoveCount+=2; 
if (letter1=='O') LoveCount+=2; 
if (letter1=='V') LoveCount+=2; 
if (letter1=='E') LoveCount+=2; 
if (letter1=='Y') LoveCount+=3; 
if (letter1=='O') LoveCount+=1; 
if (letter1=='U') LoveCount+=3;
}

for (Count=0; Count < secondlength; Count++) {
letter2=second.substring(Count,Count+1);
if (letter2=='L') LoveCount+=2;
if (letter2=='O') LoveCount+=2; 
if (letter2=='V') LoveCount+=2; 
if (letter2=='E') LoveCount+=2;
if (letter2=='Y') LoveCount+=3;
if (letter2=='O') LoveCount+=1;
if (letter2=='U') LoveCount+=3; 
}

amount=0;
if (LoveCount> 0) amount=  5-((firstlength+secondlength)/2)
if (LoveCount> 2) amount= 10-((firstlength+secondlength)/2)
if (LoveCount> 4) amount= 20-((firstlength+secondlength)/2)
if (LoveCount> 6) amount= 30-((firstlength+secondlength)/2)
if (LoveCount> 8) amount= 40-((firstlength+secondlength)/2)
if (LoveCount>10) amount= 50-((firstlength+secondlength)/2)
if (LoveCount>12) amount= 60-((firstlength+secondlength)/2)
if (LoveCount>14) amount= 70-((firstlength+secondlength)/2)
if (LoveCount>16) amount= 80-((firstlength+secondlength)/2)
if (LoveCount>18) amount= 90-((firstlength+secondlength)/2)
if (LoveCount>20) amount=100-((firstlength+secondlength)/2)
if (LoveCount>22) amount=110-((firstlength+secondlength)/2)

if (firstlength==0 || secondlength==0) amount= "Err";
if (amount < 0) amount= 0;
if (amount >99) amount=99;

document.loveform.output.value=amount+"%";
}
</script>

<BODY>

<form name=loveform>
<input value="Nome 1" name="name1" type="text" size="15">
  e 
  <input value="Nome 2" name="name2" type="text" size="15">
  tem uma probabilidade de 
  <input value="" name="output" type="text" size="6">
  <br>
<br>
<input value="Calcular Probabilidade" name="calculate" type="button" value="calculate" onclick="calc()">
</form>

Link para o comentário
Compartilhar em outros sites

  • 0

Algumas coisinhas que o DHTML é capaz de fazer:

<script language="JavaScript">

function gerar(qtde)

{

var col;

var row;

var input;

// Cria o form

var form = document.createElement('<form>');

form.action = 'suapagina'; // Defina aqui para onde vai mandar

form.method = 'post';

document.body.appendChild(form);

// Cria a tabela

var table = document.createElement('<table>');

table.border = '1';

table.cellPading = '0';

table.cellSpacing = '0';

form.appendChild(table);

// Cria as linhas

for(i=1;i<=qtde;i++)

{

  row = table.insertRow();

  // Cria as coluna de descrição e valores

  col = row.insertCell();

  col.innerText = 'Campo '+(i.toString());

  col.width = '50%';

  col = row.insertCell();

  // Cria o campo a digitar

  input = document.createElement('<input type="text">');

  input.style.width = '100%';

  input.style.height = '100%';

  input.style.border = 'none';

  input.name = 'campo_'+(i.toString());

  col.appendChild(input);

}

// Salta uma linha

var br = document.createElement('<br>');

form.appendChild(br);

// Cria o botão de submit

var botao = document.createElement('<input type="submit">');

botao.value = 'Enviar Valores';

form.appendChild(botao);

}

function fonte()

{

var win = window.open();

win.document.write('<textarea style="width:100%;height:100%">'+document.body.innerHTML+'</textarea>');

}

</script>

<body>

Informe o n&uacute;mero de campos a digitar:

  <input name="campos" type="text" id="campos">

  <input name="button" type="button" value="OK" onClick="gerar(campos.value)">

  <input type="button" value="Código Fonte" onClick="fonte()">

</body>

É isso aí!!!

:D

Link para o comentário
Compartilhar em outros sites

  • 0

Mensagens Randômicas (pérolas do Enem)

<html> 
<head> 
<title>Pérolas do Enem</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

</head> 

<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000"> 

<script> 
   <!-- 
   function random(limit) { 
     today = new Date(); 
     return(today.getSeconds() % limit); 
   } 

   function tagline() { 
     tagLines = new Array(41); 
     tagLines[0] = "\"Já está muito de difícil de achar os pandas na Amazônia.\""; 
     tagLines[1] = "\"A natureza brasileira só tem 500 anos e já está quase se acabando.\""; 
     tagLines[2] = "\"O cerumano no mesmo tempo que constrói também destrói, pois nos temos que nos unir para realizarmos parcerias juntos.\""; 
     tagLines[3] = "\"Na verdade, nem todo desmatamento é tão ruim. Por exemplo, o do Aeds Egipte seria um bom benefício para o Brasil.\""; 
     tagLines[4] = "\"Vamos mostrar que somos semelhantemente iguais uns aos outros.\""; 
     tagLines[5] = "\"...eles matam não somente os animais mas também os matança de aves peixes também precisam acabar ... os pequenos animalzinhos morrem queimados e asfixados.\""; 
     tagLines[6] = "\"Hoje endia a natureza não é mais aquela...\""; 
     tagLines[7] = "\"No paíz enque vivemos, os problemas cerrevelam...\""; 
     tagLines[8] = "\"Precisamos de menos desmatamentos e mais florestas arborizadas.\""; 
     tagLines[9] = "\"É um problema de muita gravidez.\""; 
     tagLines[10] = "\"Nesta terra ensi plantando tudo dá.\""; 
     tagLines[11] = "\"Isso tudo é devido ao raios ultra-violentos que recebemos todo dia.\""; 
     tagLines[12] = "\"O homem não está mais valorizando a sua pátria ambiental.\""; 
     tagLines[13] = "\"Imaginem a bandeira do Brasil. O azul representa o céu, o verde representa as matas, e o amarelo o ouro. O ouro já foi roubado e as matas estão quase se indo. No dia em que roubarem nosso céu, ficaremos sem bandeira.\" (é... faz sentido)"; 
     tagLines[14] = "\"O serumano no mesmo tempo que constrói também destói, pois nois temos que nos unir para realizar parcerias.\""; 
     tagLines[15] = "\"...são formados pelas bacias esferográficas.\""; 
     tagLines[16] = "\"Eu concordo em gênero e número igual.\""; 
     tagLines[17] = "\"Os homens brasileiros, estão acabando com tudo, as árvores para desmartar para fazer tauba e outra coisa.\""; 
     tagLines[18] = "\"Precisa-se começar uma reciclagem mental dos humanos, fazer uma verdadeira lavagem celebral em relação ao desmatamento, poluição e depredação de si próprio.\""; 
     tagLines[19] = "\"O seringueiro tira borracha das árvores, mas não nunca derubam as seringas.\""; 
     tagLines[20] = "\"A concentização é um fato esperançoso para todo o território mundial.\""; 
     tagLines[21] = "\"Vamos deixar de sermos egoístas e pensarmos um pouco mais em nós mesmos.\""; 
     tagLines[22] = "\"O sero mano tem uma missão...\""; 
     tagLines[23] = "\"O Euninho já provocar secas e enchentes calamitosas...\""; 
     tagLines[24] = "\"Até a Xuxa hoje em dia se prelcupa com a situação dos animais.\""; 
     tagLines[25] = "\"Na Amazonas está sendo a maior derrubagem e extração de madeira do Brasil.\""; 
     tagLines[26] = "\"O problema ainda é maior se tratando da camada Diozônio!\""; 
     tagLines[27] = "\"O nosso am biente ele estava muito estragado e muito poluido por causa que os outros não zela o ar puro.\""; 
     tagLines[28] = "\"A situação tende a piorar: o madereiros da Amazônia destróem a Mata Atlântica da região...\""; 
     tagLines[29] = "\"O que é de interesse coletivo de todos nem sempre interessa a ninguém individualmente.\""; 
     tagLines[30] = "\"Não preserve apenas o meio ambiente e sim todo ele.\""; 
     tagLines[31] = "\"O grande problema da Rio Amazonas é o pesca dos peixes.\""; 
     tagLines[32] = "\"nos dias de hoje a educação está muito precoce.\""; 
     tagLines[33] = "\"precisamos agir de maneira inesperável.\""; 
     tagLines[34] = "\"por isso eu luto para atingir os meus obstáculos.\""; 
     tagLines[35] = "\"na época de Cristo não haviam indústrias para poluir e assim mesmo háviam problemas sociais entre os povos.\""; 
     tagLines[36] = "\"o maior problema da floresta Amazonas é o desmatamento dos peixes.\""; 
     tagLines[37] = "\"os desmatamentos de animais precisam acabar.\""; 
     tagLines[38] = "\"eles querem que nós se matem por eles e a única solução é alugar o Brasil para os outros.\""; 
     tagLines[39] = "\"na televisão o governo vem com aquela prosopopéia flácida.\""; 
     tagLines[40] = "\"todos os fiscais são subordinados; é a propina.\""; 





     document.write("<FONT FACE='Verdana, Arial, Helvetica, sans-serif' SIZE='1'>" + tagLines[random(41)] + "</FONT>"); 
   } 
     tagline(); 
   //  --> 
  </SCRIPT> 

</body> 
</html>

beijokas..

Link para o comentário
Compartilhar em outros sites

  • 0

Destaca ocorrência de palavra na página

<html> 
<head> 
<title>Destacar Ocorr&ecirc;ncia</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
</head> 

<body bgcolor="#FFFFFF" text="#000000"> 
<font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"> 
<script language=JSCRIPT> 
function ChangeText() { 
var newText = document.body.createTextRange(); 
if (tochange.value != "") 
while (newText.findText(tochange.value) ) 
newText.pasteHTML("<FONT class=change>" + tochange.value + 
"</FONT>"); 
} 
</script> 
<style> 
.change { font-weight: bold; background-color: #FFFF99} 
</style> 
Digite uma palavra que queira destacar na p&aacute;gina 
<input name=tochange> 
<input onClick=ChangeText() type=button value=encontrar name="button"> 
</font></font> 
<hr size="1"> 
<font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><br> 
<br> 
Este texto &eacute; apenas um teste para voc&ecirc; testar este javascript. &Eacute; 
bem diferente, nuncatinha visto nada igual, pode ser que seja &uacute;til a voc&ecirc;. 
Basta digitar um apalavra na caixa de texto acima, e clicar no bot&atilde;o &quot;encontrar&quot;, 
que ela ficar&aacute; <span class="change">assim</span>. </font></font> 
</body> 
</html>

beijokas..

Link para o comentário
Compartilhar em outros sites

  • 0

Menu Explorer

<html> 
<head> 
<TITLE>Menu Hierarquico</TITLE> 

<script> 
<!-- Beginning of JavaScript - 

var menublock=new Array() 
var plus_i=0 

menublock[0]=      "Link 1|#|;"+ 
         "SubLink 1.1|submenu11.html|main;"+ 
         "SubLink 1.2|submenu12.html|main;" 
          

menublock[1]=      "Link 2|#|;"+ 
         "Link 2.1|submenu31.html|main;"+ 
         "Link 2.2|submenu32.html|main;"+ 
         "Link 2.3|submenu33.html|main;" 

menublock[2]=      "Link 3|main.html|main;" 

//  ********************************************************************************** 
    
var menusplit 
var urlsplit 

var minusimg=new Image() 
minusimg.src="open.gif" 

var plusimg=new Image() 
plusimg.src="closed.gif" 
          
var showsubmenus=new Array() 
for (i=0;i<=menublock.length-1;i++) { 
   showsubmenus[i]=-1 
} 

var plusminusimg=new Array() 
for (i=0;i<=menublock.length-1;i++) { 
   plusminusimg[i]=plusimg.src 
} 

function openandclose(visi) { 
   showsubmenus[visi]=(-1)*showsubmenus[visi] 
    var menucontent="" 
    if (showsubmenus[visi]==1) {plusminusimg[visi]=minusimg.src} 
    if (showsubmenus[visi]==-1) {plusminusimg[visi]=plusimg.src} 
    menucontent+="<table border=0 cellspacing=0 cellpadding=0>" 
   for (i=0;i<=menublock.length-1;i++) { 
      menusplit=menublock[i].split(";") 
      urlsplit=menusplit[0].split("|") 
      menucontent+="<tr><td>" 

        
       if (menusplit[1].length==0) { 
            menucontent+="</td>" 
            menucontent+="<td>" 
            menucontent+="<a href="+urlsplit[1]+" target="+urlsplit[2]+">" 
            menucontent+="<b><font face=verdana color=black size=1>" 
            menucontent+=urlsplit[0] 
            menucontent+="</font></b></a></td></tr>" 
            plus_i++ 
        } 
        
        if (menusplit[1].length!=0) { 
            var thismainmenu=i+plus_i 
            menucontent+="<a href='javascript:openandclose("+i+")'>" 
            menucontent+="<img src='"+plusminusimg[i]+"' border=0></a></td>" 
            menucontent+="<td>" 
            menucontent+="<a href='javascript:openandclose("+i+")'>" 
            menucontent+="<b><font face=verdana color=black size=1>" 
            menucontent+=urlsplit[0] 
            menucontent+="</font></b></a></td></tr>" 
    
          if (showsubmenus[i]==1) { 
             for (ii=1;ii<=menusplit.length-1;ii++) { 
                urlsplit=menusplit[ii].split("|") 
                    menucontent+="<tr><td></td><td>" 
                    menucontent+="<a href="+urlsplit[1]+" target="+urlsplit[2]+">" 
                    menucontent+="<font face=verdana color=gray size=1>" 
                    menucontent+=urlsplit[0] 
                    menucontent+="</font></a></td></tr>" 
             } 
          } 
        }    
   } 
    menucontent+="</table>" 
   if (document.all) { 
      menu.innerHTML=menucontent 
   } 
   if (document.layers) { 
      document.menu.document.write(menucontent) 
      document.menu.document.close() 
   } 
} 


// - End of JavaScript - --> 
</script> 

<style> 
A {text-decoration:none;} 
</style> 

</HEAD> 

<body bgcolor=#FFFFFF onLoad="openandclose(1000)" text="#000000" link="#000000" vlink="#000000" alink="#000000"> 
<div id="menu" style="position:absolute;top:20px;left:10px"></div> 

</body> 
</html>

beijokas..

Link para o comentário
Compartilhar em outros sites

  • 0

SCROLLER LATERAL QUE MUDA DE COR DE ACORDO COM A POSIÇÃO DO MOUSE!

<HTML>

<HEAD>

<TITLE> SUPERSCRIPT </TITLE>

</HEAD>

<body>

<!-- SCRIPT By DiRaOL -->

<!-- SCRIPT By DiRaOL -->

<script language="JavaScript1.2">

<!--

//SCRIPT By DiRaOL

//SCRIPT By DiRaOL

/*---------------[iE 5.5 Scrollbars colorida]--------------------*/

function scrollBar(line,face,theme)

{

  if (!line||!face)

   {

    line=null;

    face=null;

    switch(theme) // Tema pré-definido

     {

      case "blue":

       var line="#78AAFF";

       var face="#EBF5FF";

       break;

      case "orange":

       var line="#FBBB37";

       var face="#FFF9DF";

       break;

      case "red":

       var line="#FF7979";

       var face="#FFE3DD";

       break;

      case "green":

       var line="#00C600";

       var face="#D1EED0";

       break;

      case "neo":

       var line="#BC7E41";

       var face="#EFE0D1";

       break;

     }

   }

    with(document.body.style)

     {

      scrollbarDarkShadowColor=line;

      scrollbar3dLightColor=line;

      scrollbarArrowColor="black";

      scrollbarBaseColor=face;

      scrollbarFaceColor=face;

      scrollbarHighlightColor=face;

      scrollbarShadowColor=face;

      scrollbarTrackColor="#F3F3F3";

     }

   }

/*------------------[Localizador das coordenadas do mouse]---------------*/

function colorBar(){

  var w = document.body.clientWidth;

  var h = document.body.clientHeight;

  var x = event.clientX;

  var y = event.clientY;

  if(x>w) scrollBar('#000080','#BFDFFF'); // Suas Cores

  else scrollBar(null,null,"neo"); // Tema Pré-Definido

}

if (document.all){

scrollBar(null,null,"neo");

document.onmousemove=colorBar;

}

//SCRIPT By DiRaOL

//SCRIPT By DiRaOL

//-->

</script>

<table height=2000><tr><td>TESTE</td></tr></table>

</body>

</HTML>

TEXTO ROTATIVO NA BARRA DE STATUS

<script>

var texto="um texto meio grande...                              ";

var tempo=0;

function rolar(){

window.status=texto;

texto=texto.substring(1,texto.length)+texto.charAt(0);

window.setTimeout("rolar()",90);

   }

rolar();

</script>

ROLAGEM SUAVE AUTOMÁTICA DA PÁGINA

<html>

<head>

<!-- O Código tem que ficar depois de '<HEAD>' e antes de '</HEAD>' -->

<script Language="JavaScript">

<!--

function scrollit(){

for (I=1; I<=600; I++){

  parent.scroll(1,I)

}

}

//-->

</SCRIPT>

<!-- Fim do código - DiRaOL -->

                <TITLE> SuperScript</TITLE>

</head>

<BODY BGCOLOR="black" TEXT="white" ALINK="black" LINK="#FFCC00" VLINK="#FFCC00">

<CENTER>

<BR><BR>

<PRE>SuperScript em movimento. Funciona melhor com o Netscape</PRE>

<BR>

<!-- Coloque isto em qualquer lugar da página -->

<form>

<input type=button value="Ativar Script!" onClick="scrollit()">

</form>

<!-- Fim do Form -->

<Center>

<BR><BR><BR><BR><BR><BR><BR><BR>

<H1>Olha s&oacute; que legal!</H1>

<BR><BR><BR><BR><BR><BR><BR><BR>

<H1>Uma coisa t&atilde;o simples</H1>

<BR><BR><BR><BR><BR><BR><BR><BR>

<H1>e t&atilde;o legal!</H1>

<BR><BR><BR><BR><BR><BR><BR>

<PRE>Salve esta p&aacute;gina e depois &eacute; s&oacute; copiar e colar

o c&oacute;digo.

</PRE>

<BR><BR><BR><BR>

<PRE><A HREF="mailto:diraol@yahoo.com.br">E-MAIL</A></PRE>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

  • 0
<!---Banner Rotator --->

      <script language=JavaScript>

hoje = new Date()

numero_de_imagens = 5 <!--- aqui vai o nº atual de imagens cadastradas --->

segundos = hoje.getSeconds()

numero = segundos % numero_de_imagens

if (numero == 0){

banner = "imagem1.gif"

link = "link.htm"

alvo = "_blank"

}

if (numero == 01){

banner = "imagens2.gif"

link = "link.htm"

alvo = "_blank"

}

if (numero == 02){

banner = "imagen3.gif"

link = "link.htm"

alvo = "_blank"

}

if (numero == 03){

banner = "imagem4.gif"

link = "link.htm"

alvo = "_blank"

}

if (numero == 04){

banner = "imagem5.gif"

link = "link.htm"

alvo = "_blank"

}

document.write('<a href="' + link + '" target="' + alvo + '" ><img src="' + banner + '" border=0></a>') </SCRIPT>

      <!--- Banner rotator --->

Link para o comentário
Compartilhar em outros sites

  • 0

CENTRALIZAR POP-UP NO MEIO DA TELA

RESOLVI BOTAR ESTE CODIGO PORQUE EU TENHO VISTO MUITO ESSA DUVIDA AQUI NO FORUM...

O SCRIPT DE CENTRALIZAR A JANELA NO MEIO DA TELA...

este codigo vai entre os tags <head> e </head> da sua pagina

<script>
function abrejanela(url,l,a)
{
var x = parseInt((screen.width-l)/2);
var y = parseInt((screen.height-a)/2);
var win = window.open(url,'','width='+l+',height='+a);
win.moveTo(x,y);
}
</script>
e para abrir voce faz assim...
<a href="javascript:abrejanela('pagina.html','250','200')">LINK</a>

no caso 250 e a largura, e 200 e a altura e pode ser alterado a gosto...

JOAQUIM SANTOS

Link para o comentário
Compartilhar em outros sites

  • 0

CÓDIGO DE PÁGINA PARA CRIPTOGRAFIA

pegue este código e salve ele como CRIPTOGRAFIA.HTML

ai abra esta página, copie o código fonte da sua página para o primeiro 'quadro' dele e mande criptografar........ o código criptografado sairá no segundo 'quadro'... ai é só copiar o código do segundo 'quadro' e salvar como a sua página... :)

qualquer dúvida é só perguntar!!!

CRIPTOGRAFIA.HTML

<html>

<head>

<title>criptografia</title>

</head>

<body scroll=no>

<script>

function cript(form1){form1.text2.value=escape(form1.text1.value);}

function descript(form1){form1.text2.value=unescape(form1.text1.value);}

</script><form name=form1>

<center>

<textarea cols=80 rows=10 name=text1></textarea><p>

<input type=button value=criptografar onclick=cript(form1)>

<input type=button value=descriptografar onclick=descript(form1)><P>

<textarea cols=80 rows=10 name=text2></textarea>

</form>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

  • 0

códigos CEDIDOS por 'DannyFiore'....

___________________________________

:: Marquee que botão iniciar e parar::

<html>

<body>

<marquee id="scroller" direction="up" width="150" style="background-color:#f9f9f9;font-size:8pt;font-family:verdana;color:#1c1c1c;">

seu texto aqui<br>

seu texto aqui<br>

seu texto aqui<br>

</marquee>

<br>

<a href=java script:scroller.start()><font style="font-size:8pt;font-family:verdana;color:#1c1c1c;text-decoration:none;">iniciar</a>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href=java script:scroller.stop()><font style="font-size:8pt;font-family:verdana;color:#1c1c1c;text-decoration:none;">parar</a>

</body>

</html>

:: Sublinado nos links ::

<style>

<!--

A{text-decoration: none}

-->

</style>

SUBLINHANDO OS LINKS

Para que os links fiquem sem sublinhados mantenha o none

Para que os links fiquem sublinhados em cima troque none por overline

Para que os links fiquem sublinhados em baixo troque none por underline

Para que os links fiquem sublinhados em cima e em baixo troque none por underline overline

:: Bloquedar a atividade do Teclado ::

<body onselectstart="return false">

:: Altera a cor do fundo do link quando o cursor em cima ::

<HEAD>

<STYLE><!--A:HOVER {background-color: yellow;}--></STYLE>

:: Passe o mouse sobre o link e obtenha uma msg na barra de statos ::

<a href="suapagina.html" onMouseOver="window.status='sua mensagem aqui'; return true">

___________________________________

Link para o comentário
Compartilhar em outros sites

  • 0

:: Barra de Rolagem Colorida ::

<style>

body {scrollbar-shadow-color: #0099CC; scrollbar-face-color: #6699FF; scrollbar-3dlight-color: #0099FF; scrollbar-highlight-color: #0099FF; scrollbar-darkshadow-color: #FFFFFF; scrollbar-track-color: #0099CC; scrollbar-arrow-color: #FFFFFF}

</style>

:: Borda ::

<STYLE>

BODY {border-width: 5px; border-color: orange; border-style: solid}

</STYLE>

:: Passa uma linha sobre o Texto ::

<font size="1" face="Verdana"><strike>seu texto</strike></font>

:: Botão desabilidado ::

<form>

<input type=button value=clique disabled>

</form>

____

abraço,

Daniel :)

Link para o comentário
Compartilhar em outros sites

  • 0

Máscara de Horas com ":" e Validação

<script LANGUAGE="JavaScript">

<!--

function dois_pontos(tempo){

      if(event.keyCode<48 || event.keyCode>57){

        event.returnValue=false;}

      if(tempo.value.length==2 || tempo.value.length==5){

        tempo.value+=":";}

}

function valida_horas(tempo){

  while (tempo.value.length < 8){

      if(tempo.value.length==2 || tempo.value.length==5){

        tempo.value+=":";}

      tempo.value+="0";}

  horario = tempo.value.split(":");

  var horas = horario[0];

  var minutos = horario[1];

  var segundos = horario[2];

if(horas > 24){ //para relógio de 12 horas altere o valor aqui

  submit.disabled = true;relogio.focus()//fica nome_do_form.submit.disabled caso você insira um form ali em baixo

  Break}

if(minutos > 59){

  submit.disabled = true;relogio.focus()

  Break}

if(segundos > 59){

  submit.disabled = true;relogio.focus()

  Break}

  submit.disabled = false;

}

//-->

</SCRIPT>

Informe as Horas: <input type="text" name="relogio" maxlength="8" onkeypress="dois_pontos(this)" onBlur="valida_horas(this)">

<input type='submit' name='submit' value='Enviar'>

Editado por diraol
Link para o comentário
Compartilhar em outros sites

  • 0

E-mail direto da Pagina (como um form) utilizando o OutLook, sem necessidade de linguagem dinamica

<HEAD>

<!-- autor: jair.issa@linksat.com.br -->

<script LANGUAGE="JavaScript">

var startTime = new Date();

startTime = startTime.getTime();

var submissions = 0;

function checkForDuplicate() {

if (document.form1) {

document.form1.REFERRER.value = document.referrer;

document.form1.PLATFORM.value = navigator.appName

+ " " + navigator.appVersion;

submissions++;

if (submissions > 1)

return false;

else

return true;

}

else {

return false;

}

}

function doneLoading() {

var stopTime = new Date();

stopTime = stopTime.getTime();

document.form1.LOADING_TIME.value = ((stopTime - startTime) / 1000)

+ " seconds";

document.form1.PAGE.value = document.title;

document.form1.SUBMITTER.click();

}

</script>

</HEAD>

<BODY onLoad="doneLoading()">

<FORM name="form1" METHOD=post action="mailto:shapei@diminio.com?SUBJECT=Teste de envio de e-mail" enctype="text/plain" onSubmit="return checkForDuplicate()">

<input type="hidden" name="PAGE" value="none">

<input type="hidden" name="REFERRER" value="none">

<input type="hidden" name="PLATFORM" value="none">

<input type="hidden" name="LOADING_TIME" value="none">

<input type="submit" name="SUBMITTER" value="Teste Shapei">

</form>

Link para o comentário
Compartilhar em outros sites

  • 0

DESABILITAR BOTOES/TEXT

Postei este no SuperScript e achei que vocês gostariam...

Achei este exemplo no Site Da Microsoft MSDN.. achei que seria util.. pode ser utilizado para desabilitar uma parte da Pagina ou ela toda, util para quem tem Site de Votacao e so libera a pagina apos Votar ou colocar o Nome ou uma outra ação qualquer.. deem uma Olhada

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>

<TITLE>disabled Property Sample</TITLE>

<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1">

<META NAME="AUTHOR" CONTENT="InetSDK">

<META NAME="MS.LOCALE" CONTENT="EN-US">

<META NAME="ROBOTS" CONTENT="noindex">

<LINK REL="stylesheet" HREF="/workshop/samples/author/dhtml/refs/samplesSDKIE4.css" TYPE="text/css">

<style id=oStyle>

.styletest{background-color: black; color: white;}

.styletest2{background-color: black; color: red;}

</style>

<script>

function fnSwitch(){

if(oTest.enablement=="enabled"){

oTest.enablement="disabled";

oButton.value="Set disabled to false";

oStyle.disabled=true;

oDisableMe.disabled=true;

}

else{

oButton.value="Set disabled to true";

oTest.enablement="enabled";

oStyle.disabled=false;

oDisableMe.disabled=false;

}

}

</script>

</HEAD>

<!--TOOLBAR_START-->

<!--TOOLBAR_EXEMPT-->

<!--TOOLBAR_END-->

<BODY TOPMARGIN=0 LEFTMARGIN=0 BGPROPERTIES="FIXED" BGCOLOR="#FFFFFF"

LINK="#000000" VLINK="#808080" ALINK="#000000">

<BLOCKQUOTE CLASS="body">

<p enablement="enabled" id=oTest class="styletest">

This paragraph has a <b>class</b> that references a <b>STYLE</b> defined in this document's head, and is followed by an <b>INPUT</b> control. When you click the <b>Set disabled to true</b> button, the <b>STYLE</b> object's <b>disabled</b> property is set to <SPAN CLASS="literal">true</SPAN>, and the rules cease to apply.

The <b>INPUT</b> control's <B>disabled</B> property is also set to <SPAN CLASS="literal">true</SPAN> and becomes inaccessible.

<span class="styletest2">But don't worry, the <b>disabled</b> property can be set to <SPAN CLASS="literal">false</SPAN>, making both the rules and the INPUT button accessible again.</span>

<BR>

<BR>

<input type=button id=oDisableMe class="styletest" value="Demonstration Button" onclick="alert('Demonstration button')">

</p>

<input type=button id=oButton value="Set disabled to true" onclick="fnSwitch()">

<CENTER>

<HR>

[right-click anywhere in window to view the source code]

</CENTER>

<!-- START_PAGE_FOOTER -->

<BR><BR><BR>

&copy; <A CLASS="clsIncCpyRt" HREF="http://www.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top"> 2002 Microsoft Corporation. All rights reserved. Terms of use</A>.

<!-- END_PAGE_FOOTER -->

</BLOCKQUOTE>

</BODY>

</HTML>

Link para o comentário
Compartilhar em outros sites

  • 0

MAXIMIZAR A JANELA E SIMULAR O F11)

<!-- By: jair.issa@linksat.com.br -->

<html>

<head>

<title>Testes Maximizar e Simular F11</title>

</head>

<body>

<html>

<head>

<title>Maximizando a Janela do Visitante</title>

<script>

function maximizar() {

window.moveTo (-4,-4);

window.resizeTo (screen.availWidth + 8, screen.availHeight + 8);

}

</script>

<script>

function F11()

{

window.open("arquivo.htm","","channelmode");

}

</script>

</head>

<body>

<button onClick="maximizar();">Maximizar</button>

<button onClick="F11();">F11</button>

</body>

</html>

</body>

</html>

Link para o comentário
Compartilhar em outros sites

  • 0

Ler o codigo Fonte de paginas... basta colocar o endereço.

Bem é bom para se voce não quiser abrir toda a hora o NotePad utilizando o

view-source:http:// ou ter que esperar uma pagina carregar para editar o Codigo pelo menu (principalmente se tiver em tela cheia)

e da para proteger algo??

Funciona em com ASP.. então seu server ou seu IIS/PWS deve suportar tb smile.gif

dois arquivos..

Pegafonte.asp - Para pegar o codigo como diz o nome heheh

Salvar.asp - nem precisa de explicacao né? quando clicado no botao de salvar no pegafonte.asp ele salva o conteudo com o nome de fonte.txt onde voce quiser

SALVAR.ASP

<!-- sALVA A PAGINA CAPTURADA EM UM ARQUIVO TEXTO FONTE.TXT -->
<%@ Language=VBScript %>
<%Response.ContentType="application/download"%>
<%Response.AddHeader "Content-Disposition", "attachment; filename=fonte.txt"%>
<%myurl=Request.QueryString("url")%>
<%
	if myurl="" then
  Response.Redirect "pegafonte.asp"
	end if

Function GetHTML(strURL)
  Dim objXMLHTTP, strReturn
  Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

  objXMLHTTP.Open "GET", strURL, False
  objXMLHTTP.Send

  strReturn = objXMLHTTP.responseText
  Set objXMLHTTP = Nothing

  GetHTML = strReturn
End Function

Response.Write GetHTML(myurl)
%>
PEGAFONTE.ASP
<!-- CAPTURA O FONTE DE UMA PAGINA .HTM -->
<%@ Language=VBScript %>
<%Response.Buffer=True%>
<HTML>
<HEAD>
<title>Visualizar código fonte</title>
<script LANGUAGE=javascript>
<!--
function clearall()
{  
	window.document.location.href="pegafonte.asp"
}
function getit(what)
{
	window.document.getsourceform.hid1.value = what  
	window.document.getsourceform.submit()
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<form name=getsourceform method=post action=pegafonte.asp>
<input type=hidden name=hid1 value="">	
<script LANGUAGE=vbscript RUNAT=Server>
Function GetHTML(strURL)
on error resume next
  Dim objXMLHTTP, strReturn
  Set objXMLHTTP = Server.CreateObject("Microsoft.XMLHTTP")

  objXMLHTTP.Open "GET", strURL, False
  objXMLHTTP.Send    
  strReturn = objXMLHTTP.responseText
  Set objXMLHTTP = Nothing

  GetHTML = strReturn
End Function
</SCRIPT>

<table width=95% align=center border=1 cellpadding=1 cellspacing=2 bordercolor=#d1d5e6 bgcolor=#f6f8fc>
	<tr>
  <td>
  	<table width=100% align=center border=0 cellpadding=1 cellspacing=2>
    <tr>
            <td colspan=2 align=center><font face=verdana size=2 color=navy><b>Visualize 
              o c&oacute;digo fonte de qualquer pagina</b></font></td>
          </tr>
    <tr>
    	<td><input type=button name=rst value="Limpar" onclick="javascript:clearall()"></td>
    	
            <td align=center> <font face=verdana size=2 color=blue>Digite o endere&ccedil;o:</font>&nbsp; 
            <input type=text name=myurl <%If trim(request("myurl"))="" Then%> value="http://www.google.com" <%Else%> value="<%=trim(request("myurl"))%>" <%End If%>size=35 size="20"> 
              &nbsp;&nbsp; 
              <input type=button name=getbut value="Pegar" onclick="javascript:getit('get')">
              &nbsp;&nbsp;      
      <input type=button name=savebut value="Salvar" onclick="javascript:getit('save')">
    	</td>
    </tr>
  	</table>
  </td>
	</tr>
	<%
  If request("hid1") = "get" Then
  	myurl = trim(request("myurl"))
  	retval = GetHTML(myurl)
  	Response.Write "<tr><td><font face=verdana size=1 color=red>Código fonte de:  " & myurl & " é:</font><br><font face=verdana size=1 color=black>" & replace(server.HTMLEncode(retval),chr(13),"<br>") & "</font></td></tr>"
  ElseIf request("hid1") = "save" Then  
  	myurl = trim(request("myurl"))
  	Response.Redirect "salvar.asp?url="&myurl&""
  End If
	%>
</table>	
</form>
</BODY>
</HTML>

Link para o comentário
Compartilhar em outros sites

  • 0

Um script com um Bem-Vindo q fica diminuindo na barra de status .........Legalzinho.....

<script language="JScript">
<!--
//ScRiPt bY JoHn DoE
var msg = new Array();
msg[1] = "B      e      m      -      V      i      n      d      o";
msg[2] = "B     e     m     -     V     i     n     d     o";
msg[3] = "B    e    m    -    V    i    n    d    o";
msg[4] = "B   e   m   -   V   i   n   d   o";
msg[5] = "B  e  m  -  V  i  n  d  o";
msg[6] = "B e m - V i n d o";
msg[7] = "Bem - Vindo";
var cont = 0;
var rodando = false;
function Scroll()
{
for (cont = 1;cont<2;cont++)
{
window.status = msg[cont]
rodando = true;
setTimeout('Scroll2()',500)
}
}
function Scroll2()
{
if (rodando)
{
for (cont=2;cont<3;cont++)
{
window.status = msg[cont];
setTimeout('Scroll3()',500)
}
}
}
function Scroll3()
{
if (rodando)
{
for (cont=3;cont<4;cont++)
{
window.status = msg[cont];
setTimeout('Scroll4()',500)
}
}
}
function Scroll4()
{
if (rodando)
{
for (cont=4;cont<5;cont++)
{
window.status = msg[cont];
setTimeout('Scroll5()',500)
}
}
}
function Scroll5()
{
if (rodando)
{
for (cont=5;cont<6;cont++)
{
window.status = msg[cont];
setTimeout('Scroll6()',500)
}
}
}
function Scroll6()
{
if (rodando)
{
for (cont=2;cont<3;cont++)
{
window.status = msg[cont];
setTimeout('Scroll7()',500);
rodando = false
}
}
}
function Scroll7()
{
for(cont = 7;cont<8;cont++)
{
window.status = msg[cont];
Scroll();
break;
}
}
-->
</script>
Isso no body:
<body onload="Scroll()">

Link para o comentário
Compartilhar em outros sites

  • 0

Scroll Automatico para textos grandes.. basta posicionar o mouse sobre as Flechas(que precisam ser colocadas acima.gif e baixo.gif, pode mudar o nome para uma que tenha)

<style type="text/css">

#divUp  {position:absolute; left:170px; top:190px;}

#divDown {position:absolute; left:170px; top:380px;}

#divScrollTextCont {position:absolute; left:170px; top:220px; width:426px; height:158px; clip:rect(0px 447px 221px 0px); overflow:hidden;}

#divText {position:absolute; left:700px; top:0px;}

.FormObjects

{

    COLOR: #000000;

    FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif;

    FONT-SIZE: 7pt;

    FONT-STYLE: normal;

    FONT-WEIGHT: normal

}

</style>

<script language="JavaScript" type="text/javascript">

function lib_bwcheck(){ //Browsercheck (needed)

this.ver=navigator.appVersion

this.agent=navigator.userAgent

this.dom=document.getElementById?1:0

this.opera5=(navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?1:0

this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;

this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;

this.ie4=(document.all && !this.dom && !this.opera5)?1:0;

this.ie=this.ie4||this.ie5||this.ie6

this.mac=this.agent.indexOf("Mac")>-1

this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;

this.ns4=(document.layers && !this.dom)?1:0;

this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)

return this

}

var bw=new lib_bwcheck()

var speed = 30

var loop, timer

function makeObj(obj,nest){

    nest=(!nest) ? "":'document.'+nest+'.'

this.el=bw.dom?document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):0;

  this.css=bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+'document.'+obj):0;

this.scrollHeight=bw.ns4?this.css.document.height:this.el.offsetHeight

this.clipHeight=bw.ns4?this.css.clip.height:this.el.offsetHeight

this.up=goUp;this.down=goDown;

this.moveIt=moveIt; this.x=0; this.y=0;

    this.obj = obj + "Object"

    eval(this.obj + "=this")

    return this

}

var px = bw.ns4||window.opera?"":"px";

function moveIt(x,y){

this.x = x

this.y = y

this.css.left = this.x+px

this.css.top = this.y+px

}

function goDown(move){

if (this.y>-this.scrollHeight+oCont.clipHeight){

  this.moveIt(0,this.y-move)

  if (loop) setTimeout(this.obj+".down("+move+")",speed)

}

}

function goUp(move){

if (this.y<0){

  this.moveIt(0,this.y-move)

  if (loop) setTimeout(this.obj+".up("+move+")",speed)

}

}

function scroll(speed){

if (scrolltextLoaded){

  loop = true;

  if (speed>0) oScroll.down(speed)

  else oScroll.up(speed)

}

}

function noScroll(){

loop = false

if (timer) clearTimeout(timer)

}

var scrolltextLoaded = false

function scrolltextInit(){

oCont = new makeObj('divScrollTextCont')

oScroll = new makeObj('divText','divScrollTextCont')

oScroll.moveIt(0,0)

oCont.css.visibility = "visible"

scrolltextLoaded = true

}

if (bw.bw) onload = scrolltextInit

</script>

  <div align="right"><a href="#" onMouseOver="scroll(-2)" onMouseOut="noScroll()" onClick="return false"><img src="../../cima.gif" width="12" height="6" >

    </a> </div>

</div>

<div id="divDown" style="left: 263px; top: 371px; width: 501px; height: 12px">

  <div align="right"><a href="#" onMouseOver="scroll(2)" onMouseOut="noScroll()" onClick="return false"><img src="acima.gif" width="12" height="6" ></a>

  </div>

</div>

<div id="divScrollTextCont" style="left: 317px; top: 150px; width: 447px; height: 221px">

  <div id="divText" style="" >

    <p align=justify> <font face="Verdana, Arial, Helvetica, sans-serif" size="2">

      <b>TESTE DE SCROLL AUTOMATICO</b><br><br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>                 

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>

      teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste  teste teste teste teste teste<br>

      linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha linha<br>                                               

      </font>

    <p>&nbsp; </p>

  </div>

</div>

  <div align="right"><a href="#" onMouseOver="scroll(2)" onMouseOut="noScroll()" onClick="return false"><img src="baixo.gif" width="12" height="6" ></a>

  </div>

Link para o comentário
Compartilhar em outros sites

  • 0

Esse script é um formulario q é obrigatório preencher os campos:

Caso tenha dúvidas é só postar um tópico perguntando q nós iremos t responder

<html>
<head>
<title>Fale conosco</title>
<script>
function enviar(){
if (document.enviar_formulario.nome.value==''){
 alert('Por favor, preencha o seu Nome');
 document.enviar_formulario.nome.focus();
 return(false);
}
if (document.enviar_formulario.email.value==''){
 alert('Por favor, preencha o seu E-mail');
 document.enviar_formulario.email.focus();
 return(false);
}                 
 var str=document.enviar_formulario.email.value
 var filter=/^.+@...+..+..{2,3}$/
 if (filter.test(str))
 testresults=true
 else
 {
 alert("Por favor, preenche o seu E-mail correto")
 testresults=false
 enviar_formulario.email.focus();
 return (testresults)
 }
if (document.enviar_formulario.texto.value==''){
 alert('Por favor, preencha o campo de Texto');
 document.enviar_formulario.texto.focus();
 return(false);
}
}
</script>
<style>
<!--

BODY {
COLOR: #ffffff; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-WEIGHT: normal; TEXT-DECORATION: none; link: #000000; vlink: #0000CC; alink: #ff0000;  SCROLLBAR-FACE-COLOR: #0000ff; SCROLLBAR-HIGHLIGHT-COLOR: #0000FF; SCROLLBAR-SHADOW-COLOR: #0066cc; SCROLLBAR-3DLIGHT-COLOR: #0066cc; SCROLLBAR-ARROW-COLOR: #000099; SCROLLBAR-TRACK-COLOR: #000099; SCROLLBAR-DARKSHADOW-COLOR: #000099}

.form {border-color: #3300ff; border-width: 1; border-style: solid; background-color: #ffffff; color: #2300ff; text-decoration: bold; font-size: 9pt; font-family:Verdana, Tahoma,  Arial; font-style: normal; font-weight: normal}


TD {
COLOR: #3300ff; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}

.font_white {
COLOR: #ffffff; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}

.font_menu {
COLOR: #000000; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}

.font_blue {
COLOR: #0066cc; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-STYLE: normal; FONT-WEIGHT: normal; TEXT-DECORATION: none
}

A {
COLOR: #0066cc; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-WEIGHT: normal; TEXT-DECORATION: none
}
A:hover {
COLOR: #0066cc; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; FONT-WEIGHT: normal; TEXT-DECORATION: underline
}


.link_menu {
COLOR: #000000; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: none
}
.link_menu:hover {
COLOR: #0066cc; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: none
}


.sublink {
COLOR: #FF9933; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: none
}
.sublink:hover {
COLOR: #FF9933; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: underline
}


.link_admin {
COLOR: #ffffff; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: none
}
.link_admin:hover {
COLOR: #E8E4E4; FONT-FAMILY: Verdana, Tahoma,  Arial; FONT-SIZE: 10px; TEXT-DECORATION: none
}
.menu_programa {
COLOR: #336699;
FONT-FAMILY: Verdana, Tahoma,  Arial;
FONT-SIZE: 10px; TEXT-DECORATION: none;
font-weight: bolder;
}
.menu_programa:hover {
COLOR: #F4A460;
FONT-FAMILY: Verdana, Tahoma, Arial;
FONT-SIZE: 10px;
TEXT-DECORATION: none;
 font-weight: bolder;
}

-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<form name="enviar_formulario" action="http://localhost/" onSubmit="return enviar();">
<table>
<tr vAlign="top">
 <td vAlign="center" align="right"><b>Nome:&nbsp;&nbsp;</b></td>
 <td><input class="form" size="35" name="nome"></td>
</tr>
<tr vAlign="top">
 <td vAlign="center" align="right"><b>E-mail:&nbsp;&nbsp;</b></td>
 <td><input class="form" size="35" name="email"></td>
</tr>
<tr vAlign="top">
 <td colSpan="2"><b>Mensagem:</b><br>
 <textarea class="form" name="texto" rows="7" cols="55"></textarea></td>
</tr>
<tr>
 <td colspan="2"><p align="right"><input name="Enviar" type="image" src="botao_enviar.gif" width="58" height="21" border="0"></td>
</tr>
</table>
</form>
</body>
</html>

Abraços

[Victor] cool.gif

Link para o comentário
Compartilhar em outros sites

  • 0

não sei quem foi que fez, mas e um relogio muito legal...

<!-- saved from url=(0022)http://internet.e-mail -->
<!-- saved from url=(0022)http://internet.e-mail -->
<!-- saved from url=(0022)http://internet.e-mail -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<script language=JavaScript>
dCol='000000';//date colour.
fCol='000000';//face colour.
sCol='000000';//seconds colour.
mCol='000000';//minutes colour.
hCol='000000';//hours colour.
ClockHeight=40;
ClockWidth=40;
ClockFromMouseY=0;
ClockFromMouseX=100;

//Alter nothing below! Alignments will be lost!

d=new Array("DOMINGO","SEGUNDA","TERÇA","QUARTA","QUINTA","SEXTA","SÁBADO");
m=new Array("JANEIRO","FEVEREIRO","MARÇO","ABRIL","MAIO","JUNHO","JULHO","AGOSTO","SETEMBRO","OUTUBRO","NOVEMBRO","DEZEMBRO");
date=new Date();
day=date.getDate();
year=date.getYear();
if (year < 2000) year=year+1900;
TodaysDate=" "+d[date.getDay()]+" "+day+" "+m[date.getMonth()]+" "+year;
D=TodaysDate.split('');
H='...';
H=H.split('');
M='....';
M=M.split('');
S='.....';
S=S.split('');
Face='1 2 3 4 5 6 7 8 9 10 11 12';
font='Arial';
size=1;
speed=0.6;
ns=(document.layers);
ie=(document.all);
Face=Face.split(' ');
n=Face.length;
a=size*10;
ymouse=0;
xmouse=0;
scrll=0;
props="<font face="+font+" size="+size+" color="+fCol+"><B>";
props2="<font face="+font+" size="+size+" color="+dCol+"><B>";
Split=360/n;
Dsplit=360/D.length;
HandHeight=ClockHeight/4.5
HandWidth=ClockWidth/4.5
HandY=-7;
HandX=-2.5;
scrll=0;
step=0.06;
currStep=0;
y=new Array();x=new Array();Y=new Array();X=new Array();
for (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0}
Dy=new Array();Dx=new Array();DY=new Array();DX=new Array();
for (i=0; i < D.length; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0}
if (ns){
for (i=0; i < D.length; i++)
document.write('<layer name="nsDate'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props2+D[i]+'</font></center></layer>');
for (i=0; i < n; i++)
document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center>'+props+Face[i]+'</font></center></layer>');
for (i=0; i < S.length; i++)
document.write('<layer name=nsSeconds'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>');
for (i=0; i < M.length; i++)
document.write('<layer name=nsMinutes'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>');
for (i=0; i < H.length; i++)
document.write('<layer name=nsHours'+i+' top=0 left=0 width=15 height=15><font face=Arial size=3 color='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>');
}
if (ie){
document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < D.length; i++)
document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props2+D[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < n; i++)
document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+a+';text-align:center">'+props+Face[i]+'</B></font></div>');
document.write('</div></div>');
document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < H.length; i++)
document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>');
document.write('</div></div>');
document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < M.length; i++)
document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>');
document.write('</div></div>')
document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position:relative">');
for (i=0; i < S.length; i++)
document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size:16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>');
document.write('</div></div>')
}
(ns)?window.captureEvents(Event.MOUSEMOVE):0;
function Mouse(evnt){
ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY;
xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX;
}
(ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse;
function ClockAndAssign(){
time = new Date ();
secs = time.getSeconds();
sec = -1.57 + Math.PI * secs/30;
mins = time.getMinutes();
min = -1.57 + Math.PI * mins/30;
hr = time.getHours();
hrs = -1.575 + Math.PI * hr/6+Math.PI*parseInt(time.getMinutes())/360;
if (ie){
Od.style.top=window.document.body.scrollTop;
Of.style.top=window.document.body.scrollTop;
Oh.style.top=window.document.body.scrollTop;
Om.style.top=window.document.body.scrollTop;
Os.style.top=window.document.body.scrollTop;
}
for (i=0; i < n; i++){
 var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style;
 F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll;
 F.left=x[i] + ClockWidth*Math.cos(-1.0471 + i*Split*Math.PI/180);
 }
for (i=0; i < H.length; i++){
 var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style;
 HL.top=y[i]+HandY+(i*HandHeight)*Math.sin(hrs)+scrll;
 HL.left=x[i]+HandX+(i*HandWidth)*Math.cos(hrs);
 }
for (i=0; i < M.length; i++){
 var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style;
 ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll;
 ML.left=x[i]+HandX+(i*HandWidth)*Math.cos(min);
 }
for (i=0; i < S.length; i++){
 var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style;
 SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(sec)+scrll;
 SL.left=x[i]+HandX+(i*HandWidth)*Math.cos(sec);
 }
for (i=0; i < D.length; i++){
 var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style;
 DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll;
 DL.left=Dx[i] + ClockWidth*1.5*Math.cos(currStep+i*Dsplit*Math.PI/180);
 }
currStep-=step;
}
function Delay(){
scrll=(ns)?window.pageYOffset:0;
Dy[0]=Math.round(DY[0]+=((ymouse)-DY[0])*speed);
Dx[0]=Math.round(DX[0]+=((xmouse)-DX[0])*speed);
for (i=1; i < D.length; i++){
Dy[i]=Math.round(DY[i]+=(Dy[i-1]-DY[i])*speed);
Dx[i]=Math.round(DX[i]+=(Dx[i-1]-DX[i])*speed);
}
y[0]=Math.round(Y[0]+=((ymouse)-Y[0])*speed);
x[0]=Math.round(X[0]+=((xmouse)-X[0])*speed);
for (i=1; i < n; i++){
y[i]=Math.round(Y[i]+=(y[i-1]-Y[i])*speed);
x[i]=Math.round(X[i]+=(x[i-1]-X[i])*speed);
}
ClockAndAssign();
setTimeout('Delay()',20);
}
if (ns||ie)window.onload=Delay;
</SCRIPT>
<BR><BR><BR><BR><BR><BR><BR><BR><BR><FONT color=blue>Olha que show.
</FONT size=20 Color=red><BR>Não sei quem bolou esse código de htm, mas se eu muito não me engano deve ter dado um bocado de trabalho</BODY></HTML>




















Link para o comentário
Compartilhar em outros sites

  • 0

AGORA É MINHA VEZ DE COLOCAR ALGUM NÉ...

Visualizando o código fonte de alguma página

<html>

<head>

<meta name="GENERATOR" content="Microsoft FrontPage 5.0">

<meta name="ProgId" content="FrontPage.Editor.Document">

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

<title>Nova pagina 1</title>

</head>

<body>

<html>

<head>

<script LANGUAGE="JavaScript1.1">

<!--

// Script by Geek Brasil 

// http://www.geekbrasil.com.br

function OpenNewWindow(Nome_URL){

  newwn = window.open('view-source:'+Nome_URL,'Sourcering')

}

// -->

</SCRIPT>

<title>[ Geek Brasil ] Webmasters

__________________________________________________________</title>

</head>

<body  topmargin="0" leftmargin="0">

<p align="center"><strong><font face="Verdana" color="#000000" size="3"><br>

DHTML </font></strong>

<p align="center"><strong><font face="Verdana" color="#000000" size="3">Ver

código fonte de outro site</font></strong>

<p align="center" style="margin-left: 20; margin-right: 20"><font face="Verdana"><strong><small><br>

Aí galera!!! sinistro ai......é só você digitar o página e pronto, mas sem

redirecionador......</small></strong></font></p>

<p align="center" style="margin-left: 20; margin-right: 20"><strong>

<font face="Verdana" style="font-size: smaller">assim por exemplo</font></strong></p>

<p align="center" style="margin-left: 20; margin-right: 20"><strong>

<font face="Verdana" style="font-size: smaller">-- Renyo -- Scritp Brasil Forum</font></strong></p>

&nbsp;

<p>

<CENTER>

</p>

<FORM Name="View">

  <TABLE>

  <TR><TD><INPUT TYPE="text" NAME="Site" VALUE="http://www.renyoomassa.hpg.com.br" SIZE=50></TD></TR>

  <BR>

  <TR><TD Align=center><INPUT TYPE="button" NAME="OkButton" VALUE="OK"

        onClick="OpenNewWindow(View.Site.value)"></TD></TR>

  </TABLE>

</FORM>

</CENTER>

<P>

&nbsp;

<P>

&nbsp;

<P>

&nbsp;

<P>

&nbsp;

<p>&nbsp;

</html>

</body>

</html>

ph34r.gif

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.



  • Estatísticas dos Fóruns

    • Tópicos
      152,1k
    • Posts
      651,8k
×
×
  • Criar Novo...