Salve,
ho un piccolo problemino con un javascript.
In pratica faccio aprire automaticamente una PopUp al caricamento di una pagina.
In questa popup ho inserito direttamente un file .swf
Ora il problema è che nel titolo della PopUp esce giustamente il nome del File. Io invece del nome del file, vorrei inserire un altro titolo.
Questo è il code:
codice:<!-- function maximizeWin() { window.moveTo(0, 0); window.resizeTo(screen.width, screen.height); } maximizeWin(); var siteWin = null; function launchSiteWin(URL, windowName, windowWidth, windowHeight, scrollbars) { var xposition = 400; var yposition = 300; if ((parseInt(navigator.appVersion) >= 4 )) { xposition = (screen.width - windowWidth) / 2; yposition = (screen.height - windowHeight) / 2; } if (!scrollbars) var scrollbars = 1; var args = "width=" + windowWidth + "," + "height=" + windowHeight + "," + "location=0," + "menubar=0," + "scrollbars=" + scrollbars + "," + "status=0," + "titlebar=0," + "hotkeys=0," + "screenx=" + xposition + "," // NN Only + "screeny=" + yposition + "," // NN Only + "left=" + xposition + "," // IE Only + "top=" + yposition; // IE Only if (siteWin != null && !siteWin.closed) { siteWin.close(); } siteWin = window.open(URL, windowName, args); siteWin.focus(); } launchSiteWin('file.swf', 'SiteWin', 798, 430); // -->

Rispondi quotando