capisco...purtroppo la mia ignoranza totale del javascript e di flash mi rende difficile anche essere più preciso.
Questo è index.html
e poi ci sono i due script che vengono chiamati in causa, index.jscodice:<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Exploration Index</title> <script type="text/javascript" src="js/index.js"></script> <script type="text/javascript" src="js/swfobject.js"></script> <style type="text/css"> /* hide from ie on mac \*/ html { height: 100%; overflow: hidden; } #flashcontent { text-align: center; margin-top: 100px; } /* end hide */ body { height: 100%; padding: 0; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } </style> </head> <body bgcolor="#ffffff"> <div id="flashcontent"> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("index.swf?indextext=courses/en0600000000/launch.text.xml", "index", "800", "450", "8", "#FFFFFF"); so.write("flashcontent"); // ]]> </script> </div> </body> </html>
ed il secondo per l'embedding del contenuto flash è una vecchia versione (1.5) della classica libreria swfobject.codice:function launch(c1,c2,chapter) { var ref = "theme/cheetah.html"; var w = screen.width; var h = screen.height; //var c1 = "c1lang=en&c1id=en0900000000"; //var c2 = "c2lang=&c2id="; //var chapter = "chapter=1"; if (c1 == "blank") { alert("You must select a main course."); } else { var mywin = window.open(ref+"?"+c1+"&"+c2+"&"+chapter, "newwin", "status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1,width="+w+",height="+h); mywin.moveTo(0,0); } }
Grazie comunque della disponibilità![]()

Rispondi quotando