Codigos JavaScript para la barra de estado
La barra de estado es como el pie de la ventana de tu navegador de internet. Con estos codigos JavaScript gratis, podes crear varios efectos divertidos en la barra de estado.
Mensaje Que Titila
Un mensaje aparece y desaparece en la barra de estado del navegador.
Copia y pega dentro de las etiquetas <head></head>
<script language="JavaScript">
var yourwords = "ACA VA TU MENSAJE!";
var speed = 150;
var control = 1;function flash()
{if (control == 1){window.status=yourwords; control=0;}
else{window.status="";control=1;}
setTimeout("flash();",speed);} </script>
Muestra Las Coordenadas De Tu Cursor
Copia y pega dentro de las etiquetas <head></head>
<script language="javascript">
//Display Mouse coordinates- By Kous (kous@ihateclowns.com)
//Visit http://javascriptkit.com for this script and more
var where = ""; // which link
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;
}
else if (document.all){
xCoord = event.clientX;
yCoord = event.clientY;
}
else if (document.getElementById){
xCoord = e.clientX;
yCoord = e.clientY;
}
self.status = "X= "+ xCoord + " Y= " + yCoord;
}
document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
</script>
Mensaje Decifrado En La Barra De Estado
Hace que numeros se transformen en tu mensaje letra por letra.
La primera parte va dentro de las etiquetas <head></head>.
<!--Primera Parte Dentro de las etiquetas <head></head>-->
<script>
/*
Status Bar Decrypter v1.0 by Anarchos [http://i.am/Anarchos]
Featured on JavaScript Kit (http://javascriptkit.com)
For this and over 400+ free scripts, visit http://javascriptkit.com
*/
var data="0123456789";
//set to 1 if not decrypting, set to 0 if decrypting
var done=1;
function statusIn(text){
decrypt(text,2,1);
}
function statusOut(){
self.status='';
done=1;
}
//-------------------------\\
//decrypt(string, int, int)\\
//-------------------------\\
//
//text(string): the text to be decrypted on
//the status bar.
//
//max(int): the number of times a random string
//is displayed before the next character is
//'decrypted'.
//
//delay(int): the number of milliseconds between
//each display of a random string
//
//Example:
//decrypt('Enter my site.',10,10);
//
//text = 'Enter my site.' :: 'Enter my site.' is
//eventually decrypted
//
//max = 10 :: a different random string is dis-
//played 10 times before a new character is
//decrypted
function decrypt(text, max, delay){
if (done){
done = 0;
decrypt_helper(text, max, delay, 0, max);
}
}
function decrypt_helper(text, runs_left, delay, charvar, max){
if (!done){
runs_left = runs_left - 1;
var status = text.substring(0,charvar);
for(var current_char = charvar; current_char < text.length; current_char++){
status += data.charAt(Math.round(Math.random()*data.length));
}
window.status = status;
var rerun = "decrypt_helper('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
var new_char = charvar + 1;
var next_char = "decrypt_helper('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
if(runs_left > 0){
setTimeout(rerun, delay);
}
else{
if (charvar < text.length){
setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
}
else
{
done = 1;
}
}
}
}
</script>
<!--Primera Parte Dentro de las etiquetas <head></head>-->
<!--Segunda Parte-->
<!--ASI PONES UN LINK-->
<a href="http://www.el-webmaster.com" onmouseover="statusIn('Mensaje Aca');return true" onmouseout="statusOut();">Recursos Para Webmaster</a>
<!--Segunda Parte-->
Mensaje En Forma De Maquina De Escribir
Copia y pega dentro de las etiquetas <head></head>
<script>
<!-- Hide from old browsers
// Todo lo que tenes que hacer es escribir el mensaje que quieras en donde dice "message".
// No te olvides de poner este simbolo ^ despues de cada mensaje
// Si no pones el simbolo, el mensaje no se repetira
message = "Ejemplo^" +
"http://www.el-webmaster.com^" +
"Acordate del simbolito^" +
"Created by Michiel Steendam^" +
"Esto se va a repetir ahora ...^" +
"^"
scrollSpeed = 25
lineDelay = 1500
// No cambies nada abajo//
txt = ""
function scrollText(pos) {
if (message.charAt(pos) != '^') {
txt = txt + message.charAt(pos)
status = txt
pauze = scrollSpeed
}
else {
pauze = lineDelay
txt = ""
if (pos == message.length-1) pos = -1
}
pos++
setTimeout("scrollText('"+pos+"')",pauze)
}
// Unhide -->
scrollText(0)
</script>