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

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 --

    [email protected]
    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 --
    :
    : [email protected]
    : 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.