Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

layers problem in netscape

Status
Not open for further replies.

nirmalgupta

IS-IT--Management
Sep 12, 2001
35
IN
Hi All,
We are using layer to generate some HTML output. If area covered by this layer is larger than window, Scroll bar does not appear in Netscape browser.
Is there any solution for this.
TIA
Nirmal Gupta
 
yea, document.layers['name'].width & document.layers['name'].height are writable :)

well, when you load externall file into layer (or just document.write into it) netscape won't redraw it; & content would be truncated..

so, you might check for window sizes, then for layer sizes, & then write [/b]layerobj.width=10000; this would add horizontal scrollbar :)

here is what i used for these purposes:



function scrollsfixnn(){
//targetLayer - layername (a string, like "layer1")
var trgt=new KLayer(targetLayer)
if (NC4){
//winY - window's height
var delta=trgt.getTop()+trgt.getHeight()-winY
var newdelta=winY+delta
document.height=newdelta
//winX - window's width
document.width=winX
}
}

and called this function from onload from new file loaded into layer (like onload=top.scrollfixnn or something, don't remember now)

klayers lib can be found at:
Victor
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top