|
Author |
Message |
cutielicouso9
HCG Freak
> : I love HCG!
Posts : 129
Age : 27
Location : milky way :)
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: sparkling cursor Sat Sep 20, 2008 6:46 pm |
|
|
CREDITS TO: http://www.mf2fm.com/rv christiandelacruz08 the-cradle friendstertalk REQUiREMENTS: 1. fileave or ripway account 2. common sense 3. knowledge about creating js files PREVIEW INTERNET EXPLORER PREVIEW paste in your external js - Code:
-
// <![CDATA[ var colour="red"; var sparkles=50;
/**************************** * Tinkerbell Magic Sparkle * * (c) 2005 mf2fm web-design * * http://www.mf2fm.com/rv * *christiandelacruz08* * 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(); ye)?e.pageY:event.y+sdown; xe)?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); } // ]]> [OPTIONAL]add this code to your css for removing the horizontal scrollbar in your profile - Code:
-
/* REMOVE HORIZONTAL SCROLLBAR*/ body { overflow-x: hidden; }
hoped this help
Last edited by cutielicouso9 on Sun Sep 21, 2008 12:02 pm; edited 1 time in total
|
|
|
|
rexon
Promoter
> : thx my bunny~~~
Posts : 1573
Age : 100
Location : soul society
Country :
Reg-Date : 2008-09-17
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sat Sep 20, 2008 6:51 pm |
|
|
wow.. cool.. thx fer sharing.. but does d sparkle image can be changed into another kind sparkle??
|
|
|
|
cutielicouso9
HCG Freak
> : I love HCG!
Posts : 129
Age : 27
Location : milky way :)
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
|
|
|
elmar09
HCG Addict
> : ...
Posts : 398
Age : 33
Location : in your house
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sat Sep 20, 2008 8:05 pm |
|
|
wooohh....so nice!!!thanks for sharing it! ! !
|
|
|
|
daryl808
HCG Wizard
> : I love HCG!
Posts : 65
Age : 31
Location : MARGOSATUBIG
Reg-Date : 2008-09-13
Forum Warning :
Contribution :
|
Subject: weee Sun Sep 21, 2008 9:31 am |
|
|
|
|
|
|
PWN463
Promoter
> : Addicted to Left 4 Dead
Posts : 1056
Age : 33
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sun Sep 21, 2008 10:15 am |
|
|
|
|
|
|
digitalpimp
HCG Member
> : I love HCG!
Posts : 24
Reg-Date : 2008-09-24
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sat Sep 27, 2008 11:12 am |
|
|
|
|
|
|
alaz05
HCG Member
> : I love HCG!
Posts : 12
Age : 31
Location : TONDO MNILA
Mood : Flirty
Country :
Reg-Date : 2008-10-12
Forum Warning :
Contribution :
|
Subject: hindi ko maintndhan Wed Oct 22, 2008 8:21 pm |
|
|
|
|
|
|
ella_gumamela06
HCG Freak
> : I love HCG!
Posts : 119
Age : 28
Location : beside Ü..
Reg-Date : 2008-10-11
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Thu Oct 23, 2008 7:03 pm |
|
|
|
|
|
|
chocochipcookie
HCG Freak
> : hungwy:)
Posts : 130
Age : 29
Mood : Bored
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Mon Oct 27, 2008 9:27 pm |
|
|
yeay! tnx for sharing, cutielicouso9! finally I did it! juz keep on trying guys.
|
|
|
|
shin06che
Guest
> : I love HCG!
Posts : 6
Age : 31
Location : cavite.
Country :
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Wed Oct 29, 2008 8:39 am |
|
|
its not werking ammmf huhuh :/
|
|
|
|
yehsreh
Promoter
> : 큰소리ቯ
Posts : 9679
Age : 84
Location : jupiter
Mood : Excited
Country :
Reg-Date : 2008-10-07
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Wed Oct 29, 2008 12:36 pm |
|
|
|
|
|
|
ILoveHCG
Guest
> : I love HCG!
Posts : 2
Age : 33
Location : Pinas.
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
|
|
|
chii:]
HCG Freak
> : PWAHAHAHA>:)
Posts : 135
Age : 28
Location : parañaque
Mood : Bitchy
Reg-Date : 2008-10-01
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Fri Oct 31, 2008 3:54 pm |
|
|
|
|
|
|
gie24
Guest
> : I love HCG!
Posts : 8
Age : 32
Location : Makati,Metro Manila
Mood : Alone
Country :
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Fri Oct 31, 2008 8:57 pm |
|
|
|
|
|
|
j301988
HCG Member
> : I love HCG!
Posts : 22
Age : 35
Location : Dumaguete City
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Fri Oct 31, 2008 9:29 pm |
|
|
Didn't work for me either
|
|
|
|
cutielicouso9
HCG Freak
> : I love HCG!
Posts : 129
Age : 27
Location : milky way :)
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sun Nov 02, 2008 11:51 am |
|
|
|
|
|
|
Pawem
Promoter
> : i miss this :)
Posts : 3903
Age : 30
Location : Britannia
Mood : Energetic
Country :
Reg-Date : 2008-09-19
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sun Nov 02, 2008 12:20 pm |
|
|
you change the color of the sparkles by editing this part var colour="red"; var sparkles=50; ayt?
|
|
|
|
j301988
HCG Member
> : I love HCG!
Posts : 22
Age : 35
Location : Dumaguete City
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sun Nov 02, 2008 11:25 pm |
|
|
Yeah, I surely did. I saved the code as a js file, uploaded it at ripway and pasted it in my "who i want to meet section" every process was done exactly as it should but then the code still failed me. Is it because I have a customized cursor?
|
|
|
|
exorcizm14
Guest
> : I love HCG!
Posts : 1
Reg-Date : 2008-10-06
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Mon Nov 03, 2008 9:02 pm |
|
|
its not working.
miss, pede gawa ka na lng ng premade na ganito? pls... request lng.
|
|
|
|
maeh
HCG Addict
> : I love HCG!
Posts : 265
Age : 32
Location : at the end of the rainbow:)
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Mon Nov 10, 2008 9:11 pm |
|
|
sorry to say this but it's NOT working!
|
|
|
|
janbuniel
HCG Geek
> : im always here (online@ 11:00 in noon until 11:30 pm in the afternun still online (:!
Posts : 925
Age : 28
Location : HAWALLI [KUWAIT]
Mood : Gloomy
Reg-Date : 2008-11-05
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Sun Nov 16, 2008 5:29 pm |
|
|
i dun understand can yOu gave us ready to paste? or not can you give the url of the external js coz i cant seem to find it i lyk it but dun how to make one
|
|
|
|
0daven0
HCG Maniac
> : reminiscing xD
Posts : 4430
Age : 31
Location : here
Reg-Date : 2008-10-06
Forum Warning :
Contribution :
|
|
|
|
slaevolohr
HCG Geek
> : i'm' so tired of WAITING!!!!
Posts : 908
Age : 32
Location : Iloilo
Mood : Dark
Reg-Date : 2008-10-27
Forum Warning :
Contribution :
|
Subject: Re: sparkling cursor Mon Nov 17, 2008 8:05 pm |
|
|
|
|
|
|
khim.agustin
Guest
> : I love HCG!
Posts : 6
Age : 34
Location : tarlac
Reg-Date : 2008-09-13
Forum Warning :
Contribution :
|
|
|
|
Sponsored content
|
Subject: Re: sparkling cursor |
|
|
|
|
|
|
|