Mam taki skrypt , do emisjii floorada , niestety problem w tym , że na IE się wysypuje.
Ktoś ma jakieś pomysły
var wysokosc=200;
var szerokosc=750;
document.write('<div id="MN_fa_container" style="width:100%;bottom:-'+wysokosc+'px;position:fixed;height:'+wysokosc+'px;margin:0px;padding:0px;z-index:10000;"><div style="position:relative;margin:auto;width:'+szerokosc+'px;"><div><div style="width:200px;left:550px;position:absolute;top:-20px;text-align:right;"><span onclick="jMN_close_fa();" style="font-size:16px;cursor:pointer;font-weight:bold;font-family:arial;">Zamknij X</span></div></div>');
document.write("<SCR"+"IPT language=\"javascript1.2\" type=\"text/javascript\">\ndocument.write('<scr'+'ipt src=\"http://my.adocean.pl/_'+(new Date()).getTime()+'/ad.js?id=QKJLl_vpmKwDcdmCI6Qp1K6scGtBpAO69kUAQTSS22b.77/redir=\" language=\"javascript\"></scr'+'ipt>');\n<"+"/SCR"+"IPT>");
document.write('</div></div>');
document.body.appendChild(document.getElementById('MN_fa_container'));
function wyjedz(){
var i=0;
var petla=setInterval(function(){
if(i <= wysokosc){
document.getElementById('MN_fa_container').style.bottom=(i-wysokosc)+'px';
i+=5;
}else{
document.getElementById('MN_fa_container').style.bottom='0px';
this.clearInterval();
}
},25);
}
function MN_close_fa(){
document.getElementById('MN_fa_container').style.display="none";
}
wyjedz();