Firstly, I apologize if this is too open a question.
I know that the title of the webpage is static, so it always appears at the top of the viewport, and the content goes under it when scrolling down. This can only be achieved with css.
I was wondering how you could let the title scroll from the page, but leave the horizontal menu bar static at the top. http://www.forexfactory.com is a great example of this.
I see that it calls a JavaScript function onHeaderComplete.execute(), which I assume applies an extra CSS style to the navigation bar when the title scrolls, but I'm not sure how it works. Any basic explanation is appreciated since my JavaScript skills are relatively limited.
source
share