Copy script di bawah ini seperi yang sebelumnya
-Login
-Tata letak
-Tambah widget
-Pilih javascript html
-Paste kode berikut:
<center><p>
<script language="JavaScript">
/*code from http://rainbow.arch.scriptmania.com*/
/*this free from http://oce-modifblog.blogspot.com*/
<!--
var Temp;
setClock();
function setClock() {
//var OpenImg = '<IMG SRC="'+pathOnly(location.href)+'digits/'+''
OpenImg='<IMG SRC="http://rainbow.arch.scriptmania.com/scripts/digits/' //removed with previous line by WM
var CloseImg='.gif" HEIGHT=21 WIDTH=16>'
Temp = ""
now = new Date();
var CurHour = now.getHours();
var CurMinute = now.getMinutes();
now = null;
if (CurHour >= 12) {
CurHour = CurHour - 12;
Ampm = "pm";
} else
Ampm = "am";
if (CurHour == 0)
CurHour = "12"
if (CurMinute < 10)
CurMinute = "0" + CurMinute
else
CurMinute = "" + CurMinute
CurHour = ""+CurHour;
for (Count = 0; Count < CurHour.length; Count++) {
Temp+=OpenImg+CurHour.substring (Count, Count+1)+CloseImg}
Temp+=OpenImg+"c"+'.gif" HEIGHT=21 WIDTH=9>'
for (Count = 0; Count < CurMinute.length; Count++){
Temp+=OpenImg+CurMinute.substring(Count,Count+1)+CloseImg}
Temp += OpenImg + Ampm + CloseImg
}
function pathOnly (InString) {
LastSlash=InString.lastIndexOf ('/', InString.length-1)
OutString=InString.substring (0, LastSlash+1)
return (OutString);
}
//-->
</script>
<!--Insert this anywhere on your page.-->
<script>document.write(Temp);</script></p></center>
<p>widget by: <a href="http://ikopermana.blogspot.com">iko permana</a></p>
-Terus simpan.
-Liet deh hasil hasilnya. :D :))
GOD JOB
Tidak ada komentar:
Posting Komentar