1 ELASTIC BAND TRAIL CURSOR!!! Sat Jan 31, 2009 11:03 am
danilodeleon
Administrative Team
DESCRIPTION: This script creates an "elastic band" trail for your mouse. Fling it around and watch it bounce back.
COMPATIBLE: this script is visible only in IE5.
CREDITS: dynamicdrive for javascripting,, my webhost AND TO ME... :D
PREVIEW:http://danzkhietorz09.fileave.com/dancesz.html
steps to follow:
STEP 1: AD THIS CODE TO YOUR CSS EXTENSION FILE
AFTER SAVING IT..
STEP 2:
AD THIS CODE TO YOUR JS FILE EXTENSION
legend:
black == you can change it to any color you want
url of ball image here==place the url of your image url here
example only
IMAGE BALL:
but you can provide... another ball just like it
THEN SAVE.. THATS IT YOUR FINISH..
@ADMIN.. please update the smilies... the YAHOO MESSENGER SMILIES APPEARS ON THE CODE.. this might confused on the one who will use this script.
tnx
COMPATIBLE: this script is visible only in IE5.
CREDITS: dynamicdrive for javascripting,, my webhost AND TO ME... :D
PREVIEW:http://danzkhietorz09.fileave.com/dancesz.html
steps to follow:
STEP 1: AD THIS CODE TO YOUR CSS EXTENSION FILE
- Spoiler:
- <STYLE>
v\:* {
BEHAVIOR: url(#default#VML)
}
</STYLE>
AFTER SAVING IT..
STEP 2:
AD THIS CODE TO YOUR JS FILE EXTENSION
- Spoiler:
- //Elastic band trail
//By Elastic_Ouille_script@GHindoute.net
//Thanks to MP1515 <MP1515@aramette.net> for all Mathematical model
//TOS for script: http://www.dynamicdrive.com/dynamicindex13/tos.txt
//For this script and more, visit http://www.dynamicdrive.com
var stringcolor="black" //SPECIFY STRING COLOR
var ballsrc="URL OF BALL IMAGE HERE" //SPECIFY URL TO BALL IMAGE
///No editing required below this line//////////////////////////
if (document.all&&window.print){
document.write('<IMG id=Om style="LEFT: -10px; POSITION: absolute" src="'+ballsrc+'">')
ddx=0;ddy=0;PX=0;PY=0;xm=0;ym=0
OmW=Om.width/2;OmH=Om.height/2
}
function Ouille(){
x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100))
y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100))
Om.style.left=x-OmW
Om.style.top=y-OmH
elastoc.to=x+","+y
http://elastoc.strokecolor="RGB("+x+","+(2*y)+",0)"
elastoc.strokecolor=stringcolor
setTimeout("Ouille()",1)
}
function momouse(){
xm=window.event.x+5
ym=window.event.y+document.body.scrollTop+15
elastoc.from=xm+","+ym
}
if(document.all&&window.print){
code="<v:line id=elastoc style='LEFT:0;POSITION:absolute;TOP:0' strokeweight='1.5pt'></v:line>"} else {
code="<v:group style='LEFT:-10;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' coordsize='21600,21600'><v:line id=elastoc style='LEFT:0;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' strokeweight='1.5pt'></v:line></v:group>"}
if(document.all&&window.print){
document.body.insertAdjacentHTML("afterBegin",code)
document.onmousemove=momouse
Ouille()
}
legend:
black == you can change it to any color you want
url of ball image here==place the url of your image url here
example only
IMAGE BALL:
but you can provide... another ball just like it
THEN SAVE.. THATS IT YOUR FINISH..
@ADMIN.. please update the smilies... the YAHOO MESSENGER SMILIES APPEARS ON THE CODE.. this might confused on the one who will use this script.
tnx