R
reflex
Hi,
i am using onmouse tooltip on my website. Under them i use iframe to
hide form elements if is tooltip above them. Everything works fine
only at firefox there is +-1sec "refresh" when tooltip function is
called and iframe is appended to the document.
CODE:
//create iframe element
var ifr = document.createElement('iframe');
// i try this to avoid "refreshing"
ifr.src = 'javascript:null';
ifr.style.position = "absolute";
ifr.style.border = 0;
ifr.border = 0;
ifr.id = lbl+'_ifr';
// position it under tooltip div
ifr.style.top = o.style.top;
ifr.style.left = o.style.left;
ifr.style.width = o.offsetWidth;
ifr.style.height = o.offsetHeight;
//append to the body
document.body.appendChild(ifr);
When i comment append method, function works fast in FF. I know that
FF is very slow with javascript but this is more then i expected.
Thx for help
i am using onmouse tooltip on my website. Under them i use iframe to
hide form elements if is tooltip above them. Everything works fine
only at firefox there is +-1sec "refresh" when tooltip function is
called and iframe is appended to the document.
CODE:
//create iframe element
var ifr = document.createElement('iframe');
// i try this to avoid "refreshing"
ifr.src = 'javascript:null';
ifr.style.position = "absolute";
ifr.style.border = 0;
ifr.border = 0;
ifr.id = lbl+'_ifr';
// position it under tooltip div
ifr.style.top = o.style.top;
ifr.style.left = o.style.left;
ifr.style.width = o.offsetWidth;
ifr.style.height = o.offsetHeight;
//append to the body
document.body.appendChild(ifr);
When i comment append method, function works fast in FF. I know that
FF is very slow with javascript but this is more then i expected.
Thx for help