Mike a écrit :
Hi,
Just for the heck of it, I tried out this code, and it does not work for my
situation on IE6. Works OK on FF and Opera.
so for your popup you just need :
truc = false;
function pop() {
if(!truc || truc.closed)
truc= window.open('','','width=700,height=500,resizable=1');
truc.onload = function() {
truc.document.getElementById('header').style.visibility='hidden';
truc.document.getElementById('footer').style.display='none';
truc.document.getElementById('middle').style.position='relative';
truc.document.getElementById('middle').style.top=0;
truc.document.getElementById('middle').style.left=0;
truc.document.getElementById('middle').style.marginTop=0;
truc.document.getElementById('middle').style.marginLeft=0;
}
truc.location = self.location;
truc.focus();
}
So I attempted to use your moveDiv function to translate the middle DIV to
the top-left corner of the popup.
Didn't work
You also can try to *delete* div 'header'
var H = truc.document.getElementById('header');
while(H.firstChild) H.remove(H.firstChild);
then to position 'middle' in relative with margin to 0
and, of course delete 'footer'