Liebes Forum,
ich hatte die oben genannte Frage schon vor einem Monat gestellt - aber es scheint leider keiner zu wissen. Geht es mit Typo3Script? Ansonsten, in welcher PHP steht der Code zum PopUp-Fenster?
Hab mal ins Typo3.com Forum gepostet und bekam dass hier zurück ...
24-10-02 23:23:24
Author: Markus
My problem:
The popUp for click-enlarge of images is a short javascript statement. But where can I edit this section? My popup-windows should be centered on each monitor.
Thank you for helping me,
best regards, Markus
25-10-02 11:21:42
Author: Jan-Hendrik Heuing
Can't remember actualy. I think it was hard-coded. Otherwise, have a look at the image or textpic objects, there is some configuration for the popup in it, like bodytag and so on.
Otherwise, that would be a quite work around: Change your showpick to move that window onLoad to the middle of the screen. Does that work for you ?
jhh 25-10-02 23:27:35
Author: Markus
The workaround would be great, if it works ... my idea:
<script type="text/javascript">
var windows = null;
var popupURL = "pop.html";
function newWindow(mySite,myName,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
Fenster = window.open(mySite,myName,settings)
}
</script>
to call with:
onLoad="newWindow(popupURL,'popupName','200','200','no')
BUT:
Where can I edit the code of the popup-Window? Where can I insert this code statement?
Hoping for help,
Markus