Pink Poogle Toy Forum

The official community of Pink Poogle Toy
Main Site
NeoDex
It is currently Sun Dec 01, 2024 2:05 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: how do i make the "sparkles on click"?
PostPosted: Wed Sep 01, 2004 4:56 am 
PPT Baby
PPT Baby
User avatar

Posts: 71
Joined: Sun Aug 08, 2004 4:58 pm
Location: That Lil Isle
yea.. i would like to know the code for making this umm when u click on the mouse, you'll get "sparkles".


Image
set by.. Elurial!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 5:25 am 
Way Beyond Godly
Way Beyond Godly
User avatar

Posts: 6691
Joined: Tue Jun 01, 2004 5:55 am
Gender: Female
I'm not sure I understand..you mean like on a website if you click a link you get sparkles or something? Either way I couldn't help,but I'm curious as to what you mean..


Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 5:37 am 
PPT Baby
PPT Baby
User avatar

Posts: 71
Joined: Sun Aug 08, 2004 4:58 pm
Location: That Lil Isle
something like this.. goto http://www.luvatfirstsight.blogspot.com/
this blog does not belong to me so pls dont contact the owner. thanks


Image
set by.. Elurial!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 5:39 am 
Honorary Member
Honorary Member
User avatar

Posts: 3805
Joined: Mon May 31, 2004 4:03 am
Location: Waterloo, Canada
Oooh...that's hard, it's coding for the mouse pointer. You can check by viewing page sources.

Well, here's their coding:
Code:
<SCRIPT LANGUAGE="JavaScript1.2">
<!-- Begin
var ver  = navigator.appVersion;
var dom  = document.getElementById ? 1 : 0;
var ie5  = (ver.indexOf("MSIE 5") > -1 && dom) ? 1 : 0;
var n  = (document.layers);
var ie = (document.all);
var sparksAflyin = 0;
var totalSparks = 0;
var sparksOn = 1;
function initMouseEvents() {
document.onmousedown = mouseDown;
if (n) document.captureEvents(Event.MOUSEDOWN | Event.

MOUSEMOVE);
}
function mouseDown(e) {
if (sparksOn) {
var mousex = (n) ? e.pageX : event.x+document.body.scrollLeft;
var mousey = (n) ? e.pageY : event.y+document.body.scrollTop;
if (!sparksAflyin) {
for (var k = 0; k <= 6; k++)
   eval('SHOW("sDiv'+k+'")');
sparksAflyin = 1;
totalSparks = 0;
for(i = 0;i <= 6; i++)
eval('moveTo('+i+',0,'+mousex+','+mousey+')');
      }
   }
}
function moveTo(i,j, mousex, mousey){
if (j < eval('anim_'+i+'_x.length') ){
var tempx = eval('anim_'+i+'_x[j]+mousex');
var tempy = eval('anim_'+i+'_y[j]+mousey');
if (ie) {
if(tempy+30 > (document.body.offsetHeight+document.body.

scrollTop))
tempy = document.body.offsetHeight+document.body.scrollTop-30;
if(tempx+30 > (document.body.offsetWidth+document.body.

scrollLeft))
tempx = document.body.offsetWidth+document.body.scrollLeft-30;
eval('document.all.sDiv'+i+'.style.left = tempx;');
eval('document.all.sDiv'+i+'.style.top  = tempy;');
}
if (n) {
eval('document.layers.sDiv'+i+'.left = tempx;');
eval('document.layers.sDiv'+i+'.top  = tempy;');
}
j++;
//  timeout: 60 = fireworks speed, larger number = slower speed
    setTimeout("moveTo("+i+","+j+","+mousex+","+mousey+")",50)
}
else {
eval('HIDE("sDiv'+i+'")');
totalSparks++;
}
if (totalSparks == 7) {
sparksAflyin = 0;
totalSparks  = 0;
   }
}
function SHOW(divName){
if (document.all)
eval('document.all.'+divName+'.style.visibility = "visible";');
else if (document.layers)
eval('document.layers["'+divName+'"].visibility = "visible";');
}
function HIDE(divName){
if (document.all)
eval('document.all.'+divName+'.style.visibility = "hidden";');
else if (document.layers)
eval('document.layers["'+divName+'"].visibility = "hide";');
}
anim_0_x=new Array(20,20,10,0,0,0,0,0,0,0,0,0);
anim_0_y=new Array(-20,-40,-60,-80,-60,-40,-20,0,20,40,60,80);
anim_1_x=new Array(20,20,17,36,60,78,90,92,93,98,108,120,133,152,181);
anim_1_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);
anim_2_x=new Array(20,20,2,3,4,5,6,7,8,9,10,12,13,15,18);
anim_2_y=new Array(-20,-20,-33,-38,-38,-27,-2,25,51,84,113,141,162,212,253);
anim_3_x=new Array(-20,-20,-2,-1,7,10,18,35,60,102,94,94,93,97,108,111,117,127);
anim_3_y=new Array(-20,-25,-64,-89,-104,-150,-173,-197,-213,-199,-151,-101,-66,-17,27,87,140,189);
anim_4_x=new Array(-20,-20,-10,-39,-30,-69,-64,-138,-154,-200,-181,-209,-191,-207,-203,-213,-202,-221,-211);
anim_4_y=new Array(-20,-20,-28,-51,-79,-100,-135,-154,-193,-183,-149,-134,-89,-60,8,51,107,157,201);
anim_5_x=new Array(-20,-29,-51,-72,-105,-133,-164,-189,-209,-229,-247,-270,-279,-282,-283,-283,-285,-286,-288);
anim_5_y=new Array(-20,-55,-86,-116,-154,-183,-205,-217,-217,-198,-169,-120,-44,-8,40,87,144,190,248);
anim_6_x=new Array(-20,-20,-7,14,44,79,143,186,217,226,234,244,250,259,265,274);
anim_6_y=new Array(-20,-21,-72,-113,-139,-166,-188,-181,-126,-68,-3,54,134,187,215,257);
//  End -->
</script>

Be sure to have their permission to use it first, though. O_o


Image Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 6:05 am 
PPT Baby
PPT Baby
User avatar

Posts: 71
Joined: Sun Aug 08, 2004 4:58 pm
Location: That Lil Isle
ok thanks!

that's quite a long coding! haz.. i remember that i had gone to a website before that teaches how to do the "spark" thingy, but i didnt really went to take a good look cos i didnt know that i actually need it now. lol. ok thanks a lot!

i've got another qn.. what is the coding to make it that you cannot right click so that no one can copy or view the source of a webpage?


Image
set by.. Elurial!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 8:29 am 
Way Beyond Godly
Way Beyond Godly
User avatar

Posts: 6587
Joined: Mon May 31, 2004 4:21 am
Gender: Female
Google does wonders.

Try looking here: http://www.dynamicdrive.com/dynamicindex9/noright3.htm - if it's not what you want for, just google "no right click" - You'll be bound to find a code somewhere :)


Gone, forever.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 01, 2004 10:17 am 
Honorary Member
Honorary Member

Posts: 4363
Joined: Tue Jul 13, 2004 2:40 am
Location: Down Under
Gender: Female
try http://www.lissaexplains.com i'm pretty sure there's something about that there.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group