Il codice Html-Javascript che crea il layer (è particolare questo javascript tramite il quale viene creato un cookie che fa aprire il layer per un n° stabilito di volte e che si auto-chiude in 7 secondi)
-----------------------------------
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
#intersticial {
position: absolute;
width: 300px;
height: 250px;
top: 50%;
left: 50%;
margin-left: -150px;
margin-top: -125px;
}
</style>
<script language="javascript" type="text/javascript">
function leggiCk(nome) {
var nameEQ = nome + '=';
var ca = document.cookie.split(';');
for(var i=0;i<ca.length;i++) {
var c=ca[i];
while(c.charAt(0)==' ') c=c.substring(1,c.length);
if(c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length);
}
return null;
}
function scriviCk(nome,valore) {
var date=new Date();
date.setTime(date.getTime()+86400000); // 24*60*60*1000 = 86400000 millisec.
document.cookie=nome+'='+valore+';expires='+date.t oGMTString()+'; path=/';
}
function hideit(){
document.getElementById("intersticial").style.visi bility="hidden";
}
var volte=leggiCk('popupLyr')
var num=(volte!=null)?parseInt(volte):1;
</script>
</head>
<body bgcolor="#000000">
<script type="text/javascript">
if(num<=2){
num++
var lCode='<div id="intersticial"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="300" height="250"><param name=movie value="300x250.swf"><param name=quality value=high>';
lCode+='<embed src="300x250.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="250"></embed>';
lCode+='</object></div>';
document.write(lCode)
scriviCk('popupLyr',num)
window.onload=function() {
setTimeout('hideit()',7000);
}
}
</script>
</body>
</html>
----------------------------------------------
Il problema è creare all'interno del' *.swf richiamato esternamente un bottone chiudi che chiuda il layer...NON l'animazione, NON una popup, NON un proiettore...Ma il layer esterno...![]()
![]()
![]()
Grazie...

Rispondi quotando