clipped from: www.hachmeister.org   
Bild Popup Fenster genau auf Bildgröße

Typo3 Version: 3.5b4
Eingesendet von: Wolfgang Becker

Um das Popup Fenster der Funktion 'Klick-vergrößern' bei Bildern genau auf Bildgrösse zu bekommen, muss man folgenden Code in das Setup Feld des Templates eintragen:

tt_content.textpic.20{
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=white leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <A href="javascript:alert('This link contains javascript. Please visit the clip source to follow this link.');" target="_self"> | </A>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}

tt_content.image.20{
1.imageLinkWrap = 1
1.imageLinkWrap {
enable = 1
bodyTag = <BODY bgColor=white leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
wrap = <A href="javascript:alert('This link contains javascript. Please visit the clip source to follow this link.');" target="_self"> | </A>
JSwindow = 1
JSwindow.newWindow = 1
JSwindow.expand = 0,0
}
}

Dieses Skript stammt von 'BK' aus den Typo3 Forum.

Eine Ergänzung von Martin Joisten:
Wenn man

<BODY bgColor=white leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onBlur="self.close()">

für den BODY-Tag verwendet, wird das Popup Fenster geschlossen sobald es nicht mehr das aktive Fenster ist.

Zurück