Crucesita del Cursor

Ver el tema anterior Ver el tema siguiente Ir abajo

Crucesita del Cursor

Mensaje por Black cat el Miér Jul 02, 2008 11:36 pm

aca dejo un codigo de unas cruces que va dejando el cursor...
al tercer rebnglon sale entre comillas un codigo de un color.. ese es el color cyan.. ahi solo kambian el code del color ke kieran.. es solo para foroactivo
y se pone asi:
Panel de Admin, General, Indice, mensajes de indice
ya ahi lo ponen talñ y como se los dejo

Código:
<script type="text/javascript">
// <![CDATA[
var colour="#06FCE2";
var sparkles=50;

/****************************
* Tinkerbell Magic Sparkle *
* (c) 2005 mf2fm web-design *
* http://www.mf2fm.com/rv *
* DON''T EDIT BELOW THIS BOX *
****************************/
var x=ox=400;
var y=oy=300;
var swide=800;
var shigh=600;
var sleft=sdown=0;
var tiny=new Array();
var star=new Array();
var starv=new Array();
var starx=new Array();
var stary=new Array();
var tinyx=new Array();
var tinyy=new Array();
var tinyv=new Array();

window.onload=function() { if (document.getElementById) {
var i, rats, rlef, rdow;
for (var i=0; i<sparkles; i++) {
var rats=createDiv(3, 3);
rats.style.visibility="hidden";
document.body.appendChild(tiny[i]=rats);
starv[i]=0;
tinyv[i]=0;
var rats=createDiv(5, 5);
rats.style.backgroundColor="transparent";
rats.style.visibility="hidden";
var rlef=createDiv(1, 5);
var rdow=createDiv(5, 1);
rats.appendChild(rlef);
rats.appendChild(rdow);
rlef.style.top="2px";
rlef.style.left="0px";
rdow.style.top="0px";
rdow.style.left="2px";
document.body.appendChild(star[i]=rats);
}
set_width();
sparkle();
}}

function sparkle() {
var c;
if (x!=ox || y!=oy) {
ox=x;
oy=y;
for (c=0; c<sparkles; c++) if (!starv[c]) {
star[c].style.left=(starx[c]=x)+"px";
star[c].style.top=(stary[c]=y)+"px";
star[c].style.clip="rect(0px, 5px, 5px, 0px)";
star[c].style.visibility="visible";
starv[c]=50;
break;
}
}
for (c=0; c<sparkles; c++) {
if (starv[c]) update_star(c);
if (tinyv[c]) update_tiny(c);
}
setTimeout("sparkle()", 40);
}

function update_star(i) {
if (--starv[i]==25) star[i].style.clip="rect(1px, 4px, 4px, 1px)";
if (starv[i]) {
stary[i]+=1+Math.random()*3;
if (stary[i]<shigh+sdown) {
star[i].style.top=stary[i]+"px";
starx[i]+=(i%5-2)/5;
star[i].style.left=starx[i]+"px";
}
else {
star[i].style.visibility="hidden";
starv[i]=0;
return;
}
}
else {
tinyv[i]=50;
tiny[i].style.top=(tinyy[i]=stary[i])+"px";
tiny[i].style.left=(tinyx[i]=starx[i])+"px";
tiny[i].style.width="2px";
tiny[i].style.height="2px";
star[i].style.visibility="hidden";
tiny[i].style.visibility="visible"
}
}

function update_tiny(i) {
if (--tinyv[i]==25) {
tiny[i].style.width="1px";
tiny[i].style.height="1px";
}
if (tinyv[i]) {
tinyy[i]+=1+Math.random()*3;
if (tinyy[i]<shigh+sdown) {
tiny[i].style.top=tinyy[i]+"px";
tinyx[i]+=(i%5-2)/5;
tiny[i].style.left=tinyx[i]+"px";
}
else {
tiny[i].style.visibility="hidden";
tinyv[i]=0;
return;
}
}
else tiny[i].style.visibility="hidden";
}

document.onmousemove=mouse;
function mouse(e) {
set_scroll();
y=(e)?e.pageY:event.y+sdown;
x=(e)?e.pageX:event.x+sleft;
}

function set_scroll() {
if (typeof(self.pageYOffset)=="number") {
sdown=self.pageYOffset;
sleft=self.pageXOffset;
}
else if (document.body.scrollTop || document.body.scrollLeft) {
sdown=document.body.scrollTop;
sleft=document.body.scrollLeft;
}
else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {
sleft=document.documentElement.scrollLeft;
sdown=document.documentElement.scrollTop;
}
else {
sdown=0;
sleft=0;
}
}

