Contoh Paparan adalah seperti berikut:-
Khamis 13 Ogos 2009
Jika anda berminat "copy" dan "paste" skrip bewarna merah berikut pada blog anda.
<script type="text/javascript">
<!--
var d_names = new Array("Ahad", "Isnin", "Selasa",
"Rabu", "Khamis", "Jumaat", "Sabtu");
var m_names = new Array("Januari", "Februari", "Mac",
"April", "Mei", "Jun", "Julai", "Ogos", "September",
"Oktober", "November", "Disember");
var d = new Date();
var curr_day = d.getDay();
var curr_date = d.getDate();
var sup = "";
if (curr_date == 1 || curr_date == 21 || curr_date ==31)
{
sup = "";
}
else if (curr_date == 2 || curr_date == 22)
{
sup = "";
}
else if (curr_date == 3 || curr_date == 23)
{
sup = "";
}
else
{
sup = "";
}
var curr_month = d.getMonth();
var curr_year = d.getFullYear();
document.write(d_names[curr_day] + " " + curr_date + "<SUP>"
+ sup + "</SUP> " + m_names[curr_month] + " " + curr_year);
//-->
</script>
0 Comments:
Your Comment here (Komen anda di sini)