Dynamic Headers - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Dynamic Headers

How do you create dynamic headers without using frames?

The one on the page below follows you as you scroll up and down the screen. Its quite impressive, does anyone know how to do this?

http://www.belinea.com/include/zeigemonitor.asp?monitorid=322&sprachid=101&landid=81&lang=1

Comments

  • Secret_DoomSecret_Doom Posts: 116Member
    Hi. I think I can do such a thing:
    I'm putting the header as a DIV


    [code]


    function refresh_pos () {
    header.style.top = document.body.scrollTop
    timer = setTimeout('refresh_pos()' , 1)
    }



    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...

    text...



    timer = setTimeout('refresh_pos()' , 1)


    [/code]


    Is that what you wanted? Did it work on your browser?
    If you need any further assistence, just ask !

    -- Secret_Doom - Leonardo Pignataro --

    secret_doom@hotmail.com
    www.batch.hpg.com.br



    : How do you create dynamic headers without using frames?
    :
    : The one on the page below follows you as you scroll up and down the screen. Its quite impressive, does anyone know how to do this?
    :
    : http://www.belinea.com/include/zeigemonitor.asp?monitorid=322&sprachid=101&landid=81&lang=1
    :
    :

  • robellis52robellis52 Posts: 2Member
    Brilliant, thanks a lot. I'm pretty new to HTML, so that would've taken me days. Cheers.

    : Hi. I think I can do such a thing:
    : I'm putting the header as a DIV
    :
    :
    : [code]
    :
    :
    : function refresh_pos () {
    : header.style.top = document.body.scrollTop
    : timer = setTimeout('refresh_pos()' , 1)
    : }
    :
    :
    :
    :
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :

    text...

    text...

    text...

    text...

    text...
    :
    :
    :
    : timer = setTimeout('refresh_pos()' , 1)
    :
    :
    : [/code]
    :
    :
    : Is that what you wanted? Did it work on your browser?
    : If you need any further assistence, just ask !
    :
    : -- Secret_Doom - Leonardo Pignataro --
    :
    : secret_doom@hotmail.com
    : www.batch.hpg.com.br
    :
    :
    :
    : : How do you create dynamic headers without using frames?
    : :
    : : The one on the page below follows you as you scroll up and down the screen. Its quite impressive, does anyone know how to do this?
    : :
    : : http://www.belinea.com/include/zeigemonitor.asp?monitorid=322&sprachid=101&landid=81&lang=1
    : :
    : :
    :
    :

Sign In or Register to comment.