Ciao , devo passare dei parametri a Flash e per fare ciò devo generare dinamicamente dei tags. Posto tutta la pagina che funziona correttamente con Firefox ma non va con IE. Qualcuno mi può aiutare?
HTML:
<!-- saved from url=(0013)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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>Stage</title>
<script language="JavaScript">
<!--
function writeParamsA(){
document.write('<param name="movie" value="Stage.swf"'+window.location.search+' />');
}
function writeParamsB(){
document.write('<embed src="Stage.swf'+window.location.search+'" loop="false" menu="false" quality="high" scale="noscale" salign="lt" bgcolor="#ffffff" width="1300" height="600" swLiveConnect=true id="Stage" name="Stage" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
}
//-->
</script>
</head>
<body bgcolor="#ffffff">
<script language="JavaScript">
<!--
var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Gestisce tutti i messaggi FSCommand in un filmato Flash
function Stage_DoFSCommand(command, args) {
var StageObj = isInternetExplorer ? document.all.Stage : document.Stage;
//
// Inserire il codice qui.
//
}
// Hook per Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<script language=\"VBScript\"\>\n');
document.write('On Error Resume Next\n');
document.write('Sub Stage_FSCommand(ByVal command, ByVal args)\n');
document.write(' Call Stage_DoFSCommand(command, args)\n');
document.write('End Sub\n');
document.write('</script\>\n');
}
//-->
</script>
<!--URL utilizzato nel filmato-->
<!--testo utilizzato nel filmato-->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" id="Stage" width="1300" height="600" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<script language="JavaScript">
<!--
writeParamsA();
//?currentUser=Andrea&taleName=favola&
//-->
</script>
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<script language="JavaScript">
<!--
writeParamsB();
//-->
</script>
</object>
</body>
</html>