Script Categories













Mouse and Cursor >>> Cursor Trail.

This script creates a dynamic message that follows your mouse.

Add the below code to the <body> section of your page:

<style>
.fifteenth {position:absolute;visibility:visible;top:-45px;font-size:12pt;font-family:Verdana;font-weight:bold;color:red;}
</style>
<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
var sixteenth,seventeenth;var eighteenth=17;var nineteenth=0;first3=24;var twentieth=' Your Message Here ';twentieth=twentieth.split('');var first2=new Array();
for (i=0;i<=twentieth.length-1;i++) {first2[i]=-60;}var second2=new Array();
for (i=0;i<=twentieth.length-1;i++) {second2[i]=-70;}second3=first3+6; third3=first3+second3; fourth3=first3+second3+third3; fifth3=fourth3/third3*first3; sixth3=third3*first3/12*second3; seventh3=first3+second3/fifth3-16*fourth3; eighth3=sixth3*(first3-5)/third3+fourth3; ninth3=eighth3/seventh3+first3*third3-fourth3;tenth3=(ninth3+first3/third3*fourth3+second3*fifth3)/sixth3+eighth3-ninth3-1;eleventh3=Math.floor(tenth3)   ;twelfth3=eleventh3-59;
function third2(fourth2){
sixteenth = (document.layers) ? fourth2.pageX : document.body.scrollLeft+event.clientX;seventeenth = (document.layers) ? fourth2.pageY : document.body.scrollTop+event.clientY;nineteenth=twelfth3;
}
function fifth2() {
if (nineteenth==twelfth3 && document.all) {
for (i=twentieth.length-twelfth3; i>=twelfth3; i--) {first2[i]=first2[i-twelfth3]+eighteenth;second2[i]=second2[i-twelfth3];}first2[0]=sixteenth+eighteenth;second2[0]=seventeenth;
for (i=0; i<twentieth.length-twelfth3; i++) {var sixth2 = eval('span'+(i)+'.style');sixth2.posLeft=first2[i];sixth2.posTop=second2[i];}}
else if (nineteenth==twelfth3 && document.layers) {
for (i=twentieth.length-twelfth3; i>=twelfth3; i--) {first2[i]=first2[i-twelfth3]+eighteenth;second2[i]=second2[i-twelfth3];}first2[0]=sixteenth+eighteenth;second2[0]=seventeenth;
for (i=0; i<twentieth.length-twelfth3; i++) {var sixth2 = eval('document.span'+i);sixth2.left=first2[i];sixth2.top=second2[i];}}var fifteenth3=setTimeout('fifth2()',27);}
for (i=0;i<=twentieth.length-twelfth3;i++) {document.write("<div id='span"+i+"' class='fifteenth'>");document.write(twentieth[i]);document.write('</div>');}
if (document.layers){document.captureEvents(Event.MOUSEMOVE);}document.onmousemove = third2;
window.onload=fifth2;
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).




©