<script type="text/javascript">
if (getCookie("here") != "yes") document.getElementById('iebox').style.display = "block";
else SetCookie('here','yes',new Date(new Date().getTime()+(1000*60*60*24*10)));
</script>
<script type="text/javascript"> if (getCookie("here") != "yes") document.getElementById('iebox').style.display = "block"; else SetCookie('here','yes',new Date(new Date().getTime()+(1000*60*60*24*10))); </script>
<script type="text/javascript">
if (getCookie("here") != "yes")
{
document.getElementById('iebox').style.display = "block";
SetCookie('here','yes',new Date(new Date().getTime()+(1000*60*60*24*10)));
}
</script>
<script type="text/javascript">
if (getCookie("here") != "yes")
{
document.getElementById('iebox').style.display = "block";
SetCookie('here','yes',new Date(new Date().getTime()+(1000*60*60*24*10)));
}
</script>
i’m assuming you’ve copied getcookie and setcookie from:
http://www.w3schools.com/js/js_cookies.asp
because they aren’t standard js functions?
getcookie will return an empy string if the cookie doesn’t exist. so the following code:
<script type="text/javascript"> if (getCookie("here") != "yes") { document.getElementById('iebox').style.display = "block"; SetCookie('here','yes',new Date(new Date().getTime()+(1000*60*60*24*10))); } </script>
is saying:
if the cookie ’here’ has any value other than ’yes’, show ’iebox’, and then set a cookie so that ’here’ = ’yes’.
the next time the user visits, they will have a cookie ’here’ that equals ’yes’, so ’iebox’ won’t be displayed (assuming it’s default css sets ’display:none’).

setCookie('here','yes',10);
try changing setcookie to:
setCookie('here','yes',10);
where 10 is the number of days to set a cookie for. this works for me.