-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripture_small.html
executable file
·53 lines (35 loc) · 1.62 KB
/
scripture_small.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<html>
<head>
<script type="text/javascript" src="javascript/Zbrowse.js"></script>
<script type="text/javascript" src="javascript/Zprime.js"></script>
<script language="JavaScript1.2">
document.onmousedown = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) {
image_original_height_px = parent.parent.editor.document.getElementById('first_height').innerHTML;
image_original_width_px = parent.parent.editor.document.getElementById('first_width').innerHTML;
rate_to_increase_y = ((image_original_height_px-document.getElementById('pic').height)/document.getElementById('pic').height)*100;
rate_to_increase_x = ((image_original_width_px-document.getElementById('pic').width)/document.getElementById('pic').width)*100;
tempX = e.pageX;
tempY = e.pageY;
tempX = tempX + ((rate_to_increase_x*tempX)/100);
tempY = tempY + ((rate_to_increase_y*tempY)/100);
if (tempX < 0){tempX = 0;}
if (tempY < 0){tempY = 0;}
//parent.parent.frames['editor'].document.Show.MouseX.value = tempX;
//parent.parent.frames['editor'].document.Show.MouseY.value = tempY;
document.getElementById('mouseX').innerHTML= tempX;
document.getElementById('mouseY').innerHTML= tempY;
return true;
}
// End -->
</script>
</head>
<body style="cursor:crosshair;">
<div id="mouseX" name="mouseX" style="display:none;"></div>
<div id="mouseY" name="mouseY" style="display:none;"></div>
<img border="0" name="pic" id="pic" width = "100%" height = "100%">
<div id="highlight_strip" style = "background-color:yellow;height:5px;width:2%;font-size:5px;position:absolute;top:500px;left:5px;">
</body>
</html>