Closed Thread Icon

Topic awaiting preservation: Porting from IE to Netscape Pages that link to <a href="https://ozoneasylum.com/backlink?for=8177" title="Pages that link to Topic awaiting preservation: Porting from IE to Netscape" rel="nofollow" >Topic awaiting preservation: Porting from IE to Netscape\

 
Author Thread
viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 05-22-2002 16:08

What are the instructions that I should use in NN4 and NN6 that do the same functions as these instructions, in IE?

- document.body.clientWidth
- document.body.clientHeight
- document.body.scrollLeft
- document.body.scrollTop
- xx.style.display="block"
- xx.style.top=0
- xx.style.left=0

"xx" is the name of an ID, from a <DIV> tag, and the style for it is:
#xx {position:absolute;z-index:1;left:0;top:1;width:1600;height:31;
clip:rect(0 1600 31 0);display:none;}

I'm asking all this because I have a code that uses these instructions and I can't make it work in NN4 or NN6 (actually, not even in Opera).
Thanks.

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 05-22-2002 16:41

well for: - document.body.clientWidth & - document.body.clientHeight it is:
window.innerWidth and window.innerHeight.

as for the xx.style.top and xx.style.left, NN4 won't recognize them. NN6 should

You access the div's in NN with document.layers["divName"] and in IE4 it is:
document.all["divName"]

Hope that is right and also that it helps.

Later,
C:\


~Binary is best~



[This message has been edited by CPrompt (edited 05-22-2002).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 05-22-2002 22:11

Replace the 'xx' in lines that start with it (the last three lines) with document.getElementById('xx')

viol
Maniac (V) Inmate

From: Charles River
Insane since: May 2002

posted posted 05-22-2002 23:56

Just found this: http://www.javascriptkit.com/javatutors/static.shtml


« BackwardsOnwards »

Show Forum Drop Down Menu