Kamis, 05 Juli 2012

CSS Background

Background Color:








My CSS web page!

Hello world! This is a ged4ng.blogspot.com example.


ini hasilnya:













CSS background-color example!

This is a text inside a div element.

This paragraph has its own background color.

We are still in the div element.

ini hasilnya:








Background Image:







Hello World!


ini hasilnya:











Hello World!

This text is not easy to read on this background image.


ini hasilnya:







Background Image - Repeat Horizontally or Vertically:







Hello World!


ini hasilnya:










Hello World!


ini hasilnya:





Background Image - Set position and no-repeat:







Hello World!

W3Schools background image example.

The background image is only showing once, but it is disturbing the reader!


ini hasilnya:













Hello World!

W3Schools background no-repeat, set postion example.

Now the background image is only shown once, and positioned away from the text.

In this example we have also added a margin on the right side, so the background image will never disturb the text.


ini hasilnya:

Rabu, 04 Juli 2012

JavaScript Tutorial

Writing to The HTML Document:





My First Web Page


ini hasilnya:




Changing HTML Elements:





My First Web Page


ini hasilnya:





JavaScript in :




My First Web Page


ini hasilnya:





JavaScript in :









My First Web Page


ini hasilnya:

Tutorial HTML




My Name Ssw

My paragraf pertama.


ini hasilnya:




HTML Headings:




This is heading 1

This is heading 2

This is heading 3

This is heading 4

This is heading 5
This is heading 6
ini hasilnya:




HTML Paragraphs:



This is a paragraph.

This is a paragraph.

This is a paragraph.


ini hasilnya:





HTML Links:




This is a link




ini hasilnya:
This is a link

Rabu, 30 Mei 2012

contoh array dalam #C

contoh arraySatuDimensi dalam #C
namespace array_satu_dimensi
{
 class Program
 {
  public static void Main(string[] args)
  {
   // deklarasi dan inisialisasi array
   string[] mahasiswa = new string[3];
   
   // pengisian elemen array
   mahasiswa[0]="rudi dharmawan";
   mahasiswa[1]="ahmad rifai";
   mahasiswa[2]= "bayu wirana";
   
   // pengisian /menampilkan elemen array
   Console.WriteLine("Indeks terahir = {0}",mahasiswa[2]);
   Console.WriteLine("Indeks tengah = {0}",mahasiswa[1]);
   Console.WriteLine("Indeks pertama = {0}", mahasiswa[0]);
   
   
   Console.Write("Press any key to continue . . . ");
   Console.ReadKey(true);
  }
 }
}




contoh Array2Dimensi dalam #C
namespace Array2Dimensi
{
 class Program
 {
  public static void Main(string[] args)
  {
   // deklrasi & inisialisasi array
   
   string [,] ayam= new string [2,2];
   
   // isi
   ayam[0,0]= "lonjong";
   ayam[0,1]="manis";
   ayam[1,0]="lunak";
   ayam[1,1]="gatel";
   
   //menampilkan / membaca
   Console.WriteLine(ayam[0,0]);
   Console.WriteLine(ayam[0,1]);
   Console.WriteLine(ayam[1,0]+ayam[0,0]);
   Console.WriteLine(ayam[1,1]+ayam[0,1]);
   
    
   // TODO: Implement Functionality Here
   
   Console.Write("Press any key to continue . . . ");
   Console.ReadKey(true);
  }
 }
}