Bonjour a tous jai un petiti probleme avec prototype:
background : function()
{
this.BG = document.createElement('div');
this.BG.className = 'BG';
Event.observe(this.BG,'click',this.close);
document.body.appendChild(this.BG)
},
open : function()
{
this.background();
},
close :function()
{
document.body.removeChild(this.BG);
},
japelle ma fonction open mais maleureusement quand je clique sur la div elle ne disparait pas jai limpression quil ne reconnait pas le this dans la fonction close...
qqun a une solution?
merci
vince