Evony Guides and Help
Trik Forum - RuneScape Forum  
Register Forum Homepage Members Mark Forums Read


Trik Members: 34,705 | Total Posts: 134,006 | Total Threads: 25,847
Welcome to our newest member, ahr1mz.
Go Back   Trik Forum - RuneScape Forum > Trik > Trik Suggestions/Reports/Feedback/Help
Reload this Page Mouse Follower
Trik Suggestions/Reports/Feedback/Help Have suggestions on how we can make the site better? Anything gone wrong that we need to fix? Have some feedback for us? Tell us about it here. Need help on trik.com? Post it here!


Closed Thread
 
Thread Tools Display Modes
Mouse Follower
Old
  (#1)
Trikster is Offline
Lieutenant
Trikster is an unknown quantity at this point
 
Posts: 387
Join Date: Nov 2007
Location: Enterprise, Alabama
  Send a message via MSN to Trikster  
Default Mouse Follower - 02-14-2008, 02:14 PM

I love this thing. I used it on the site that I used to operate with halosniper. It is basically a 13 pixel long line that follows your mouse around the screen, until it meets up and then disappears. Here is the JS code for it:

HTML Code:
<!-- www.crath.tz4.com-
var num=12;//Number of dots!
var vel=11;//Speed!
var col=new Array('#000000','#FF0000','#9E0000');//Dot colours, min 2!
var stopafter=999; //Stop and clear after x secondS!
//Nothing needs altering past here....................
var MAy=0;
var MAx=0;
var py=0;
var px=0;
var angle=0;
var distance=0;
var rep;
var ry=0;
var rx=0;
var tmr=null;
var n4=(document.layers);
var n6=(document.getElementById&&!document.all);
var ie=(document.all);
var o6=(navigator.appName.indexOf("Opera") != -1)?true:false;
var _d=(n4||ie)?'document.':'document.getElementById("';
var _a=(n4||n6)?'':'all.';
var _r=(n6)?'")':'';
var _s=(n4)?'':'.style';
var v=(n4)?"show":"visible";
var put=false;
stopafter*=1000;
if (n4||n6){
window.captureEvents(Event.MOUSEMOVE);
function mouse1(e){
if (put) return false;
MAy = e.pageY-window.pageYOffset;
MAx = e.pageX;
}
if (n4) window.onMouseMove=mouse1;                              
else document.onmousemove=mouse1;
}
if (ie||o6){
function mouse2(){
if (put) return false;
MAy = (ie)?event.clientY:event.clientY-window.pageYOffset;
MAx = event.clientX;
}
document.onmousemove=mouse2;
}
if (n4){
for (inc=0; inc < num; inc++)
document.write('<layer name=dots'+inc+' top=0 left=0 width='+inc/3+' height='+inc/3+' bgcolor=#ffffff></layer>');
}
else{
if (ie&&!o6){
document.write("<div id='outer' style='position:absolute;top:0px;left:0px'>");
document.write("<div style='position:relative'>");
}
for (inc=0; inc < num; inc++)
document.write('<div id="dots'+inc+'" style="position:absolute;top:0px;left:0px;width:'+inc/3+';height:'+inc/3+';background:#ffffff;font-size:1">.</div>');
if (ie&&!o6) document.write("</div></div>");
}
function pos(){
h=(ie)?document.body.clientHeight:window.innerHeight-20;
w=(ie)?document.body.clientWidth:window.innerWidth-20;
ry=Math.round(Math.random()*h);
rx=Math.round(Math.random()*w);
rep=Math.round(Math.random()*3);
if (rep == 3)ry=0;
if (rep == 2)ry=h;
if (rep == 1)rx=0;
if (rep == 0)rx=w;
py=ry;
px=rx;
}
pos();
function followleader(){
sy=(!ie)?window.pageYOffset:0;
sx=(!ie)?window.pageXOffset:0;
if (ie) outer.style.top=document.body.scrollTop;
for (inc=0; inc < num; inc++){
randomcol=col[Math.floor(Math.random()*col.length)];
temp1=eval(_d+_a+"dots"+inc+_r+_s);
temp1.visibility=v;
if (inc < num-1){
temp2=eval(_d+_a+"dots"+(inc+1)+_r+_s);
temp1.top=temp2.top;
temp1.left=temp2.left
}
else{
temp1.top=py+sy;
temp1.left=px;
}
if (n4)temp1.bgColor=randomcol;
else temp1.background=randomcol;
}
}
function bomb(){
ay=MAy-py;
ax=MAx-px;
angle=Math.round(Math.atan2(ay,ax)*180/Math.PI);
if (angle < 0) angle += 360;
MAdy=py-MAy;
MAdx=px-MAx;
distance=Math.floor(Math.sqrt(MAdx*MAdx+MAdy*MAdy));
go_y = Math.round(vel*Math.sin(angle*Math.PI/180));
go_x = Math.round(vel*Math.cos(angle*Math.PI/180));
py+=go_y;
px+=go_x;
if (distance < vel) pos();
followleader();
tmr=setTimeout("bomb()",20);
}
bomb();
function dsbl(){
v=(n4)?"hide":"hidden";
put=true;
MAx=0;
MAy=0;
setTimeout('clearTimeout(tmr)',stopafter+100);
}
setTimeout('dsbl()',stopafter);
//-->
And an example of it: http://www.z15.invisionfree.com/antichaos



  
Share with Facebook
Re: Mouse Follower
Old
  (#2)
Steve is Offline
*****istrator
Steve is an unknown quantity at this point
 
Posts: 66
Join Date: Jan 2008
Location: Chicago, Illinois
  Send a message via MSN to Steve  
Default Re: Mouse Follower - 02-14-2008, 03:27 PM

No it's so useless. Get something on your computer if you really want it.


Need help? add Steve@trik.com or Steve@fagex.net
  
Share with Facebook
Re: Mouse Follower
Old
  (#3)
Sean is Offline
Major General
Sean is an unknown quantity at this point
 
Posts: 997
Join Date: Dec 2007
Location: ATLANTA, Georgia
  Send a message via MSN to Sean  
Default Re: Mouse Follower - 02-14-2008, 03:35 PM

It's sexy. I say add it.


sean-9721@hotmail.com

www.myspace.com/sean9721
  
Share with Facebook
Re: Mouse Follower
Old
  (#4)
halosniper is Offline
Field Marshal
halosniper is an unknown quantity at this point
 
Posts: 1,121
Join Date: Sep 2007
   
Default Re: Mouse Follower - 02-14-2008, 04:17 PM

yep i loved it btw ian want ur rank back on there??


respect to
soniclink
1-dub<-- great helper helped threw some crap and gave me some advice
zuloco
mt
#21
link
ds
i will never forget you guys or trik so please dont forget me
  
Share with Facebook
Re: Mouse Follower
Old
  (#5)
Trikster is Offline
Lieutenant
Trikster is an unknown quantity at this point
 
Posts: 387
Join Date: Nov 2007
Location: Enterprise, Alabama
  Send a message via MSN to Trikster  
Default Re: Mouse Follower - 02-14-2008, 05:00 PM

Nah, I really don't visit it all that much.



  
Share with Facebook
Re: Mouse Follower
Old
  (#6)
deltatsunami is Offline
Trik Legend...
deltatsunami is an unknown quantity at this point
 
Posts: 1,136
Join Date: Aug 2007
Location: San Jose, CA
  Send a message via AIM to deltatsunami Send a message via MSN to deltatsunami Send a message via Yahoo to deltatsunami Send a message via Skype™ to deltatsunami 
Default Re: Mouse Follower - 02-14-2008, 06:10 PM

don't, it will lag the client. this is just plain gay.


~MT

  
Share with Facebook
Re: Mouse Follower
Old
  (#7)
IdentityX is Offline
Private
IdentityX is an unknown quantity at this point
 
Posts: 43
Join Date: Feb 2008
   
Default Re: Mouse Follower - 02-14-2008, 06:23 PM

It might be a bit annoying to some people, but I think that you should make it so you can go to options then turn it off. I would personally like it.
  
Share with Facebook
Re: Mouse Follower
Old
  (#8)
iHomo is Offline
Private
iHomo is an unknown quantity at this point
 
Posts: 36
Join Date: Jan 2008
   
Default Re: Mouse Follower - 02-14-2008, 06:24 PM

We need something like on Wacom sites, It's like a lazer that emits from your mouse, and it goes behind your mouse, and disappears after like 3 seconds, it's the shit.


-=-=-I DON'T LIKE YOU-=-=-

  
Share with Facebook
Re: Mouse Follower
Old
  (#9)
Ben` is Offline
Captain
Ben` is an unknown quantity at this point
 
Posts: 627
Join Date: Jan 2008
Location: UK
  Send a message via MSN to Ben`  
Default Re: Mouse Follower - 02-14-2008, 06:31 PM

Quote:
Originally Posted by iHomo View Post
We need something like on Wacom sites, It's like a lazer that emits from your mouse, and it goes behind your mouse, and disappears after like 3 seconds, it's the shit.
g0t a link? :P
,
  
Share with Facebook
Re: Mouse Follower
Old
  (#10)
DS is Offline
$5+ Donor
DS is an unknown quantity at this point
 
Posts: 3,104
Join Date: Oct 2007
   
Default Re: Mouse Follower - 02-14-2008, 06:54 PM

No thanks.... it'll be annoying and i'll be too distracted by it =D
  
Share with Facebook
Re: Mouse Follower
Old
  (#11)
Simple is Offline
Field Marshal
Simple is an unknown quantity at this point
 
Posts: 1,316
Join Date: Sep 2007
Location: BOOM, WAT? BOOM.
   
Default Re: Mouse Follower - 02-15-2008, 07:54 AM

Ew, no thanks. I hate mouse followers :3



Surprisingly, this was on a video about escalators.
[url=http://www.rewards1.com/index.php?referrer_id=365251] [/
  
Share with Facebook
Re: Mouse Follower
Old
  (#12)
Svper is Offline
Banned
Banned from Trik.com.
Svper is on a distinguished road
 
Posts: 1,886
Join Date: May 2007
Location: I AM SVPERNAUT
  Send a message via MSN to Svper Send a message via Yahoo to Svper  
Default Re: Mouse Follower - 02-15-2008, 09:31 AM

Thats really gay I can tell.. You really don't know about websites that much... And why would we have that...
  
Share with Facebook
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off





======================================================================================== ---------------------------------------------------------------------------------------- ========================================================================================

Your Ad Here

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright © Trik.com