Pag 1 2 3 4 5
EMAIL ME
EMAIL GRATIS

 

Java Scripts

Hover que Funciona com o Netscape 



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

Permite a você apenas sublinhar um link em sua webpage quando seu mouse passa sobre ele - Mas funciona com o Netscape! 

Veja Código Fonte 
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
<meta name="Author" content="Gabriel"> 
<meta name="GENERATOR" content="Mozilla/4.5 [en] (Win98; I) [Netscape]"> 
<title>Hover Netscape</title> 
</head> 
<body text="#C0C0C0" bgcolor="#000000" link="#FFFF00" vlink="#FFCC00" alink="#FF0000"> 
<LAYER name="text" 
onmouseover="changeto1('http://jslibrary.phiberoptix.com','The Main Page','text')" 
onmouseout ="changefrom1('The Main Page','text')" > 
<FONT COLOR="#FF0000">The Main Page</FONT> 
</LAYER> 
<SCRIPT language="JavaScript1.2"> 


// Made By The Javascript Libary (Copyright) 1999 - 2000 
// Do not remove this note. Removing it will be considered stealing. 
// The Javascript Libary - http://jslibrary.phiberoptix.com 
// More online examples can be found there 

var color="red" 

function changeto(){ 

setTimeout(changeto1, "1"); 



function changeto1(link,text,name) { 

document.layers[name].document.write("<a href='"+link+"'>" 
+"<font color='"+color+"'>"+text+"</font></a> "); 

document.layers[name].document.close(); 





function changefrom(){ 

setTimeout(changefrom1, "1"); 





function changefrom1(text,name) { 

document.layers[name].document.write("<font color="+color+">"+text+"</font>"); 

document.layers[name].document.close(); 





function link(){ 





</SCRIPT> 

</body> 
</html> 
ÍNDICE DOS SCRIPTS 


Citação Randômica 



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

Este script pode imprimir uma citação randômica. Um grande rodapé, visto que você pode terminar bem com alguns comentários engenhosos. 
Veja Código Fonte 
<SCRIPT LANGUAGE="JavaScript"> 

// Keep the follwing line down when you use this script 
// Found at the Javascript Libary http://jslibrary.phiberoptix.com 
// More scripts are available there 


function makeArray(len) { 

for (var i = 0; i<len; i++) this[i] = null; 

this.length = len; 




//Array of quotes 


var quote = new makeArray(5); 

quote[0] = '\"Educação é ir para a universidade para aprender a expressar sua ignorância em termos científicos\"'; 

quote[1] = '\"Chance favors the prepared mind\"'; 

quote[2] = '\"I hate the idea of causes, and if I had to choose between betraying my country and betraying my friend, I hope I should have the guts to betray my country.\" -E.M. Forester'; 

quote[3] = '\"The only difference between bravery and stupidity is the outcome\"'; 

quote[4] = '\"One should never let a formal education get in the way of learning\" -Mark Twain'; 

//random number generator 



function rand(n) { 

seed = (0x015a4e35 * seed) % 0x7fffffff; 

return (seed >> 16) % n; 



var now = new Date() 

var seed = now.getTime() % 0xfffffff 

document.write(quote[rand(quote.length)]) 



</SCRIPT> 
ÍNDICE DOS SCRIPTS 





Caixa de Informação 



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

Este script pode lhe permitir ter uma caixa de texto, com o texto variando. 
Veja Código Fonte 
<CENTER> 
<FORM name="messages" onSubmit="return false"> 
<input type="text" name="field" size=73 value="" onFocus="self.status='This is a JavaScript info. field'; return true" 
onChange="nochange()"> 
</FORM> 
</CENTER> 


<SCRIPT LANGUAGE="JavaScript"> 

// Do not remove these comments when using the script 
// Made By The Javascript Libary 
// The Javascript Libary - http://jslibrary.phiberoptix.com 
// More online examples can be found there 

<!--- Begin 
var CurrentMsg = 'hello '; 
function update(msg) { 
var pad_str=""; 
n = msg.length; 
if(n<72) { 
pad = (73-n)/2; 
for(var i=0; i<pad; i++) { 
pad_str+=" "; 


CurrentMsg = pad_str + msg; 
document.messages.field.value = CurrentMsg; 
clearTimeout(timer); 
timer = setTimeout("idleMsg()",4000); 

function MakeArray(n) { 
this.length=n; 
for(var i = 1; i<= n; i++) { 
this[i] = ""; 

return(this); 

var index = 1; 
var notice_num = 6; 
var notices = new MakeArray(notice_num); 
notices[1] = "Barra de Informações"; 
notices[2] = "Este é um script realmente legal que pode exibir muitas informações"; 
notices[3] = "Numa homepage de maneira atraente !"; 
notices[4] = "Este script é ralmente legal"; 
notices[5] = "Então o que está esperando ?"; 
notices[6] = "Pegue o script !!"; 

var timer = setTimeout('idleMsg()',4000); 
function nochange() { 
document.messages.field.value = CurrentMsg; 

function idleMsg() { 
update(notices[index++]); 
if(index>notice_num) { 
index=1; 


// End --> 


</SCRIPT> 
ÍNDICE DOS SCRIPTS 



Caixa de Informação 2 



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

Este script pode lhe permitir ter uma caixa de texto, com o texto variando, só que isto é na barra de status 
Veja Código Fonte 
<script LANGUAGE="JavaScript"> 

// Keep the follwing line down when you use this script 
// Found at the Javascript Libary http://jslibrary.phiberoptix.com 
// More scripts are available there 

<!--- Begin 
var CurrentMsg = 'hello '; 
function update(msg) { 
var pad_str=""; 
n = msg.length; 
if(n<72) { 
pad = (73-n)/2; 
for(var i=0; i<pad; i++) { 
pad_str+=" "; 


CurrentMsg = pad_str + msg; 
window.status = CurrentMsg; 
clearTimeout(timer); 
timer = setTimeout("idleMsg()",4000); 

function MakeArray(n) { 
this.length=n; 
for(var i = 1; i<= n; i++) { 
this[i] = ""; 

return(this); 

var index = 1; 
var notice_num = 6; 
var notices = new MakeArray(notice_num); 
notices[1] = "Barra de Informações"; 
notices[2] = "Este é um script realmente legal que pode exibir muitas informações"; 
notices[3] = "Numa homepage de maneira atraente !"; 
notices[4] = "Este script é ralmente legal"; 
notices[5] = "Então o que está esperando ?"; 
notices[6] = "Pegue o script !!"; 

var timer = setTimeout('idleMsg()',4000); 
function nochange() { 
window.status = CurrentMsg; 
return true; 

function idleMsg() { 
update(notices[index++]); 
if(index>notice_num) { 
index=1; 


// End --> 


</script> 
Dê Uma Olhada na Barra de Status 
ÍNDICE DOS SCRIPTS 




Caixa de Informação 3 



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

Este script pode lhe permitir ter uma caixa de texto, com o texto variando, só que isto é feito com HTML Dinâmico. Fora os três scripts de "caixa de Informação ", você não concorda que este é o melhor? Esta script é destinado a deslumbrar e entreter suas visitantes, então por que não adiciona este no script? 
Veja Código Fonte 
<body text="#C0C0C0" bgcolor="#000000" link="#FFFF00" vlink="#FFCC00" alink="#FF0000"> 
<br> 
<LAYER ID="messages" > 
<CENTER><font color="blue">Espere por favor ....</font></center> 
</layer> 
<br> 

<SCRIPT LANGUAGE="JavaScript"> 



<!--- Begin 

// Do not remove these comments when using the script 
// Made By The Javascript Libary 
// The Javascript Libary - http://jslibrary.phiberoptix.com 
// More online examples can be found there 

var CurrentMsg = 'hello '; 
function update(msg) { 
var pad_str=""; 
n = msg.length; 
if(n<72) { 
pad = (73-n)/2; 
for(var i=0; i<pad; i++) { 
pad_str+=" "; 


CurrentMsg = pad_str + msg; 
document.messages.document.write("<CENTER><font color='blue'>"+CurrentMsg+" </font> " + "</center> "); 
document.messages.document.close(); 
clearTimeout(timer); 
timer = setTimeout("idleMsg()",4000); 

function MakeArray(n) { 
this.length=n; 
for(var i = 1; i<= n; i++) { 
this[i] = ""; 

return(this); 

var index = 1; 
var notice_num = 6; 
var notices = new MakeArray(notice_num); 
notices[1] = "Barra de Informações"; 
notices[2] = "Este é um script realmente legal que pode exibir muitas informações"; 
notices[3] = "Numa homepage de maneira atraente !"; 
notices[4] = "Este script é ralmente legal"; 
notices[5] = "Então o que está esperando ?"; 
notices[6] = "Pegue o script !!"; 

var timer = setTimeout('idleMsg()',4000); 
function nochange() { 
document.messages.document.write("<CENTER><font color='blue'>"+CurrentMsg+" </font> " + "</center> "); 
document.messages.document.close(); 
return true; 

function idleMsg() { 
update(notices[index++]); 
if(index>notice_num) { 
index=1; 


// End --> 


</SCRIPT> 
ÍNDICE DOS SCRIPTS 

PRÓXIMA PAGINA