


|
Java Scripts
Javascript para Banner Máquina de Escrever 2
--------------------------------------------------------------------------------
Eu não sei como chamar isto... mas é exatamente igual ao Javascript para
Banner tipo Máquina de Escrever, so que tem um retrocesso. Esta é
basicamente a mesma coisa que a Máquina de escrever, exceto que ele se
apaga após a exibição de toda mensagem. Mas... é bastante não
profissional...
Se você quiser um script divertido você deve escolher este...
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
var current = 0
var x = 0
var speed = 100
var back = 20
var speed2 = 2000
var back2 = 1500
function initArray(n) {
this.length = n;
for (var i =1; i <= n; i++) {
this[i] = ' '
}
}
typ = new initArray(4)
typ[0]="This is Message 1"
typ[1]="Now it is Message 2"
typ[2]="No, do not say I have to do 3 messages"
typ[3]="Yea, this message, 4, is the last message (and it's long)"
function typewrite() {
var m = typ[current]
window.status = m.substring(0, x++)
if (x == m.length + 1) {
setTimeout("erase()", back2)
}
else {
setTimeout("typewrite()", speed)
}
}
function erase() {
var m = typ[current]
window.status = m.substring(0, x--)
if (x < 0) {
current++
setTimeout("typewrite()", speed2)
if (current > typ.length - 1) {
current = 0
}
}
else {
setTimeout("erase()", back)
}
}
typewrite()
//-->
</script>
ÍNDICE DOS SCRIPTS
Javascript tipo Exibição de Slide
--------------------------------------------------------------------------------
Você vai gostar deste aqui... é uma exibição de slide que mostra as
palavras. Eu garanto - você vai adorá-lo!!!! Você nunca viu este antes,
certo? Eu gostei muito dele. Melhor ainda é que ele pode ser
completamente personalizado. E funciona em todos os browsers que suporta
frames e Javascript.
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
i=0; a="";
sText=new Array(
"Tenho certeza que você vai gostar deste",
" Tenho certeza que você vai gostar deste!!!!",
"Eis aqui o script ",
"Não creio em guardar segredo ... compreende?");
j=sText.length;
function StartShow() {
nText=sText[i];
sTags='<body bgcolor="black"><center><table
border=0 height=100%><tr><td align="center"><strong><font
face="Arial" color="Bule" size=6>'
+ nText+ '</font></strong></td></tr></table></center></body>';
if (i == j) { parent.location="a.html" };
if (i < j) { parent.f1.location="JavaScript: parent.sTags" };
i++;
setTimeout("StartShow()",1000);
}
document.write("<frameset rows='100%,*' onLoad='StartShow()'
border=0><frame src='JavaScript:parent.a' name='f1'></frameset>");
// end hiding -->
</SCRIPT>
</HEAD>
<BODY TEXT="#FFCC00" BGCOLOR="#000000"
LINK="#0000EE" VLINK="#551A8B"
ALINK="#FF0000">
<BR> <FONT SIZE=+4></FONT>
<CENTER><FONT SIZE=+4>:-(Pare que você um browser que não
suporta
JavaScript.:-(</FONT></CENTER>
<CENTER> </CENTER>
<CENTER></CENTER>
<CENTER><FONT SIZE=+4><A
HREF="a.html">Clique Aqui para
continuar.</A></FONT></CENTER>
</BODY>
</HTML>
ÍNDICE DOS SCRIPTS
Texto em Forma de Disparo
--------------------------------------------------------------------------------
Você pode fazer o texto parecer como se eles estivessem sendo
“Disparados” da esquerda, letra por letra, exatamente outro lindo
adesivo. Mas, isto e´, Este é outro extravagante disparador de texto.
Eu gosto deste de qualquer forma.. é realmente legal
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
var text = "Este é um teste.";
var total_length = 120; // length of string+spaces
function doShoot(msg) {
var status_message = "";
var assembling = "";
window.status = status_message
var index = 0;
var location = 0, i;
// now shoot one letter at a time
for(i=0; i < msg.length; i++) { // moves through the message
for(j=total_length-status_message.length; j > -1;j--) {
// see how many spaces have to be added
assembling = " ";
for(var k=0; k < j; k++) {
assembling += " ";
}
assembling += msg.charAt(i);
window.status = status_message +assembling
}
status_message += assembling;
}
}
doShoot(text);
</SCRIPT>
ÍNDICE DOS SCRIPTS
Hover - Pairar o Mouse sobre o Texto
--------------------------------------------------------------------------------
Permite a você apenas sublinhar todos os links em sua webpage quando seu
mouse passa sobre ele. Só funciona com o IE 4.0. Quando você não tem,
existe um problema. Apenas uma observação - Isto não é Javascript é
CSS
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="Maurijones
Albuquerque">
<meta name="GENERATOR" content="Mozilla/4.5 [en] (Win98;
I) [Netscape]">
<title>CSS hover</title>
<STYLE TYPE="text/css">
<!--
A:link, A:visited { text-decoration: none }
A:hover { text-decoration: underline; color: none }
-->
</STYLE>
</head>
<body text="#C0C0C0" bgcolor="#000000"
link="#FFFF00" vlink="#FFCC00"
alink="#FF0000">
<a href="../index.html">Passe o mouse sobre este
texto</a>
</body>
</html>
ÍNDICE DOS SCRIPTS
PRÓXIMA
PAGINA
|