I\'m trying to have a div display on the very first time a user visits my site. I\'m pretty sure I do this by using cookies, which I have limited experience with and am have
Your cookie code looks fine. You need to run it in the document ready handler, so that it waits until the document is loaded before toggling the DIV:
$(function() {
var visit=GetCookie("COOKIE1");
if (visit==null){
popbox3();
}
var expire=new Date();
expire=new Date(expire.getTime()+7776000000);
document.cookie="COOKIE1=here; expires="+expire;
}
I've also made setting the cookie unconditional, so that every visit to the site will push back the expiration time.