View Single Post
  #2 (permalink)  
Old Nov 7th, 2007, 13:46
Lucleonhart Lucleonhart is offline
Up'n'Coming Member
Join Date: Jun 2007
Location: Germany
Age: 23
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Please, HELP!!!

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.
Reply With Quote