I think that klicking the X in the "popup" will call the "hidebox(id)" function of the popup.
js.
This function just hides the elements, instead of unloading. BAD script.
A first solution would be:
Replace
- Code: Select all
function hidebox(id){
if(w3c){
//if(currFb!=d.getElementById(id+'_b')){
d.getElementById(id+'_b').style.display='none';
d.getElementById(id+'_s').style.display='none';
//}
}}
with
- Code: Select all
function hidebox(id){
if(w3c){
//if(currFb!=d.getElementById(id+'_b')){
d.getElementById(id+'_b').style.display='none';
d.getElementById(id+'_s').style.display='none';
changecontent(id,'');
//}
}}
This will call the changecontent function at the end of the hide function, loading a new (empty) content.
