A
ashie
i'm getting mad after this..
i have this code that goes well in firefox but not in explorer. the
code make a flash appear and do something and when i run it the flash
doesn't appear
[....] at the beginning of the html
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<TITLE>Forward Music Italy</TITLE>
<script language="JavaScript" type="text/javascript">
<!--
var temp = new Array;
var valoreLettoDalCookie=leggiCookie_s('flashCookie');
function scriviUno(){
document.write('<param name="movie" value="artisti-fl8.swf?
audiov='+leggiCookie_s('flashCookie')+'" />');
}
function scriviDue(){
document.write('<embed src="artisti-fl8.swf?
audiov='+leggiCookie_s('flashCookie')+'" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="mainMovie" width="393"
height="383" />');
}
function scriviCookie(nome, valore, durata, misura, percorso, dominio,
sicurezza){
alert("dio scrittore|"+nome+" "+valore+"|");
if(arguments.length < 4)return; var tempo = (misura == "giorni") ?
durata * 24 * 60 : durata;
var termine = new Date();
termine.setTime(termine.getTime() + (tempo * 60 * 1000));
document.cookie = nome + "!" + escape(valore) + "; expires="
+ termine.toGMTString() +
((percorso == null) ? "" : ("; path=" + percorso)) +
((dominio == null) ? "" : ("; domain=" + dominio)) +
((sicurezza == true) ? "; secure" : "");
}
function leggiCookie(nome){
var IE = navigator.appName.indexOf("Microsoft") != -1;
var filmato = IE ? window.mainMovie : window.document.mainMovie;
var stringa = unescape(document.cookie);
var inizio = stringa.indexOf(nome + "!");
if(inizio == -1)return
var fine = stringa.indexOf(";", inizio);
fine = (fine != -1) ? fine : stringa.length;
var valori = stringa.substring(inizio + nome.length + 1,
fine).split("|");
for(var i = 0; i < valori.length; i++){
temp = valori.split("=");
alert("dio lettore|"+temp[0]+"|=|"+temp[1]+"|");
filmato.SetVariable(temp[0], temp[1]);
}
}
function leggiCookie_s(nome){
var stringa = unescape(document.cookie);
var inizio = stringa.indexOf(nome + "!");
if(inizio == -1)return
var fine = stringa.indexOf(";", inizio);
fine = (fine != -1) ? fine : stringa.length;
var valori = stringa.substring(inizio + nome.length + 1,
fine).split("|");
for(var i = 0; i < valori.length; i++){
temp = valori.split("=");
alert("dio lettore222|"+temp[0]+"|=|"+temp[1]+"|");
return temp[1];
}
}
// -->
</script>
[...] later in the html part
<td colspan="3" rowspan="2"> <object classid="clsid27CDB6E-
AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="393"
height="383">
<script>scriviUno();</script>
<param name="quality" value="high">
<param name="wmode" value="transparent" />
<script>scriviDue();</script>
</object></td>
i have this code that goes well in firefox but not in explorer. the
code make a flash appear and do something and when i run it the flash
doesn't appear
[....] at the beginning of the html
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<TITLE>Forward Music Italy</TITLE>
<script language="JavaScript" type="text/javascript">
<!--
var temp = new Array;
var valoreLettoDalCookie=leggiCookie_s('flashCookie');
function scriviUno(){
document.write('<param name="movie" value="artisti-fl8.swf?
audiov='+leggiCookie_s('flashCookie')+'" />');
}
function scriviDue(){
document.write('<embed src="artisti-fl8.swf?
audiov='+leggiCookie_s('flashCookie')+'" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" name="mainMovie" width="393"
height="383" />');
}
function scriviCookie(nome, valore, durata, misura, percorso, dominio,
sicurezza){
alert("dio scrittore|"+nome+" "+valore+"|");
if(arguments.length < 4)return; var tempo = (misura == "giorni") ?
durata * 24 * 60 : durata;
var termine = new Date();
termine.setTime(termine.getTime() + (tempo * 60 * 1000));
document.cookie = nome + "!" + escape(valore) + "; expires="
+ termine.toGMTString() +
((percorso == null) ? "" : ("; path=" + percorso)) +
((dominio == null) ? "" : ("; domain=" + dominio)) +
((sicurezza == true) ? "; secure" : "");
}
function leggiCookie(nome){
var IE = navigator.appName.indexOf("Microsoft") != -1;
var filmato = IE ? window.mainMovie : window.document.mainMovie;
var stringa = unescape(document.cookie);
var inizio = stringa.indexOf(nome + "!");
if(inizio == -1)return
var fine = stringa.indexOf(";", inizio);
fine = (fine != -1) ? fine : stringa.length;
var valori = stringa.substring(inizio + nome.length + 1,
fine).split("|");
for(var i = 0; i < valori.length; i++){
temp = valori.split("=");
alert("dio lettore|"+temp[0]+"|=|"+temp[1]+"|");
filmato.SetVariable(temp[0], temp[1]);
}
}
function leggiCookie_s(nome){
var stringa = unescape(document.cookie);
var inizio = stringa.indexOf(nome + "!");
if(inizio == -1)return
var fine = stringa.indexOf(";", inizio);
fine = (fine != -1) ? fine : stringa.length;
var valori = stringa.substring(inizio + nome.length + 1,
fine).split("|");
for(var i = 0; i < valori.length; i++){
temp = valori.split("=");
alert("dio lettore222|"+temp[0]+"|=|"+temp[1]+"|");
return temp[1];
}
}
// -->
</script>
[...] later in the html part
<td colspan="3" rowspan="2"> <object classid="clsid27CDB6E-
AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="393"
height="383">
<script>scriviUno();</script>
<param name="quality" value="high">
<param name="wmode" value="transparent" />
<script>scriviDue();</script>
</object></td>