Hallo zusammen
ich habe folgenden Javascript Code bekommen und muß das in unsere Seite einbauen.
Ich habe leider keine Ahnung von Javascript und bekomme es ein fach nicht hin.
Ich habe es im Seitenlayout unter Javascript eingefügt aber es passiert nichts.
Es sollte eigentlich ein neues Fenster aufgehen und eine Werbung anzeigen.
Vieleicht kann mir jemand erklären was ich machen muß ?
Die Datei liegt im Typolight root verzeichnis
Code:
<script language="JavaScript" type="text/JavaScript">
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function popupPage2(b,h) {
// Position berechnen ::::::::::::::::::::::::::::
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);
if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}
x = (sbreite-b)/2;
y = (shoehe-h)/2;
// dateiname
var page = "Banner_LeitzLiga_de_DACH.swf";
windowprops = "width="+ b +",height="+ h +",left=" + x +",top=" + y + "scrollbars=no,menubars=no,toolbars=no,resizable=yes";
window.open(page,"Titeltext",windowprops);
}
</script>
gruß
Michael
Lesezeichen