Monday, October 19, 2009
ၾကဳိဆုိပါတယ္ ဆုိတာေလး
Posted on 6:46 AM by nweminthit
အခုပုိ႔က ကုိျပည့္စံုေရးထားတာကုိ ေကာ္ပီကူးတင္ေပးလုိက္တာပါ။ဒီေနရာကပါ။
ဒီေန ့ Reader တစ္ေယာက္ Mail ပို ့ၿပီး ေမးထားတာေလးပါ။ Side Bar မွာ ျပထားတဲ့အတိုင္း မိမိ Blog ကို လာလည္
တဲ့ သူေတြကို Welcome လုပ္ဖို ့အတြက္ပါ။ သင္၏ ပထမဆံုး အၾကိမ္ လာေရာက္လည္ပတ္မွဳ ျဖစ္ပါတယ္တို ့၊ ၾကိဳဆိုပါ
တယ္မိတ္ေဆြ .. သင္ေနာက္ဆံုး ေရာက္ခဲ့တာက ဘယ္ေန ့ဘယ္အခ်ိန္ .. စသည္ျဖင့္ ျပထားဖို ့အတြက္ပါ။ အဲဒီလို လုပ္ခ်င္
ရင္ေတာ့ ေအာက္က Codes ေတြကို သံုးႏိုင္ပါတယ္။ Wordpress ေရာ Blogger ေရာ သံုးႏိုင္ပါတယ္။ ေနရာကေတာ့
အဆင္ေျပတဲ့ေနရာမွာ ထဲ့ေပးလိုက္ေပါ့ဗ်ာ။
<span style="gt;<script type="text/javascript">
var lastvisit=new Object()
lastvisit.firstvisitmsg="သင္၏ပထမဆုံးအႀကိမ္လာေရာက္လည္ပတ္မႈ ျဖစ္ပါတယ္။"
lastvisit.subsequentvisitmsg="ႀကိဳဆိုပါတယ္ မိတ္ေဆြ။ သင္ ေနာက္ဆုံး ေရာက္ခဲ့တာက <b>[displaydate]</b> ျဖစ္ပါတယ္။"
lastvisit.getCookie=function(Name){ //get cookie value
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return ""
}
lastvisit.setCookie=function(name, value, days){ //set cookei value
var expireDate = new Date()
//set "expstring" to either future or past date, to set or delete cookie, respectively
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days))
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
lastvisit.showmessage=function(){
if (lastvisit.getCookie("visitcounter")==""){ //if first visit
lastvisit.setCookie("visitcounter", 2, 730) //set "visitcounter" to 2 and for 730 days (2 years)
document.write(lastvisit.firstvisitmsg)
}
else
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", new Date().toLocaleString()))
}
lastvisit.showmessage()
</script></span>
var lastvisit=new Object()
lastvisit.firstvisitmsg="သင္၏ပထမဆုံးအႀကိမ္လာေရာက္လည္ပတ္မႈ ျဖစ္ပါတယ္။"
lastvisit.subsequentvisitmsg="ႀကိဳဆိုပါတယ္ မိတ္ေဆြ။ သင္ ေနာက္ဆုံး ေရာက္ခဲ့တာက <b>[displaydate]</b> ျဖစ္ပါတယ္။"
lastvisit.getCookie=function(Name){ //get cookie value
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return ""
}
lastvisit.setCookie=function(name, value, days){ //set cookei value
var expireDate = new Date()
//set "expstring" to either future or past date, to set or delete cookie, respectively
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days))
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
lastvisit.showmessage=function(){
if (lastvisit.getCookie("visitcounter")==""){ //if first visit
lastvisit.setCookie("visitcounter", 2, 730) //set "visitcounter" to 2 and for 730 days (2 years)
document.write(lastvisit.firstvisitmsg)
}
else
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", new Date().toLocaleString()))
}
lastvisit.showmessage()
</script></span>
Subscribe to:
Post Comments (Atom)
No Response to "ၾကဳိဆုိပါတယ္ ဆုိတာေလး"
Leave A Reply
အေျပာမ်ား