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

Wie gestern auf dem interessanten TUGLE-Treffen besprochen, treffen wir uns nächstes Mal wieder...
Montag, 22.02.2010, 19:00 Uhr Burg Giebichenstein Hochschule für Kunst und Design,...
Nach einer kleinen Pause findet im Dezember das nächste TUGLE-Treffen statt. Wir treffen uns...

TYPO3 NEWS

Packt Publishing has recently announced the Open Source Awards for 2010. TYPO3 is nominated for the Open Source CMS category
Security vulnerabilities have been discovered in third-party TYPO3 extensions "Commenting system Backend Module" (commentsbe), "Tiny Market" (hm_tinymarket), "Yet Another Calendar" (ke_yac), "The...
Dear community, Monday last week Hans J. Martin, Managing Director of e-netconsulting KG, Hamburg died at the age of 34 years by a tragical accident. He was co-founder of the TYPO3camp idea and...