Keep an element above the fold with JavaScript

You may need to make your browser window smaller in order to see the script work.

fred

barney

wilma