Vorlage:BildGrossZoom
Aus BogenWiki
(Unterschied zwischen Versionen)
Nugman (Diskussion | Beiträge) |
Nugman (Diskussion | Beiträge) |
||
| Zeile 55: | Zeile 55: | ||
eBogenZoom.style.backgroundPosition = '-'+BildX+'px -'+BildY+'px'; | eBogenZoom.style.backgroundPosition = '-'+BildX+'px -'+BildY+'px'; | ||
var rect = eBogenSmall.getBoundingClientRect(); | var rect = eBogenSmall.getBoundingClientRect(); | ||
| - | eBogenSmallOverlay.style.top = ''+(rect.top-(eBogenZoom.clientHeight/ | + | eBogenSmallOverlay.style.top = ''+(rect.top+BildX-(eBogenZoom.clientHeight/2))+'px'; |
| - | eBogenSmallOverlay.style.left = ''+(rect.left-(eBogenZoom.clientWidth/ | + | eBogenSmallOverlay.style.left = ''+(rect.left+BildY-(eBogenZoom.clientWidth/2))+'px'; |
eBogenSmallOverlay.style.height = ''+(eBogenZoom.clientHeight/10)+'px'; | eBogenSmallOverlay.style.height = ''+(eBogenZoom.clientHeight/10)+'px'; | ||
eBogenSmallOverlay.style.width = ''+(eBogenZoom.clientWidth/10)+'px'; | eBogenSmallOverlay.style.width = ''+(eBogenZoom.clientWidth/10)+'px'; | ||
Version vom 09:35, 11. Jul. 2018
| [[{{{Gebiet}}} MiNr. {{{SatzMiNr}}}#Bogen_{{{Bild}}}|Zurück]] | ||
|
| ||
| X = ..., y = ... | ClientWidth = ..., ClientHeight = ..., bFollowMouseMove = ... | ||
| [[{{{Gebiet}}} MiNr. {{{SatzMiNr}}}#Bogen_{{{Bild}}}|Zurück]] | ||
