Buongiorno ragazzi! Sono un paio di giorni che sto impazzando per risolvere questo problema:
Ho una pagina html chiamata index.html di cui vi riporto l'HTML, che contiene un swf.
Nell'swf c'è un tasto che quando lo clicco mi apre un poupup tramite la funzione centra.
I parametri che passo alla funzione tramite l'actionscript di flash sono:
javascript:centra('pag15.swf', 'test0', 624,483)
e fin quì tutto bene.
Ora, nella pagina index.htm, come potete vedere, c'è un link avanti, e vorrei che quando
clicco su avanti il poupup si chiuda in automatico e si apra come pagina top il link
gest_p10.htm
Sto impazzendo vi prego aiutatemi, sono davvero nei casini.
Grazie.
<html>
<head>
<title>Index</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="javascript">
function centra(url, name, width, height) {
if (document.all) {
var x = window.screenLeft;
var y = window.screenTop;
var w = window.document.body.offsetWidth;
var h = window.document.body.offsetHeight;
}
else {
var x = window.screenX;
var y = window.screenY;
var w = window.outerWidth;
var h = window.outerHeight;
}
var cntx = x + Math.round((w - width) / 2);
var cnty = y + Math.round((h - height) / 2);
window.open (url, name, 'left=' + cntx + ',screenX=' + cntx + ',top=' + cnty + 'screenY=' + cnty +',width=' +
width + ',resize=no,height=' + height);
}
</script>
</head>
<body bgcolor="#0099FF" text="#000000">
Avanti</p>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="624" height="483">
<param name=movie value="pag14.swf">
<param name=quality value=high>
<embed src="pag14.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="624" height="483">
</embed>
</object> </p>
</body>
</html>