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);
}
// ]]>[/quote]
[b]You can change the color of the [color=#FF0000]red[/color] part in the script..[/b][/spoiler]
[b]add this code to your css for removing the horizontal scrollbar in your profile:[/b]
[quote]/* REMOVE HORIZONTAL SCROLLBAR*/
body {
overflow-x: hidden;
}[/quote]
[b]Credits:[/b]
[spoiler]
[url=http://www.mf2fm.com/rv]http://www.mf2fm.com/rv[/url]
christiandelacruz08
the-cradle[/spoiler]
Last edited by aidenlive (2009-01-18 20:43:36)
I think this is better in Add-ons trend?
hehehe.. thanks for sharing...
Last edited by christiandelacruz09 (2009-04-10 20:02:26)
Say,how do ya change the colors of the sparkles?
Last edited by mariyela (2008-09-13 04:57:20)
thhxxx[/b][/align]
Say,how do ya change the colors of the sparkles?[/quote]
in this part
[quote]// <![CDATA[
var colour="[color=red][b]red[/b][/color]";
var sparkles=50;[/quote]
change the word [color=red][b]red[/b][/color] with your own color
hhehhe...
guys, in this portion:
[quote]// <![CDATA[
var colour="red";
var sparkles=[color=red][b]50[/b][/color];[/quote]
u can change the number of sparkles [color=red][b]50[/b][/color] to your own...
btw, thanks for sharing
thanks!