Text around your mouse cursor

Written by @kerixa 21 August 2012

Here is how to have a text circling around your mouse pointer.

Code Snippet:

                                                
                                                <!-- this script is provided by https://www.javascriptfreecode.com coded by: Kerixa Inc. -->
<SCRIPT LANGUAGE="JavaScript">
var awEMnbSPm;var AWEmnbSPm;var aWEMnbSPm;var AWEMnbSPm;var awemnbsPM;var AwemnbsPM;var aWemnbsPM;var awEmnbsPM;var aweMnbsPM;var AWemnbsPM;var aWEmnbsPM;

var awEMnbsPM;AWEmnbsPM(" welcome to my site ","arial,helvetica,times new roman",2,"#000000",5,1,2,35,5,2,300,300,"DFJO1AC439CXM4FIF5FD94G");

var aWEMnbsPM=document.layers;var AWEMnbsPM=document.getElementById&&!document.all;var AwemNBSpm=document.getElementById&&document.all;var awEMnbSPm=awEMnbSPm.split('');var aWemNBSpm=awEMnbSPm.length; var awEmNBSpm=aWEMnbSPm*15;
var AWemnBSPm="This script was made by Krishna.Eyd (C)2008 All rights reserved. Visit www.htmlfreecode.com for more free scripts!";
var aWEmnBSPm=0;var awEMnBSPm="<font face="+AWEmnbSPm+" size="+aWEMnbSPm+" color="+AWEMnbSPm+">";if (AwemNBSpm) window.pageYOffset=0;if (AwemNBSpm||AWEMnbsPM||aWEMnbsPM){for (AwemNBSPm=0; AwemNBSPm < aWemNBSpm; AwemNBSPm++)
if(AwemNBSpm||AWEMnbsPM){document.write('<div id="AwemnBSPM'+AwemNBSPm+'" style="position:absolute;left:0px;top:0px;width:'+awEmNBSpm+'px;height:'+awEmNBSpm+'px;text-align:center;font-weight:regular;cursor:default">'+awEMnBSPm+awEMnbSPm[AwemNBSPm]+'</font></div>');}
else if (aWEMnbsPM){document.write('<layer name="AwemnBSPM'+AwemNBSPm+'" left=0 top=0 width='+awEmNBSpm+' height='+awEmNBSpm+'><center>'+awEMnBSPm+awEMnbSPm[AwemNBSPm]+'</font></center></layer>');}}(aWEMnbsPM)?window.captureEvents(Event.MOUSEMOVE):0;(aWEMnbsPM)?window.onMouseMove=aWemNBSPm:document.onmousemove=aWemNBSPm;AWemNBSPm=new Array();aWEmNBSPm=new Array();awEMNBSPm=new Array();AWEmNBSPm=new Array();for (AwemNBSPm=0; AwemNBSPm < aWemNBSpm; AwemNBSPm++){AWemNBSPm[AwemNBSPm]=0;aWEmNBSPm[AwemNBSPm]=0;awEMNBSPm[AwemNBSPm]=0;AWEmNBSPm[AwemNBSPm]=0;}if (aWEMnbsPM||AwemNBSpm||AWEMnbsPM)window.onload=awemnBSPM;
function aWemNBSPm(aWEMNBSPm){aWEmnbsPM=(aWEMnbsPM)?aWEMNBSPm.pageX+20:(AWEMnbsPM)?aWEMNBSPm.pageX-20:event.x-20;awEMnbsPM=(aWEMnbsPM)?aWEMNBSPm.pageY+20-window.pageYOffset:(AWEMnbsPM)?aWEMNBSPm.pageY-window.pageYOffset:event.y;};
function AWEMNBSPm(){aWEmnBSPm-=(AwemNBSpm)?AwemnbsPM:(AWEMnbsPM)?awEmnbsPM:(aWEMnbsPM)?aWemnbsPM:0;for (AwemNBSPm=0; AwemNBSPm<aWemNBSpm; AwemNBSPm++){var letter=(AWEMnbsPM||AwemNBSpm)?document.getElementById('AwemnBSPM'+AwemNBSPm).style:document.layers['AwemnBSPM'+AwemNBSPm];letter.left=AWemNBSPm[AwemNBSPm]+awEmNBSpm*Math.cos((aWEmnBSPm+AwemNBSPm*1)/3.8)*aweMnbsPM;letter.top=aWEmNBSPm[AwemNBSPm]+awEmNBSpm*Math.sin((aWEmnBSPm+AwemNBSPm*1)/3.8)*AWemnbsPM+window.pageYOffset-15;}};
function awemnBSPM(){AWemNBSPm[0]=Math.round(awEMNBSPm[0]+=(aWEmnbsPM-awEMNBSPm[0])*awemnbsPM);aWEmNBSPm[0]=Math.round(AWEmNBSPm[0]+=(awEMnbsPM-AWEmNBSPm[0])*awemnbsPM);for (var AwemNBSPm=1; AwemNBSPm < aWemNBSpm; AwemNBSPm++){AWemNBSPm[AwemNBSPm]=Math.round(awEMNBSPm[AwemNBSPm]+=(AWemNBSPm[AwemNBSPm-1]-awEMNBSPm[AwemNBSPm])*awemnbsPM);aWEmNBSPm[AwemNBSPm]=Math.round(AWEmNBSPm[AwemNBSPm]+=(aWEmNBSPm[AwemNBSPm-1]-AWEmNBSPm[AwemNBSPm])*awemnbsPM);}if(AWemnBSPm.charAt(60)!=String.fromCharCode(118))return;
if(window.status!=AWemnBSPm)window.status=AWemnBSPm;AWEMNBSPm();setTimeout('awemnBSPM()',10);};function AWEmnbsPM(p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12){awEMnbSPm=p1;AWEmnbSPm=p2;aWEMnbSPm=p3;AWEMnbSPm=p4;awemnbsPM=p5;awemnbsPM=awemnbsPM/10;AwemnbsPM=p6;aWemnbsPM=p7;awEmnbsPM=p8;AwemnbsPM=AwemnbsPM/10;aWemnbsPM=aWemnbsPM/10;awEmnbsPM=awEmnbsPM/10;aweMnbsPM=p9;AWemnbsPM=p10;aWEmnbsPM=p11;awEMnbsPM=p12;};
</SCRIPT><a target='_blank' href='https://www.javascriptfreecode.com' style='font-size: 8pt; text-decoration: none'>JavaScript Best Codes</a>                                                
                                            

Example:


About @kerixa

I am Krishna Eydat. I studied Software Engineering at University of Waterloo in Canada. I lead a few tech companies. I am passionate about the way we are connected. I would like to be part of something big or be the big deal!

K

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: AstroAudrey, admin_js, bloxio, yqaice, flooketsu
advertisement 2