http://www.forum-gengbrengsek.com

forum geng brengsek


    Script HTML untuk membuat Jam digital Digital

    Share
    avatar
    galieleo_hack

    Jumlah posting : 20
    Join date : 29.10.08
    Age : 31
    Lokasi : bandung

    Script HTML untuk membuat Jam digital Digital

    Post  galieleo_hack on Mon Nov 03, 2008 11:00 am

    1. Script berikut letakin di HEAD pada template HTML anda:

    <style>
    <!--
    .styling{
    background-color:black;
    color:lime;
    font: bold 15px MS Sans Serif;
    padding: 3px;
    }
    -->
    </style>


    2. Langkah ke 2, letakin script berikut dimana Jam Digital mau di letakin:

    <span id="digitalclock" class="styling"></span>

    <script>
    <!--

    /*****************************************
    * LCD Clock script- by Javascriptkit.com
    * Featured on/available at http://www.dynamicdrive.com/
    * This notice must stay intact for use
    *****************************************/

    var alternate=0
    var standardbrowser=!document.all&&!document.getElementById

    if (standardbrowser)
    document.write('<form name="tick"><input type="text" name="tock" size="6"></form>')

    function show(){
    if (!standardbrowser)
    var clockobj=document.getElementById? document.getElementById("digitalclock") : document.all.digitalclock
    var Digital=new Date()
    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    var dn="AM"

    if (hours==12) dn="PM"
    if (hours>12){
    dn="PM"
    hours=hours-12
    }
    if (hours==0) hours=12
    if (hours.toString().length==1)
    hours="0"+hours
    if (minutes<=9)
    minutes="0"+minutes

    if (standardbrowser){
    if (alternate==0)
    document.tick.tock.value=hours+" : "+minutes+" "+dn
    else
    document.tick.tock.value=hours+" "+minutes+" "+dn
    }
    else{
    if (alternate==0)
    clockobj.innerHTML=hours+"<font color='lime'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
    else
    clockobj.innerHTML=hours+"<font color='black'>&nbsp;:&nbsp;</font>"+minutes+" "+"<sup style='font-size:1px'>"+dn+"</sup>"
    }
    alternate=(alternate==0)? 1 : 0
    setTimeout("show()",1000)
    }
    window.onload=show

    //-->
    </script>
    avatar
    sicko

    Jumlah posting : 48
    Join date : 29.10.08
    Age : 35
    Lokasi : ··¤(`×[¤Alam Semesta, Di daerah Kolong Langit]×´)¤··

    Re: Script HTML untuk membuat Jam digital Digital

    Post  sicko on Wed Nov 05, 2008 12:14 am

    mun di Fs bisa teu nya Question









    affraid lol! sicko_plok sicko_plok lol! affraid

    c-qie_na2_pasti

    Jumlah posting : 27
    Join date : 31.10.08
    Lokasi : ti taZiek.....

    ngiluann

    Post  c-qie_na2_pasti on Sat Nov 08, 2008 2:07 am

    sarua jeung siko..........

    mun di Fs bisa teu nya
    avatar
    galieleo_hack

    Jumlah posting : 20
    Join date : 29.10.08
    Age : 31
    Lokasi : bandung

    Re: Script HTML untuk membuat Jam digital Digital

    Post  galieleo_hack on Sun Nov 09, 2008 11:11 am

    Bisa jiga na mah.......Wink)

    di blog bisa, di FS kuduna mah bisa...... Very Happy

    Sponsored content

    Re: Script HTML untuk membuat Jam digital Digital

    Post  Sponsored content


      Waktu sekarang Sat Sep 23, 2017 4:01 pm