Aku Punya dot com

Tidak Punya Ide Untuk Menulis

  • Home
  • Kontak
 
HomeBlogCara memasang jam digital di blog/website
07
Mei
2010

Cara memasang jam digital di blog/website

Posted by: admin

Cara memasang/menampilkan jam digital menggunakan javascript.

Setelah beberapa hari yang lalu post artikel memasang jam analog sekarang gilirannya
memasang jam digital.
Jam nya sama-sama keren, sama-sama oke dan sama-sama mantab.. tab.. taaaab..

Silahkan dilihat demonya:

Caranya, pasang kode dibawah ini dibagian <head> di blog/website kamu

Salin kode CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<style type="text/css">
#jam {
	font-size: 24px;
	color: #7AB3FD;
	font-weight: none;
	font-style: none;
	font-family: impact;
	font-smooth: always;
	border: 0px;
	filter:alpha(opacity=70);
	-moz-opacity:0.7;
	-khtml-opacity: 0.7;
	opacity: 0.7;
	-moz-border-radius: 5px; /* this works only in camino/firefox */
	-webkit-border-radius: 5px; /* this is just for Safari */
	position:fixed;_position:absolute;bottom:0px; right:0px;
	clip:inherit;
	_top:expression(document.documentElement.scrollTop+ document.documentElement.clientHeight-offsetHeight);
	_left:expression(document.documentElement.scrollLeft+ document.documentElement.clientWidth-offsetWidth);
}
</style>


Kemudian pasang kode dibawah ini setelah baris <body>

Salin kode JAVASCRIPT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<body onload="startclock ();">
<script language="JavaScript">
 
<!-- Hide from non Java browsers
var timerID = null;
var timerRunning = false;
var id,pause=0,position=0;
 
function stopclock (){
        if(timerRunning)
               clearTimeout(timerID);
        timerRunning = false;
}
function showtime () {
        var now = new Date();
        var hours = now.getHours();
        var minutes = now.getMinutes();
        var seconds = now.getSeconds()
        var timeValue = "" + ((hours >12) ? hours -12 :hours)
        timeValue += (hours >= 12) ? " pm" : " am"
        timeValue += ((minutes < 10) ? " 0" : " ") + minutes
        timeValue += ((seconds < 10) ? ":0" : ":") + seconds
        document.clock.face.value = timeValue;
        timerID = setTimeout("showtime()",1000);
        timerRunning = true;
}
 
function startclock () {
        stopclock();
        showtime();
}
// -->
</script>
<form name="clock" onsubmit="0">
    <div id="jam" name="face"><input id="jam" type="text" size="10"
    name="face"></div>
</form>


Selamat mencoba…!!!


memuat halaman
Reload
«
»
iklan

23 Komentar

Blog, Javascript, Tips trik blog

Postingan yang lain:
  • Cara membuat toggle show hide
  • Cara membuat gambar melayang
  • Cara mengganti emoticon WordPress
  • Agar emoticon tidak muncul di sisi kiri post
  • Menghilangkan meta generator wordpress

Ada 23 komentar di “Cara memasang jam digital di blog/website”

Tulis komentar
‹ sebelumnya 1 2
Komentar dari FBA:
Dari IP: 182.8.143.48
Tanggal 16 April 2012 jam 12:20 am

terimakasih infonya telah ane pasang di http: //blog.buka-a.biz/ dan berhasil 100%

mampir balik ya

Balas komentar

Balasan dari admin:
Dari IP: 110.139.125.86
Tanggal 18 April 2012 jam 8:09 pm

ok, menuju tkp gan.. :arrow:

Balas komentar

‹ sebelumnya 1 2

Tulis Komentar


website / blog

Komentar:

Emoticon
Emoticon:
X
icon_smile.gif icon_wink.gif icon_neutral.gif icon_mad.gif icon_wc.gif icon_uhuk.gif icon_twisted.gif icon_eek.gif icon_sad.gif icon_rolleyes.gif icon_razz.gif icon_puyeng.gif icon_pliss.gif icon_payah.gif icon_lidah.gif icon_redface.gif icon_surprised.gif icon_mrgreen.gif icon_lol.gif icon_kencing.gif icon_idea.gif icon_biggrin.gif icon_evil.gif icon_dead.gif icon_cry.gif icon_cool.gif icon_bom.gif icon_bisik-bisik.gif icon_ayolah.gif icon_arrow.gif icon_confused.gif icon_question.gif icon_exclaim.gif 

Batalkan balasan
 
    CO.CC Free Domain
  •     Komentar terbaru

    • iiN: aha.... ;-) mkc buannyyakk #
    • admin: bisa kok, coba aja pasang.. ni #
    • admin: ok.. kodenya sdh diganti.. ^_^ #
    • iiN: sieeppp .... *thumsup* di tun #
    • iiN: mw nanya neeh mas.... emang' #
    • admin: ok ok .. sip deh .. hehe.. : #
    • admin: he.. ntar kodenya aku ganti aj #
    • iiN: iin baru belajar ngeblog hee.. #
    • iiN: ooooowhhh .... gtu toh mas :-| #
    • admin: bisa, ganti dgn auto / pointer #
  •     Kategori

    • Adsense
    • Aneh
    • Biografi
    • Blog
    • Cewek
    • CSS
    • CSS3
    • Dofollow
    • DVD
    • Emoticon
    • Facebook
    • Game
    • Google
    • Gratis
    • Hiburan
    • Javascript
    • Kamus Online
    • Kesehatan
    • Kiamat
    • Kids
    • Komik
    • Lucu
    • Menu Bulan Puasa
    • Mp3
    • PHP
    • Rank
    • Resep
    • Search Engine
    • SEO
    • Sitemap
    • Story
    • Tak Berkategori
    • Tak Penting
    • Tips
    • Tips trik blog
    • Traveling
    • Twitter
    • Wedding
    • Wordpress
    • Youtube
  •     Arsip

    • Mei 2012
    • April 2012
    • Maret 2012
    • Februari 2012
    • Januari 2012
    • Desember 2011
    • November 2011
    • Oktober 2011
    • September 2011
    • Agustus 2011
    • Juli 2011
    • Juni 2011
    • Mei 2011
    • April 2011
    • Maret 2011
    • Februari 2011
    • Januari 2011
    • Desember 2010
    • November 2010
    • Oktober 2010
    • September 2010
    • Agustus 2010
    • Juli 2010
    • Juni 2010
    • Mei 2010
    • April 2010
    • Maret 2010
    • Februari 2010
    • Januari 2010
    • Desember 2009
    • November 2009
    • Oktober 2009
    • September 2009
    • Agustus 2009
    • Juli 2009
    • Juni 2009
    • Mei 2009
    Adsense Indonesia
    iklan
      Page: /cara-memasang-jam-digital-di-blog-website.html : The Pill Side Effects
      Long Hairstyles For Men
      Best Phone Cards

Aku Punya dot com © 2009 - 2012
Powered by WordPress
Best viewed in Firefox, Opera, and Chrome at 1280 x 960 screen resolutions

Feed  |  Sitemap  |  Recent Posts
Tukar Link  |  Pasang Banner  |  Kontak

22 queries. 0,998 seconds

Toolbar
tulis komentar
     
23 komentar
Komentar 23
kembali ke bawah
Bawah
kembali ke atas
Atas
Games
  • »  Game Puzzle
  • »  Game Tetris
  • Game Puzzle  
     
    Game Tetris  
     
    Shoutbox
    Shoutbox  

     
    Suka
    Aku Punya fans  
     
    Pencarian
    memuat ...