tramite questo codice inglobo un file swf, e vorrei cambiare la variabile hh (altezza del file swf) tramite la funzione altezza(200) passata dal file swf, mi fà l'alert giusto ma non funz, come si fà?![]()
Codice PHP:<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>test</title>
<script language="JavaScript">
<!--
function altezza(h) {
alert(h);
hh=200;
}
//-->
</script>
</head>
<body bgcolor="#ffffff">
<script type="text/javascript" src="flashobject.js"></script>
<table width="100%" height="232" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<div id="flashcontent" class="azur">Per la corretta visione di questo sito è necessario
il plug-in macromedia® flash player
<a href="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&Lang=Italian" class="lnk">scaricalo
ora</a> </div>
<script type="text/javascript">
var fo = new FlashObject("home.swf", "test", "1000", hh, "8", "#cccccc");
fo.write("flashcontent");
</script>
</td>
</tr>
</table>
</body>
</html>

Rispondi quotando