Vorlage:BildGrossZoom
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 47: | Zeile 47: | ||
e = e || window.event; | e = e || window.event; | ||
/*get the x and y positions of the image:*/ | /*get the x and y positions of the image:*/ | ||
| - | var a = | + | var a = eBogenSmall.getBoundingClientRect(); |
/*calculate the cursor's x and y coordinates, relative to the image:*/ | /*calculate the cursor's x and y coordinates, relative to the image:*/ | ||
var x = e.pageX - a.left; | var x = e.pageX - a.left; | ||
Version vom 22:13, 11. Jul. 2018
| [[{{{Gebiet}}} MiNr. {{{SatzMiNr}}}#Bogen_{{{Bild}}}|Zurück]] | ||
|
| ||
| X = ..., y = ... | ClientWidth = ..., ClientHeight = ..., bFollowMouseMove = ... | ||
| [[{{{Gebiet}}} MiNr. {{{SatzMiNr}}}#Bogen_{{{Bild}}}|Zurück]] | ||
