Hergun sayfada birkere gozuken işe yarar bir kod. Acılış sayflarında intro yerine kullanılabilir.
/* This script and many more are available free online at The JavaScript Source!! http://enesuysal.com Created by: Enes UYSAL | */ function checkCookie() { username=getCookie('username'); if (username!=null && username!="") { if(username==today.getUTCDay()){ //alert("Bugun " +username+" tarihler esit" ) } else { //alert("Bugun " +username+" tarihler esit" ); Popup.showModal('modal10'); else { Popup.showModal('modal10'); alert("il kez olu?tu" ); } } } function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } function setCookie(c_name,value,expiredays) { var exdate=new Date(); exdate.setDate(exdate.getDate()+expiredays); document.cookie=c_name+ "=" +escape(value)+ ((expiredays==null) ? "" : ";expires="+exdate.toUTCString()); } function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } } addLoadEvent(function() { checkCookie(); });
Bu makale 513 kere okundu.











