here it is
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]
Posted by turtle guy on June 21, 2002 at 3:34:9:
In Reply to: How to have How to have an image follow the mouse cursor posted by Melanie Hoyle on August 14, 2000 at 8:58:28:
coppy the body and look where they have the pictures where it says trail16 they put you pic there and from there on look at all the trailpics and put your pic in its place and thats all you have to do. if you have any questions email me
<!-- Elastic Bullets - INSTALLATION INSTRUCTIONS at www.wickedmoon.net/trail.html -->
<!-- Elastic Bullets v1.2 by Philip Winston (pwinston@yahoo.com) (www.geocities.com/pwinston/ebullets) -->
<!-- Flower graphics by Jason Brown (www.wickedmoon.net/contact.html) (www.wickedmoon.net) -->
<div id="dot0" style="position: absolute; visibility: hidden; height: 19; width: 18;">
<img src="trail6.gif" height=19 width=18> </div>
<div id="dot1" style="position: absolute; height:19 ; width: 18;"> <img src="trail6.gif" height=19 width=18>
</div>
<div id="dot2" style="position: absolute; height: 19; width: 22;"> <img src="trail5.gif" height=19 width=22>
</div>
<div id="dot3" style="position: absolute; height: 22; width: 24;"> <img src="trail4.gif" height=22 width=24>
</div>
<div id="dot4" style="position: absolute; height: 26; width: 26;"> <img src="trail3.gif" height=26 width=26>
</div>
<div id="dot5" style="position: absolute; height: 34; width: 37;"> <img src="trail2.gif" height=34 width=37>
</div>
<div id="dot6" style="position: absolute; height: 48; width: 51;"> <img src="trail1.gif" height=48 width=51>
</div>
<script LANGUAGE="JavaScript">
<!-- hide code
var nDots = 7;
var Xpos = 0;
var Ypos = 0;
// fixed time step, no relation to real time
var DELTAT = .01;
// size of one spring in pixels
var SEGLEN = 10;
// spring constant, stiffness of springs
var SPRINGK = 10;
// all the physics is bogus, just picked stuff to
// make it look okay
var MASS = 1;
// Positive XGRAVITY pulls right, negative pulls left
// Positive YGRAVITY pulls down, negative up
var XGRAVITY = 0;
var YGRAVITY = 50;
// RESISTANCE determines a slowing force proportional to velocity
var RESISTANCE = 10;
// stopping criteria to prevent endless jittering
// doesn't work when sitting on bottom since floor
// doesn't push back so acceleration always as big
// as gravity
var STOPVEL = 0.1;
var STOPACC = 0.1;
var DOTSIZE = 11;
// BOUNCE is percent of velocity retained when
// bouncing off a wall
var BOUNCE = 0.75;
var isNetscape = navigator.appName=="Netscape";
// always on for now, could be played with to
// let dots fall to botton, get thrown, etc.
var followmouse = true;
var dots = new Array();
init();
function init()
{
var i = 0;
for (i = 0; i < nDots; i++) {
dots[i] = new dot(i);
}
if (!isNetscape) {
// I only know how to read the locations of the
// <LI> items in IE
//skip this for now
// setInitPositions(dots)
}
// set their positions
for (i = 0; i < nDots; i++) {
dots[i].obj.left = dots[i].X;
dots[i].obj.top = dots[i].Y;
}
if (isNetscape) {
// start right away since they are positioned
// at 0, 0
startanimate();
} else {
// let dots sit there for a few seconds
// since they're hiding on the real bullets
setTimeout("startanimate()", 100);
}
}
function dot(i)
{
this.X = Xpos;
this.Y = Ypos;
this.dx = 0;
this.dy = 0;
if (isNetsc
Follow Ups:
[ Follow Ups ] [ Post Followup ] [ Intranet eXchange ] [ IDM Home ]