Persönliche Werkzeuge

Vorlage:BildGrossZoom

Aus BogenWiki

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
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 = img.getBoundingClientRect();
+
     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]]