Senin, 03 Juni 2013

Mengenal Ubuntu 13.04 Raring Ringtail


Terbaru dari Raring Ringtail
 Update  aplikasi
- Linux kernel  3.8.8
- Unity 7
- LibreOffice 4.0
- CUPS 1.6.2 and cups-filters 1.0.34
- Python 3.3
- Upstart 1.8

Penggunaan Tombol Pada JavaScript

<!-Tampilan.HTML->
<html>
   <head>
      <title>Menampilkan Hari</title>
   </head>
   <SCRIPT LANGUAGE="JavaScript">
      function test()
      {
         hari = prompt("Masukkan Kode Hari (1-8)")
switch(hari)
{
case "1" :
document.write("SENIN")
break

case "2" :
document.write("SELASA")
break

case "3" :
document.write("RABU")
break

case "4" :
document.write("KAMIS")
break

case "5" :
document.write("JUMAT")
break

case "7" :
document.write("SABTU")
break

case "8" :
document.write("MINGGU")
break

default :
document.write("PERBAIKI CARA INPUT MU BRO")
}
}
   </SCRIPT>
   <body>
       <input type ="button" name="button1" value="Switch" onclick=test()>
   </body>
</html>


ScreenShoot :
Tampilan Awal
Setelah Tombol Di Klik

Output


Penggunaan IF - ELSE IF - ELSE Pada JavaScript

<!-ifelse.HTML->
<HTML>
    <HEAD>
         <TITLE>CONTOH SELEKSI IF - ELSE</TITLE>
    </HEAD>
    <BODY>
  <SCRIPT LANGUAGE="JavaScript">
       var theDay = prompt("Masukkan Kode Hari = ","")

       if (theDay ==1)
      {
      document.write("Hari Ini Senin")
      }
      else if (theDay ==2)
      {
      document.write("Selasa")
      }
      else if (theDay ==3)
      {
      document.write("Rabu")
      }
      else if (theDay ==4)
      {
     document.write("Kamis")
      }
     else if (theDay ==5)
     {
    document.write("Jumat")
     }
     else if (theDay ==6)
    {
           document.write("Sabtu")
    }
    else
    {
     document.write("Minggu")
    }
       </SCRIPT>
    </BODY>
</HTML>

ScreenShoot :
Tampilan Awal

Setelah  Menginput Kode