Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Dynamic Scrolling WITH Fixed Footer Bar


Dynamic Scrolling WITH Fixed Footer Bar

Reply
  #1 (permalink)  
Old 09-15-06, 09:13 AM
sandeepraul sandeepraul is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dynamic Scrolling WITH Fixed Footer Bar

Hi,

I tried all possible solutions from different forums to fix the problem but none were concrete. The problem is as follows:

I have a window with two major sections, one for main contents (98% of area) and second for Footer Bar (2% of area) indicating the status of the operation. This window is opened as a new window with menu, status, scrolling bars set to off.

The problem is, when I resize the window, because the scrolling is set to off, the bottom contents of the page cannot be viewed.

I would like to have a scrollbar to appear dynamically and the Footer bar to remain constant at the bottom of the window. If the page contents load of data then the content of the page should go behind the Footer making footer steady at fixed location.

I tried, all possible methods to use <div> with width, height and scrolling set to auto, but nothing seems to be working.

Also, it seems to be working with frames (by create two row frameset), but I am not keen on using frames because the project is in final stage, and adding frames may create more problems in accessing elements on pages.

If you have any other solution for this, please let me know.

Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 09-15-06, 10:56 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
I think this should do it:

Code:
<script language="javascript">
function pageScroll() {
    	window.scrollBy(0,10); // horizontal and vertical scroll increments
    	scrolldelay = setTimeout('pageScroll()',100); // scrolls every 100 milliseconds
}
function stopScroll() {
    	clearTimeout(scrolldelay);
}
</script>
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]

Last edited by nico_swd; 09-15-06 at 11:00 AM.
Reply With Quote
  #3 (permalink)  
Old 09-16-06, 03:43 PM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
You can use a div with fixed positioning at the bottom of the page. Then the "content" would just have a bottom-padding equal to the height of the footer. IE doesn't support "position:fixed;" but there are a few workarounds to handle it.

http://annevankesteren.nl/2005/01/position-fixed-in-ie
http://tagsoup.com/-dev/null-/css/fixed/
http://www.howtocreate.co.uk/fixedPosition.html
http://www.divinentd.com/experiments...ion-fixed.html
http://web.tampabay.rr.com/bmerkey/e...ion-fixed.html
Reply With Quote
  #4 (permalink)  
Old 09-17-06, 02:56 AM
sandeepraul sandeepraul is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Dynamic Scrolling WITH Fixed Header and Footer Bar

Thanks a lot for the instant reply.

I forgot to mention that I want a solution for both, IE and Netscape. I would like to have header and footer fixed position and only scrollbar to appear only for middle contents (only if window is re-sized).

I would try the solutions given on top and would update accordingly.

Thakns a million for posting :-)
Reply With Quote
  #5 (permalink)  
Old 09-19-06, 06:07 AM
sandeepraul sandeepraul is offline
New Member
 
Join Date: Sep 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Expressions in CSS

Hi

We checked the links given above, although the header/footer remains steady at one place, but it flickers, so wont be able to use this method.

Presently we are using "Expression in CSS" to manipute window dimensions on the fly, this works perfectly in IE, but not in mozilla. Here is the snippet:

width: expression(document.body.offsetWidth - 335 + "px");

Is there any equivalent code in Mozilla? OR is there any other tweaking we can use?
Please let me know. Thanks in advance.
Reply With Quote
  #6 (permalink)  
Old 09-19-06, 10:12 AM
jfulton's Avatar
jfulton jfulton is offline
Community VIP
 
Join Date: Apr 2006
Location: Los Angeles, CA
Posts: 660
Thanks: 0
Thanked 0 Times in 0 Posts
Code:
position:fixed;
You can use that for most browsers. IE needs the "expression" hack because it does not support fixed positioning. The links I posted before should explain it in more detail, and most (if not all) of those examples should work in both browsers.

See more at:
http://www.w3.org/TR/REC-CSS2/visure...ed-positioning
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Your HelP! Loading Multiple External Text into Multiple Dynamic Text Fields Flash_Boi Flash & ActionScript 2 03-30-06 03:27 PM
CSS footer help... AlexLee CSS 1 12-27-04 11:28 PM
Is it possible to put dynamic data display in a scrolling watermark? Whipsmack JavaScript 1 03-29-04 08:22 AM


All times are GMT -5. The time now is 08:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.