Scrolling in Netscape layers
I am using netscape's layers to simulate the tag in Internet Explorer, but the problem is that I cannot find a way to let the layers scroll down a page when I assign the layer a .
Also, is there any way to force the layer to fall in place on the page so the tag is effective in placing the layer? or, is there a command within the layer tag instead of setting that would center the layer? I am trying to place the layer just to the right of some 100x50 px pictures that, when combined with the layer, are centered.
I hope this makes sense: if somebody could help me, I'd appreciate it. My biggest concern is getting the layer to scroll; the centering is secondary. I've tried having the page contained within the layer be a frameset so it would scroll, but frames don't work within layers.
Thank you!
Michael
Vincent Puglia posted this at 16:19 — 7th July 2000.
They have: 634 posts
Joined: Dec 1999
Hi Michael,
Let me preface this with: I don't use "" -- it's been deprecated by the W3 org (in favor of ""), which means future netscape browsers will not support it. However...
I've always assumed scrollbars are automatically put in if the source were larger than the viewable area. Am I wrong? Did you try setting the view area with clip.top, bottom, right, left? Or using "" instead?
Regarding the centering, you can use the PageX, PageY attributes and window.innerHeight, innerWidth (divide by 2) to calculate the center of the document and then position your layer accordingly. I posted the code at Javascript City in answer to someone's question.
Vinny
Where the world once stood
the blades of grass cut me still
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.