Tutorial 2 : Last time visit my page
14:56
Azwa
No comments
salam bloggerz..
orite...2nd tutorial.. dah tau title dia so rasanya tak perlu tuk inform lagi kot...
caranya :
1. design > page element > add a gadget > html/java script
2. sila copy paste code di bawah ni :
//
var days = 730; // days until cookie expires = 2 years.
var lastvisit=new Object();
var firstvisitmsg="hye , thank you for visiting this site !";
lastvisit.subsequentvisitmsg="hye , last time you came here was on[displaydate]";
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 < hh = "0">
var mins = now.getMinutes();
if (mins < mins = "0">
var secs = now.getSeconds();
if (secs < secs = "0">
var dispDate = dy + ", " + mn + " " + dd + ", " + yy + " " + hh + ":" + mins + ":" + secs + " " + ampm
document.write(lastvisit.subsequentvisitmsg.replace("\[displaydate\]", dispDate))
}
lastvisit.setCookie("visitc", wh, days);
}
lastvisit.showmessage();
3. sebelum save make sure korang preview dlu keyh.. enjoyyy
p/s : tulisan hijau tu korang boleh tukar dgn ayat korang sendiri...
Tutorial 1 : Cara install brushers ke dlm adobe photoshop
11:51
Azwa
2 comments
Salam bloggerz
Hari ini tetiba rasa nak buat tutorial plak.. tak pernah-pernah aku buat tutorial ni.. selalunya merepek-meraban je lebih.. tapi tak apa.. demi mencari kelainan tuk blog kesayangan aku ni kan.. orite, hari ni aku nak ajar cara-cara untuk install brushers kat photoshop..Cara-caranya adalah :
-> Mula-mula sekali search brushers kat uncle google. (photoshop brushers). bila dah download tuh tolong simpan dlm 1 folder.. aha..sebelum terlupa pilih folder .abr aje tau..
-> Senang cite korang simpan kat dalam folder brusher.. caranya :
START > COMPUTER > PROGRAM FILES > ADOBE > PHOTOSHOP PRESETS > BRUSHERS
-> Then, buka adobe photoshop. Ikut sebiji-sebiji instruction kat bawah ni. jangan skip keyh :
~ pilih brush tools ~
-> Nak tengok hasilnya.. ok buat macam biasa..
File > NEW .. atau shortcutnya : CTRL + N
p/s : hope tutorial ni dapat membantu korang...enjoyyy...