I'm trying to get a div with a close option to work, but some how it doesn't work correctly..
First of all I found this thread:
http://stackoverflow.com/questions/10674611/hide-div-24hr-cookie-javascript
And here is the working JSFiddle example I want to achieve:
http://jsfiddle.net/FcFW2/1/
I want to understand where the "display: block" on the div comes from? I can't find it in the script?.. The css for #popupDiv has the value display: none.
I copied/pasted the script/css/html to my site:
http://lampen.identitest.dk/
At the bottom of my site you will find it.. the problem is that it is loaded with display: none ("display: block" is not added to the div).
I hope you can help me out and try to explain it for me.
Best Regards Shane M