struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lowe <mark.l...@talk21.com>
Subject [ot] dhtml question was - Re: footer problem
Date Tue, 16 Sep 2003 10:43:22 GMT
Last time i messed with dhtml, using with:100% didn't work on 
everything. and inline css was also a bit ropey..

You'll need to detect screen width and height, and dynamically set the 
width, position and height.

This has nothing to do with tiles or struts really, so either you 
thought you'd get lucky on this list or you have trouble separating the 
concepts of dhtml and server side stuff.

Here are some clues..

<div id="footer">
..
footer {
	position:absolute;
	left:0px;
	top:0px;
..
}
..
//dom supporting browsers
document.getElementById("footer")
//ns4 : i wouldn't bother
document.layers['footer']
//ie4
document.all['footer']
..
function positionFooter() {
	footer = ..; //depends on browser
	winWidth = window.width ; //probably wrong i dont recall which one 
does what
	winHeight = .. // likewise
	height = footer.style.height;
	width = winWidth;
	left = "0";
	top = winHeight - height;
}
..
To be honest , judging by your question I'd stay well away. DHTML is a 
guaranteed way of giving you a very long headache. And writing DHTML 
ends up being for other frontend developers rather than end users. 
DHTML is good but only when you know the stuff inside out and have 
resource to dedicate to this separate line of development. If your site 
works 'as' is you can layer the dhtml on by not using inline styles, 
and allowing no js/css browsers to fail gracefully.

Cheers Mark


On Tuesday, September 16, 2003, at 11:57 AM, Coolyogs wrote:

> Hi All
> I have a problem with footer.
> I am inserting footer in tiles-def
>
> I want to keep the footer in absolute position when there is no data
> in the page
> and when there is some data exceeds the absolute position the the
> footer should float.
>
> please help me....
>
> <div style="position: absolute; width:100%; height:15; top: 540;
> left:20 " >
>
> in the above case it will be overlapped if contents exceeds absolute
> position
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message