on 12-24-2008 11:21 AM
Hi Experts,
I have been working on a requirement where i need to freeze the header of a content. That is the header part should not scroll when the user is scrolling down the page.
Here, the standard code is using Grid Layout to display header as well as body. I mean the header is also displayed like part of body.
Col1 Col2 Col3
AAA 1 B
BBB 2 C
CCC 3 D
Here code is like
Grid Layout
Loop to display headings
Loop to display content
End of grid layout
Please through some light on how to achieve this.
I have tried with document.body.ScrollTop .. but it is not working
Thanks in advance.
--- Jyothi
Hi Jyoti,
Make the option scrolling = "no" in the header and assign "yes" to the same in the body of the content.
Here below specifies the coding for header ,to freeze it
<frameset id="mainframeset"
rows="130,*" frameborder="1" border="1" >
<frame style="border-bottom-style:solid;
border-color:#333333;
border-width:1px"
name="header"
*scrolling="no"*
noresize frameborder="no"
src ="img.bmp">
Next to the body of the content alone specify the scrolling option to true(ie to the remainig portion of frame)
With Regards,
SHARMILA BRINDHA.M
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharmila,
I have tried that option and it is working fine.
But here problem is in my header part i have some buttons like BACK, EXIT. When i press the BACK button previous page is coming only in HEADER frame and the BODY frame is remaining as it is.
I dont know how to solve this. That's why trying different options from FRAME.
.. Jyothi
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.