Need JS for Round moving text with mouse move in javascript

Posted by Ajay.Kalol under JavaScript on 7/8/2014 | Points: 10 | Views : 653 | Status : [Member] | Replies : 4
Hello,

I need JavsScript for Moving text in round with mouse move



Thanks

Ajay
ajaypatelfromsanthal.blogspot.in



Responses

Posted by: Vuyiswamb on: 7/8/2014 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
i have attached the example Project for you.

Let me know if it helps.
 Download source file

Thank you for posting at Dotnetfunda
[Administrator]

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Chakravarthi on: 7/9/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Ajay,

Follow the bellow code for moving text with mouse move.

<html>
<head>
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.0/jquery-ui.js"></script>
<script type="text/javascript">
$('body').mousemove(function (event) {
var posX = event.pageX + "px";
var posY = event.pageY + "px";
$("#mTxt").html("<label style='margin-left:" + posX + ";margin-top:" + posY + ";position:absolute;'>Thanks</label>");
});
</script>
</head>
<body>
<label id="mTxt"></label>
</body>
</html>


Hope this helps you.

Chakravarthi

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ajay.Kalol on: 7/9/2014 [Member] Starter | Points: 25

Up
0
Down
Hi Vuyiswamb

This is really good example. may I have more example if you gave...??

Ajay
ajaypatelfromsanthal.blogspot.in

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 7/9/2014 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
You can get other example http://www.jsmadeeasy.com/javascripts/cursor%20effects/list_test.asp

Thank you for posting at Dotnetfunda
[Administrator]

Ajay.Kalol, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response