Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Jan 12, 2010

Recent Blog Comments By caii

  • Creating A Sometimes-Fixed-Position Element With jQuery

    Posted on Jan 12, 2010 at 10:26 PM

    GOOD? But I think some places do not need jquery? like this: <pre> var originalMessageTop = (message=document.getElementById("site-message")).getBoundingClientRect().top; function fix() { var viewTop = this.pageYOffset||document.documentElement[ "scrollTop" ]; message.className= viewTop >... read more »