window.onresize=set_width;
function set_width() {
if (typeof(self.innerWidth)=="number") {
swide=self.innerWidth;
shigh=self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientWidth) {
swide=document.documentElement.clientWidth;
shigh=document.documentElement.clientHeight;
}
else if (document.body.clientWidth) {
swide=document.body.clientWidth;
shigh=document.body.clientHeight;
}
}

function createDiv(height, width) {
var div=document.createElement("div");
div.style.position="absolute";
div.style.height=height+"px";
div.style.width=width+"px";
div.style.overflow="hidden";
div.style.backgroundColor=colour;
return (div);
}
// ]]>
</script>

Black cat
Nuevo
Nuevo

Género:Masculino
Mensajes : 7
Inscrito el : 28 Jun 2008
Edad : 23
Localización : por hay
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://illiweb.com/fa/empty.gif
Coins : 120 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Luxe el Jue Jul 03, 2008 12:13 am

Se agradece el code ^^

seguro a alguien le servirá, muchas gracias =)

::-:::....: ~ Montaje Stars Wars ~ :...:::-::


::-:::.....: ~ Samlpe Music ~ :.....:::-::


~CREW: DreamArt~

Luxe
Mod Global
Mod Global

Género:Masculino
Mensajes : 937
Inscrito el : 09 Jun 2008
Edad : 15
Localización : en una casa con puertas y ventanas.
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://i42.servimg.com/u/f42/12/02/09/04/learni10.png
Coins : 0 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Masterchief971 el Jue Jul 03, 2008 4:32 am

Gracias ^^

Que les parece si lo probamos? xD

Muchas Gracias Hitsu =D




Mi tiempo esta contado, pronto le digo adios a todo esto...

Masterchief971
Admin
Admin

Género:Masculino
Mensajes : 2213
Inscrito el : 31 Oct 2007
Edad : 15
Localización : S.S
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://i42.servimg.com/u/f42/12/02/09/04/good_d10.png
Coins : 350 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por .:[ YeZ ]:. el Jue Jul 03, 2008 7:16 am

Muchas gracias!!! andaba como loco buscando eso xD ^^
Spiritomb VS Spiritomb


.:[L]:.

.:[ YeZ ]:.
New Designer
New Designer

Género:Masculino
Mensajes : 134
Inscrito el : 01 Jul 2008
Edad : 15
Localización : Más allá del Vacío
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://illiweb.com/fa/empty.gif
Coins : 0 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Piunx el Jue Jul 03, 2008 10:45 am

Masterchief971 escribió:Gracias ^^

Que les parece si lo probamos? xD


+1 Very Happy

Piunx
Profesional
Profesional

Género:Masculino
Mensajes : 786
Inscrito el : 07 Abr 2008
Edad : 15
Localización : San Vicente del Raspeig, Alicante, España
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://illiweb.com/fa/empty.gif
Coins : 0 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por ~//F ork y! el Jue Jul 03, 2008 3:51 pm

Muchas gracias ^^^ hay que probarlo =P
Elegance


Gracias hitsu te quedo de 10


-.< Crew >.-

~//F ork y!
Moderador
Moderador

Género:Masculino
Mensajes : 589
Inscrito el : 28 Jun 2008
Edad : 18
Localización : miCAsa
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://img511.imageshack.us/img511/161/initiatedesigneref2.png
Coins : 165 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Masterchief971 el Sáb Jul 05, 2008 5:00 am

Ya lo puse, algun problema en Administración ^^

Gracias por el script =D

Muchas Gracias Hitsu =D




Mi tiempo esta contado, pronto le digo adios a todo esto...

Masterchief971
Admin
Admin

Género:Masculino
Mensajes : 2213
Inscrito el : 31 Oct 2007
Edad : 15
Localización : S.S
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://i42.servimg.com/u/f42/12/02/09/04/good_d10.png
Coins : 350 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Javi10 el Jue Jul 10, 2008 4:10 pm

graciaas men se agradece

Javi10
Empezando
Empezando

Género:Masculino
Mensajes : 44
Inscrito el : 05 Jul 2008
Edad : 13
Localización : Venezuela
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://illiweb.com/fa/empty.gif
Coins : 0 Coins

Volver arriba Ir abajo

Re: Crucesita del Cursor

Mensaje por Black cat el Vie Jul 25, 2008 6:08 am

no hay de que

Black cat
Nuevo
Nuevo

Género:Masculino
Mensajes : 7
Inscrito el : 28 Jun 2008
Edad : 23
Localización : por hay
Duelos de Crew : http://illiweb.com/fa/empty.gif
Rank Design : http://illiweb.com/fa/empty.gif
Coins : 120 Coins

Volver arriba Ir abajo

Ver el tema anterior Ver el tema siguiente Volver arriba


Permiso de este foro:
No puedes responder a temas en este foro.