Followers

Tutorial | last korang datang sini

Unknown | 03:46 | 5Comments |
Views

Aqu Mad tanya camne buat ni .


cara2nya.

layout>add widget> add html> paste kan dalam kotak tu .

<center><script type = "text/javascript">
//
var days = 730; // days until cookie expires = 2 years.
var lastvisit=new Object();
var firstvisitmsg="thank you for coming !";
lastvisit.subsequentvisitmsg="hye , last korang dtg sini pada <b>[displaydate]</b>";
lastvisit.getCookie=function(Name){
var re=new RegExp(Name+"=[^;]+", "i");
if (document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1];
return'';
}
lastvisit.setCookie=function(name, value, days){
var expireDate = new Date();
var expstring=expireDate.setDate(expireDate.getDate()+parseInt(days));
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}
lastvisit.showmessage = function() {
var wh = new Date();
if (lastvisit.getCookie("visitc") == "") {
lastvisit.setCookie("visitc", wh, days);
document.write(firstvisitmsg);
}
else {
var lv = lastvisit.getCookie("visitc");
var lvp = Date.parse(lv);
var now = new Date();
now.setTime(lvp);
var day = new Array("Sun", "Mon", "Tues", "Wed", "Thur", "Fri", "Sat");
var month = new Array ("Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");
var dd = now.getDate();
var dy = now.getDay();
dy = day[dy];
var mn = now.getMonth();
mn = month[mn];
yy = now.getFullYear();
var hh = now.getHours();
var ampm = "AM";
if (hh >= 12) {ampm = "PM"}
if (hh >12){hh = hh - 12};
if (hh == 0) {hh = 12}
if (hh < 10) {hh = "0" + hh};
var mins = now.getMinutes();
if (mins < 10) {mins = "0"+ mins}
var secs = now.getSeconds();
if (secs < 10) {secs = "0" + secs}
var dispDate = dy + ", " + mn + " " + dd + ", " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))
}
lastvisit.setCookie("visitc", wh, days);
}
lastvisit.showmessage();
</script>
</center>


okay, tukar yang warna merah tu kalau nak la :D

Tyra Lee (Author)
About Guest Author:
Assalamualaikum. I'm the only author for this blog. Cik adik, cik kakak, cik abang tak kan baca je . apa pendapat korang plak? comment la sikit. Dont worry, aku open minded :D.
www.tips-fb.com

5 00 org doakan tyra sihat:

amanina nasuha said... [Reply love]

belalang ambik tuto nie..x tukar pownn..harap x marah yerk..nk tnyer cm ner letak gmbr unyuk komen tu erk..nnti box belalang :)

Terima Kasih kerana komen pada artikel ini ^by Cik Tyra Lee
hana hadi said... [Reply love]

"last korang" tu maksudnya last tuan empunya blog ka?

Terima Kasih kerana komen pada artikel ini ^by Cik Tyra Lee
Unknown said... [Reply love]

@hana hadixlah. last pengunjung dtg..

Terima Kasih kerana komen pada artikel ini ^by Cik Tyra Lee
Unknown said... [Reply love]

@Amanina Nasuha gmbr utk cment cmne ye.. xberapa fhm la..

Terima Kasih kerana komen pada artikel ini ^by Cik Tyra Lee
amanina nasuha said... [Reply love]

bukan komen..silap2..yg author tu :)

Terima Kasih kerana komen pada artikel ini ^by Cik Tyra Lee
Related Posts Plugin for WordPress, Blogger...

saya sayang awak

Daisypath Anniversary tickers