kabuscobar adlı üyeden alıntı: mesajı görüntüle
mesajın gösterileceği div'i sayfaya cookie kontrolü yaptıktan sonra ekle.
<html>
<head></head>
<style>
#mesaj{
border:2px solid black;
background:red;
height:300px;
width:400px;
left:400px;
top:200px;
position:absolute;
}
</style>
<script>
window.onload = function () {


var ck=document.cookie;

var ck_Index=ck.indexOf('goruldu');
if(ck_Index===-1){
//alert('Mesaj İlk Kez Gösteriliyor.');
 var b = document.createElement('div');
                        b.setAttribute('id', 'mesaj');
                        b.innerHTML = 'Mesaj burda';
                        document.body.appendChild(b);

var sure=new Date();
sure.setDate(sure.getDate() + 30);
var ck="goruldu=gorldu;expires="+sure.toUTCString();
document.cookie=ck;
}
else{
//alert('Mesaj Daha Önce Gösterilmiş');
}
}</script>
<body>

</body>
</html>
Öncelikle teşekkür ederim, isteğim bir nevi oldu. Sadece bu işlemin tıkladıktan son yapılmasını istiyorum yani o dive tıkladıktan sonra. Teşekkürler.