When the button is clicked to hide it, set:
localStorage['dont-tell-me-about-expiry'] = new Date().getTime();
Whatever name you want in there - I like to keep them descriptive.
Then when you would normally display the box:
if( localStorage['dont-tell-me-about-expiry'] < new Date().getTime()-24*3600*1000) {
// show the box
}