Monday, 23 October 2017
MOUSE COORDINATES IN JAVA SCRIPT
--------------------------------------------------------------------------------------------------------------
mouse coordinates finder on website
https://chrome.google.com/webstore/detail/coordinates/bpflbjmbfccblbhlcmlgkajdpoiepmkd
Mouse Position - Chrome Web Store
18 Oct 2014 - View the coordinates of your mouse cursor. This extension will display the coordinatesin the upper right hand corner of your screen. Just press ...
--------------------------------------------------------------------------------------------------------------------------------------
java file block in google chromehttps://chrome.google.com/webstore/detail/scriptblock/hcdjknjpbnhdoabbngpmfekaecnpajba?hl=en
How to activate Java in the browser
How can I run or activate Java in the browser? ... Browser(s) Firefox, Internet Explorer, Safari. ... Internet Explorer (IE) has a new security feature, called ActiveX control blocking, to keep ActiveX controls, such as Java, up-to-date.
The JavaScript Source: Page Details: Mouse Coordinates
http://www.javascriptsource.com/page-details/mouse-coordinates.html
Paste this code into the BODY of your HTML document
--------------------------------------------------------------------------------------------------------------
<!-- ONE STEP TO INSTALL MOUSE COORDINATES:
1. Copy the
coding into the BODY of your HTML document
-->
<!-- STEP ONE: Paste this code into the BODY of
your HTML document -->
<BODY>
<form name="Show">
X <input type="text" name="MouseX" value="0" size="4"><br>
Y <input type="text" name="MouseY" value="0" size="4"><br>
</form>
<script language="JavaScript1.2">
<!-- Original:
CodeLifter.com (support@codelifter.com) -->
<!-- Web Site:
http://www.codelifter.com -->
<!-- This script and many more are available
free online at -->
<!-- The JavaScript Source!!
http://www.javascriptsource.com -->
<!-- Begin
var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
if (IE) { // grab the x-y pos.s if browser is IE
tempX = event.clientX + document.body.scrollLeft;
tempY = event.clientY + document.body.scrollTop;
}
else { //
grab the x-y pos.s if browser is NS
tempX = e.pageX;
tempY = e.pageY;
}
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}
document.Show.MouseX.value = tempX;
document.Show.MouseY.value = tempY;
return true;
}
// End
-->
</script>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts
provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.33 KB -->
----------------------------------------------------------------------------------------------------------------READ MOUSE SHORT CODE
----------------------------------------------------------------------------------------------------------------
<html>
<head>
<script>
function myFunction(e){
demo1.innerHTML = e.x;
demo2.innerHTML = e.y;
}
document.onmousemove = myFunction;
</script>
</head>
<body>
<button id="demo1">0</button>
<button id="demo2">0</button>
</body>
</html>
Read Mouse Coordinates Pointer Position Tutorial
http://www.developphp.com/video/JavaScript/Read-Mouse-Coordinates-Pointer-Position-Tutorial
--------------------------------------------------------------------------------------------------------------
<html>
<head>
<script>
function readMouseMove(e){
var result_x = document.getElementById('x_result');
var result_y = document.getElementById('y_result');
result_x.innerHTML = e.clientX;
result_y.innerHTML = e.clientY;
}
document.onmousemove = readMouseMove;
</script>
</head>
<body>
<h1>Document that reads
mouse movement</h1>
<h2 id="x_result">0</h2>
<h2 id="y_result">0</h2>
</body>
</html>
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment