Welcome to TalkGraphics.com
Page 5 of 5 FirstFirst ... 345
Results 41 to 43 of 43

Thread: Fixed Footer

  1. #41
    Join Date
    Aug 2013
    Posts
    8

    Default Re: Fixed Footer

    ok i know this is not directly related to this thread but you guys have been great so far so i have another brain teaser. i have been using the following code to make my footer stick to the bottom of the browser window if the window is bigger than the page size.
    </div>
    <script type="text/javascript">
    var my_oldres=window.onresize;
    window.onresize=my_res;
    function my_res(e)
    {
    if(my_oldres)my_oldres(e);
    var dh=document.documentElement.clientHeight;
    var xr_xri=document.getElementById("xr_xri");
    var ph=parseInt(xr_xri.style.height);
    var h=dh;
    if(dh>ph)my_footer.style.top=(dh-ph)+'px';else{my_footer.style.top='0px';h=ph;};
    if(my_background){h-=parseInt(my_background.style.top);my_background.s tyle.height=h+'px';};
    };
    </script>
    <div id='my_footer' style="top:0px;left:0px;position:absolute;">
    <script type="text/javascript">
    var my_footer=document.getElementById('my_footer');
    var my_background=document.getElementById('my_backgrou nd');
    my_footer.style.width=parseInt(xr_xr.style.width)+ 'px';
    my_res();</script>
    <div>
    My question... is there a way of using this in conjunction with the dynamic tweak? i have a page where sometimes its smaller than the browser window and sometimes bigger, both codes work in there own right but not together?

  2. #42

    Default Re: Fixed Footer

    No

  3. #43
    Join Date
    Aug 2013
    Posts
    8

    Default Re: Fixed Footer

    Really? how come?

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •