Perhatikan kalimat yang Anda masukkan di tiap-tiap baris dan harus diapit tanda kutip. Setiap kalimat per baris akan muncul di setiap halaman yang dibuka. Dengan contoh 5 baris kalimat di bawah Anda dapat menambahkan dengan kalimat yang lain seperti yang ada dalam blog ini, yang penting setiap penambahan baris maka nomor (angka) urut harus ditambahkan juga. Berikut javascriptnya dan selamat mencoba :
<html>
<head>
<script language="JavaScript">
var Quotation=new Array() // do not change this!
Quotation[0] = "Aksesoris Fashion";
Quotation[1] = "Aksesoris HP";
Quotation[2] = "Aksesoris Komputer";
Quotation[3] = "Aksesoris Mobil";
Quotation[4] = "Aksesoris Motor";
Quotation[5] = "Alat Keamanan";
Quotation[6] = "Elektronik";
Quotation[7] = "Gadget Komputer";
Quotation[8] = "Handphone";
Quotation[9] = "Jam Tangan";
Quotation[10] = "Kamera Tersembunyi";
Quotation[11] = "Kecantikan";
Quotation[12] = "Kesehatan";
Quotation[13] = "Komputer";
Quotation[14] = "Pemutar Musik";
Quotation[15] = "Perlengkapan Kerja";
Quotation[16] = "Unik dan Hobby";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
</script>
</head>
<body>
<script language="JavaScript">
showQuotation(); //menampilkan random kata
</script>
</body>
</html>
Semoga bermanfaat..!<html>
<head>
<script language="JavaScript">
var Quotation=new Array() // do not change this!
Quotation[0] = "Aksesoris Fashion";
Quotation[1] = "Aksesoris HP";
Quotation[2] = "Aksesoris Komputer";
Quotation[3] = "Aksesoris Mobil";
Quotation[4] = "Aksesoris Motor";
Quotation[5] = "Alat Keamanan";
Quotation[6] = "Elektronik";
Quotation[7] = "Gadget Komputer";
Quotation[8] = "Handphone";
Quotation[9] = "Jam Tangan";
Quotation[10] = "Kamera Tersembunyi";
Quotation[11] = "Kecantikan";
Quotation[12] = "Kesehatan";
Quotation[13] = "Komputer";
Quotation[14] = "Pemutar Musik";
Quotation[15] = "Perlengkapan Kerja";
Quotation[16] = "Unik dan Hobby";
var Q = Quotation.length;
var whichQuotation=Math.round(Math.random()*(Q-1));
function showQuotation(){document.write(Quotation[whichQuotation]);}
</script>
</head>
<body>
<script language="JavaScript">
showQuotation(); //menampilkan random kata
</script>
</body>
</html>
1 comments:
Write commentsBermanfaat Banget....
ReplyConversionConversion EmoticonEmoticon