Click to See Complete Forum and Search --> : lock part of page


Red_Scene
10-23-2006, 11:12 AM
I want to lock the left douple inches of a webpage so that it won't scroll. This is where i want to place the buttons. I want them to always be right their without the user having tos croll back up to the top. The button system will be a javascript dropdown style menu. If anyone knows how to do this I would be greatful for some direction or help. Secondly anyone know if this is a bad thing for designing webpages? I'm not going to loose any space, because that portion was going to be blank below the top.

KDLA
10-23-2006, 01:21 PM
Floating navigation panes are a pain to many users. :D
Really, you should concentrate on keeping your page lengths down so the user does not have to scroll so much. A reader's concentration upon one page is not very long.

KDLA

GoneMad
10-23-2006, 01:26 PM
To lock the page like that, this is the method I know and it involves frames. Perhaps there is a more modern way to do this, but I don't know it.. here is an example.. you can play witih the numeric values to fit it to your needs. This will lock the left and top.


<frameset cols="110,*" FRAMEBORDER="0" FRAMESPACING="0" BORDER="0">
<frame name="left" src="/whateveryouwantontheleft.html" SCROLLING=NO MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE border=0>


<frameset rows="60,*" FRAMEBORDER=0 FRAMESPACING=0 BORDER=0>
<frame name="top" src="/whateveronthetop.html" SCROLLING=NO MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE border=0>
<frame name="mainwindow" src"/whatevermaincontent.html" SCROLLING=AUTO MARGINHEIGHT=0 MARGINWIDTH=3 NORESIZE border=0>
</frameset>

</frameset><noframes> navigation code for non frame users or whatever</noframes>

GoneMad
10-23-2006, 01:31 PM
Sorry for the weird formatting of the code block, also, it takes a bit of extra coding if you want your javascript menus to cross the border of the frame, e.g. a drop down at the top that crosses the boundary of the top frame, otherwise, your frames would have to be the size of the largest drop down or pop out menu item. If you are going to use frames, debate over their use aside, it's easier to keep the menu system very small and concise.