This Blog Has Been Moved To HANTUJAVASCRIPT.

Tuesday, November 30, 2010

Home » , »

Letak Jam Pada Blog Tanpa Mendaftar (Javascript)


hai hari ni saya nak ajar anda semua bagaimana ingin meletakkan Jam pada blog
selepas anda meletakkan di blog anda... anda akan nampak persamaan pada jam komputer anda
tujuan tutorial ini adalah hanya memudahkan kerja anda


caranya adalah anda pergii ke dashboard>design>add gadget>html/javascript
dan letak kod dibawah

<script language='JavaScript' type='text/JavaScript'>
//Made by fadzzz
//http://howdofadz.blogspot.com
//Come and get more javascript and tutorial
var fifteenth = '';var sixteenth = true;
function first2 () {
if (sixteenth==true) { sixteenth = false; document.seventeenth.eighteenth.value='Show seconds'; window.clearTimeout(nineteenth); twentieth(); }
else if (sixteenth==false) { sixteenth = true; document.seventeenth.eighteenth.value='Hide seconds'; window.clearTimeout(nineteenth); twentieth(); }}
function second2 () {
if (document.seventeenth.third2.value=='12') { document.seventeenth.third2.value = '24'; document.seventeenth.fourth2.value = '12-hours clock'; window.clearTimeout(nineteenth); twentieth(); }
else if (document.seventeenth.third2.value=='24') { document.seventeenth.third2.value = '12'; document.seventeenth.fourth2.value = '24-hours clock'; window.clearTimeout(nineteenth); twentieth(); }}
function twentieth () {fifth2 = new Date();fifth2.sixteenth3 = fifth2.getHours();fifth2.fifteenth3 = fifth2.getMinutes();fifth2.seventeenth3 = fifth2.getSeconds();fifth2.sixth2 = '';
if (fifth2.fifteenth3<10) { fifth2.fifteenth3 = '0' + fifth2.fifteenth3; }
if (document.seventeenth.third2.value=='12') {
if (fifth2.sixteenth3==0) { fifth2.sixth2 = 12+':'+fifth2.fifteenth3; fifteenth = ' AM';}
else if (fifth2.sixteenth3==12) { fifth2.sixth2 = fifth2.sixteenth3 + ':' + fifth2.fifteenth3; fifteenth = ' PM';}
else if (fifth2.sixteenth3<12) { fifth2.sixth2 = fifth2.sixteenth3+':'+fifth2.fifteenth3; fifteenth = ' AM';}
else if (fifth2.sixteenth3>12) { fifth2.sixth2 = fifth2.sixteenth3 - 12; fifteenth = ' PM'; fifth2.sixth2 += ':'+fifth2.fifteenth3;}}
else {
if (fifth2.sixteenth3<10) { fifth2.sixteenth3 = '0' + fifth2.sixteenth3; } fifth2.sixth2 = fifth2.sixteenth3 + ':' + fifth2.fifteenth3; fifteenth = ''; }eighteenth3();}
function eighteenth3() { var nineteenth3 = '';
if (fifth2.seventeenth3<10) { fifth2.seventeenth3 = '0' + fifth2.seventeenth3 ; }
if (sixteenth==true) { nineteenth3 = fifth2.sixth2 + ':' + fifth2.seventeenth3+fifteenth ; }
else { nineteenth3 = fifth2.sixth2 + fifteenth ; }document.seventeenth.twentieth3.value = nineteenth3 ; nineteenth = setTimeout('twentieth()', 100) ;}setTimeout('twentieth()', 5) ;
</script>

<form name='seventeenth'>
<input name='twentieth3' type='text' size='11' style="2 background-color: #FF00FF; layer-background-color: #99FFFF; border: 1px none #000000; background-color: #99FFFF; text-align: center; color: #FF00FF; border-left-style: solid; border-right-style: solid; border-top-style: solid; border-bottom-style: solid; border-color: #FF0000;"/><br/><br/>
<input type='button' value='24-hours clock' name='fourth2' onClick='second2()'/><br/>
<input type='button' value='Hide seconds' name='eighteenth' onClick='first2()'/><br/><br/>
<input type='hidden' value='12' name='third2'/>
</form>





2 comment:

Syaby said...

hyee fadz.. macam mane nak tuka colour tu eh ?

fad*** said...

sabar senyum nanti fadz wat kan form untuk gadget ni... arap sabar

Post a Comment

<b></b> : Tebalkan huruf
<i></i> : Condongkan huruf
<a href="http://URL.anda,com">link</a> : letak link
&lt; : tanda [<]
&gt; : tanda [>]
&quot; : tanda ["]

Click Itu Sedekah...maka...CLICKlah!!!

Follow

donate me

My Ranking

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Fadhil | Bloggerized by Fadhil