Logo der TYPO3 Usergruppe Leipzig

Shadowbox als onload-Event

Teilweise benötigt man eine Shadowbox, um eine Aktion auf einer Webseite beim Aufruf der Startseite anzuzeigen. Dazu bitte die Extension "and_shadowbox" installieren und manuell über TypoScript konfigurieren.

TypoScript
[globalVar = TSFE:id=1]
page.headerData.923 = TEXT 
page.headerData.923.value (
<link rel="stylesheet" href="typo3conf/ext/and_shadowbox/res/css/shadowbox.css" type="text/css" media="screen" />
<script src="typo3conf/ext/and_shadowbox/res/scripts/lib/yui-utilities.js" type="text/javascript"></script>
<script src="typo3conf/ext/and_shadowbox/res/scripts/adapter/shadowbox-yui.js" type="text/javascript"></script>
<script src="typo3conf/ext/and_shadowbox/res/scripts/shadowbox.js" type="text/javascript"></script>
<script type="text/javascript">

window.onload = function(){
    
    var options = {
        overlayOpacity:     0.8,
        autoplayMovies:     true,
        text:           {
                    cancel:     '',
                    loading:    '',   
                    close:      'Zur Webseite',
                    next:       '',
                    prev:       ''
                }
    };
    
    Shadowbox.init(options);

 
   // open a welcome message
    Shadowbox.open({
        title:      '',
        type:       'html',
        content:    '<a href="/aktion.html" target="_self"><img src="fileadmin/images/popup.jpg" width="798" height="614"  border="0" align="top" alt="" title="" /></a>',
        height:     614,
        width:      798
    });

};

</script>

)
[global]
Autor: Dierk Landmann | AND ADVERTISING

TUGLE TERMINE

das nächste TYPO3-Usergruppentreffen findet am 30.05.2011 um 19:00 Uhr im Horns-Erben...
Das erste TUGLE-Treffen 2011 findet am Montag, den 07.03.2011 um 19:00 Uhr in...
Wie gestern auf dem interessanten TUGLE-Treffen besprochen, treffen wir uns nächstes Mal bei...

TYPO3 NEWS

After an exciting 2011 we have meanwhile completed the first month of 2012. Just like probably everyone else we have some ideas for doing things better than in the past, and this includes...
The organizational structure of the TYPO3 Association isn't a proper fit anymore to the TYPO3 project's own internal structure, nor does it fit the size the project has become over time. A need for...
Security vulnerabilities have been discovered in third-party TYPO3 extensions: css_filelinks, terminal, beuserswitch, rtg_files, irfaq, skt_eurocalc, jftcaforms, bc_post2facebook, aeurltool,...