Hasil seni dan reka bentuk adalah berbayar dan hakcipta Whitey Mommy.
Sila hubungi saya di whiteymommy@yahoo.com untuk sebarang pertanyaan dan tempahan.
Anda TIDAK DIBENARKAN SAMA SEKALI untuk mengambil/menyalin/menyimpan
mana-mana bahagian hasil seni dan reka bentuk yang telah saya hasilkan TANPA KEBENARAN!

Cara Membuat Welcome Note Pada Blog

Mungkin bagi sesetengah orang... tak suka letak benda ni... =) tapi saya suka... ini untuk bagi kata2 ucapan pada pengunjung blog kita... Ada yang teringin nak buat tak? kalau nak buat... Meh ikut step kat bawah ni ya...

1. Login ke Blogspot .

2. Klik Layout > Add a Gadget Javascript / HTML

3. Copy kod di bawah dan Pastekan kedalamnya

<div class="widget"><h4></h4> <div class="textwidget"><p style="text-align: justify;"><script type="text/javascript">

/***********************************************
* Display time of last visit script- by JavaScriptKit.com
* This notice MUST stay intact for use
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
***********************************************/

var days = 730; // days until cookie expires = 2 years.
var lastvisit=new Object();
var firstvisitmsg="Ini adalah kunjungan pertama anda di blog whitey mommy Selamat Datang!";
lastvisit.subsequentvisitmsg="Terima kasih kerana sudi melawat blog ini. Kunjungan terakhir anda 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><br />
<script>
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {
var exp = new Date();
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var expDays = 30;
var exp = new Date();
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
</script>
<script>
document.write("Anda pernah singgah di blog Whitey Mommy sebanyak <b>" + amt() + "</b> kali. Terima kasih. Datang lagi ya...")
</script></p>
</div></div>
*bahagian yang saya highlightkan dengan warna merah, anda boleh customizekan mengikut ayat anda sendiri...

4.Kemudian Save dan view...Siap... mudahkan?

Kredit kepada : Sis Kujie

Whitey note : Selamat mencuba... dan Sila tinggalkan komen anda selepas mengambil tutorial ini ya...

47 Comment (s):

  1. TERIMA KASIH! dah buat..hehe! ^^ i loike..

    ReplyDelete
  2. Alhamdulillah. Kak Wa dapat buat welcome note ni dengan penerangan adik. Thanks byk2 ye...

    ReplyDelete
  3. da buat da kak..
    jadi plak tu..
    maceh ye..

    ReplyDelete
  4. terima kasih...saya akan cuba nanti...:)

    ReplyDelete
  5. saya dah try..thanks whiteymommy saya suka...

    ReplyDelete
  6. Saya dah buat.. Terima kasih..

    ReplyDelete
  7. terima kasih,hrp ada yg sudi dtg lagi ke blog ct,lepas letak message ni

    ReplyDelete
  8. um .akak . Layout > Add a Gadget Javascript / HTML
    ,ktne nk tekn ?ta gety laa .

    ReplyDelete
  9. tengss mummy.. luve u.. b the best..

    ReplyDelete
  10. salam..

    kak, saya guna tutorial ni utk blog saya..
    terimak kasih banyak2.. :)

    ReplyDelete
  11. thanks! hehe..sgt senang yea..i've try already..
    but i wonder..xleh change color ke akak??

    ReplyDelete
  12. slm..sy dh try thanks slalu tgk kat blog org lain je benda ni hehe..tp sy punye xcantik cam whitey mommy la

    ReplyDelete
  13. terima kasih.. Suka sangat dengan tutorial ni...

    ReplyDelete
  14. thanks akak..dah jdi syieda wat tuto ni..

    akak syieda nak tnye akak tau xmacam mana nak hilangkan background kelabu dekat header blog syieda. T__T http://shuhaida313.blogspot.com

    ReplyDelete
  15. salam akak..

    nk tnye..syieda dah bt welcome note ni.tp bile syieda delete. part ni still ade

    /***********************************************
    * Display time of last visit script- by JavaScriptKit.com
    * This notice MUST stay intact for use
    * Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and more
    ***********************************************/

    var days = 730; // days until cookie expires = 2 years.
    var lastvisit=new Object();

    mcm mn nk ilangkan akk?especially bile nk post dekat FB

    ReplyDelete
  16. salam...
    saya dah buat welcome note ni...
    terima kasih...sy masih baru dalam dunia blog ni...jadi tutorial ni sangat membantu...terima kasih..terima kasih...terima kasih.

    ReplyDelete
  17. terima kasih ya daun keladi.Saya suka terima kasih Sha...nanti nak ambik lain tuto k...

    ReplyDelete
  18. thank u..fantastic..simple & easy..

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete
  20. thanks for this tutorials. very simple and nice :)

    ReplyDelete
  21. i like..tq Mummy...mai singgah blog saya

    http://cintakuilahi.blogspot.com/

    ReplyDelete
  22. salam..sis xboleh nk copy pn kod tu???

    ReplyDelete
  23. Alhamdulillah..terima kasih utk ilmu yang si share..mintak halal ya..semoga dimurahkan rezeki..amin..terima kasih =)

    ReplyDelete
  24. Assalammualaikum ...nak cuba buat.. harap2 menjadi.. thanks.

    ReplyDelete
  25. Assalammualaikum ...nak cuba buat.. harap2 menjadi.. thanks.

    ReplyDelete
  26. Assalammualaikum....thanks Whitey Mommy for the information

    ReplyDelete

Thank You For Leaving a Comment to Me...

 
Copyright © Whitey Mommy™