Ciao, ho un problemino con js. Ho una pagina html (index.html) con un filmato flash (intro.swf) con un pulsante che mi apre un'altra pagina (full.html) in pop-up. Nel pulsante c'è il seguente codice:
on (release) {
getURL ("javascript:fullScreen('full.html')");
}
e nella pagina html ho il seguente codice:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="it" lang="it">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>index.html</title>
<script src="swfobject.js" language="javascript"></script>
<style type="text/css">
html,body{
padding-left: 120px;
margin: 0;
}
</style>
</head>
<script language="JavaScript">
function fullScreen(theURL) {
window.open(theURL, '', 'fullscreen=yes, scrollbars=yes');
}
</script>
<body bgcolor="#000000">
<div id="flashcontent">
Link
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("intro.swf", "sotester", "300", "500", "9", "#000");
so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
so.write("flashcontent");
// ]]>
</script>
</body>
</html>
purtroppo lo script non funziona. Dove sbaglio? grazie

Rispondi quotando