un JS apre la pop up con la funzione:
codice:
function lancia() {
var w = screen.width;
var h = screen.height;
if(w >= "1280"){
larghezza = 933;
altezza = 600;
}else{
larghezza = 700;
altezza = 450;
}
var x = Math.round(w / 2) - Math.round(larghezza / 2);
var y = Math.round(h / 2) - Math.round(altezza / 2);
finestra = window.open ('flash5.htm', null , 'left=' + x + ',screenX=' + x + ',top='
+ y + 'screenY=' + y +',width=' + larghezza + ',height=' + altezza, ',menubar=1,toolbar=1,location=1,directories=1' );
}
dove flash5.html e':
codice:
<html>
<head>
<title>prova</title>
</head>
<frameset rows="100%,*" framespacing="0" frameborder="no" border="0">
<frame SRC="main.htm" NAME="corpo" frameborder="0" border="no"
marginwidth="0" marginheight="0" scrolling="no">
<frame SRC="vuota.htm" NAME="vuoto" frameborder="0" border="no"
marginwidth="0" marginheight="0" scrolling="no">
</frameset>
<noframes>
Il tuo browser non supporta i frame e questa pagina ne fa uso.
</noframes>
</html>
e main.htm:
codice:
html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<title>LDF</title>
</head>
<body bgcolor="#ECE9D8" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0" scroll=no
onload="self.focus()">
<script language="JavaScript">
var dim = screen.width;
if(dim >= "1280"){
larghezza = 933;
altezza = 600;
}else{
larghezza = 700;
altezza = 450;
}
document.write ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '
+'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '
+'WIDTH=' + larghezza + ' HEIGHT=' + altezza + '> '
+'<PARAM NAME=movie VALUE="intro.swf"> '
+'<PARAM NAME=quality VALUE=high> '
+'<PARAM NAME=bgcolor VALUE=#ECE9D8> '
+'<PARAM NAME=menu VALUE=false> '
+'<EMBED src="intro.swf" quality=high menu=false bgcolor=#FFFFFF WIDTH='
+ larghezza + ' HEIGHT=' + altezza
+' TYPE="application/x-shockwave-flash" '
+'PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"> '
+'</EMBED></OBJECT>');
</script>
</body>
</html>
non vedo proprio cosa posso fare di meglio..eppure c'e' il barbatrucco...