tag:blogger.com,1999:blog-37460406382073607632024-03-08T02:46:38.605-08:00Permainan Tebak KataIndra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-3746040638207360763.post-79597165929669019422013-01-26T06:18:00.003-08:002013-01-27T07:02:56.633-08:00Nama-nama Gunung di Indonesia
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama-nama gunung di Indonesia</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 129;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "AGUNG BALI";
this[1] = "ABANG BALI";
this[2] = "ANJASMARA JAWA TIMUR";
this[3] = "ARGOPURO JAWA TIMUR";
this[4] = "ARJUNO JAWA TIMUR";
this[5] = "ASEUPAN BANTEN";
this[6] = "AWU SULAWESI UTARA";
this[7] = "BALEASE SULAWESI SELATAN";
this[8] = "BALURAN JAWA TIMUR";
this[9] = "BANDAHARA NAGRO ACEH DARUSALAM";
this[10] = "BATOK JAWA TIMUR";
this[11] = "BATUR BALI";
this[12] = "BATUBARA LAUT FLORES";
this[13] = "BATUSIBELA MALUKU UTARA";
this[14] = "BAWAKARAENG SULAWESI SELATAN";
this[15] = "BOTTO KABOBONG SULAWESI SELATAN";
this[16] = "BROMO JAWA TIMUR";
this[17] = "BUKITUNGGUL JAWA BARAT";
this[18] = "BUR NI TELONG NANGRO ACEH DARUSSALAM";
this[19] = "BURANGRANG JAWA BARAT";
this[20] = "CIKURAI JAWA BARAT";
this[21] = "CIREMAI JAWA BARAT KUNINGAN";
this[22] = "DEMPO SUMATERA SELATAN";
this[23] = "GALUNGGUNG JAWA BARAT";
this[24] = "GAMALAMA TERNATE";
this[25] = "GAMKONORA MALUKU UTARA";
this[26] = "GEDE JAWA BARAT";
this[27] = "HALIMUN BANTEN";
this[28] = "KAWAH IJEN JAWA TIMUR";
this[29] = "PUNCAK JAYA PAPUA";
this[30] = "KABAENA PULAU KABAENA SULAWESI TENGGARA";
this[31] = "KARANG BANTEN";
this[32] = "KARANGETAN SULAWESI UTARA";
this[33] = "KELUD JAWA TIMUR";
this[34] = "KERINCI JAMBI";
this[35] = "KRAKATAU SELAT SUNDA";
this[36] = "LALAKON BANDUNG JAWA BARAT";
this[37] = "LASEM REMBANG JAWA TENGAH";
this[38] = "LAWU JAWA TIMUR";
this[39] = "LEUSER NANGRO ACEH DARUSSALAM";
this[40] = "LOMPOBATTANG SULAWESI SELATAN";
this[41] = "NEPO SULAWESI SELATAN";
this[42] = "MALABAR JAWA BARAT";
this[43] = "MARAPI SUMATERA BARAT";
this[44] = "MEKONGGA SULAWESI TENGGARA";
this[45] = "MERAPI JAWA TENGAH";
this[46] = "MERBABU JAWA TENGAH";
this[47] = "MURIA JAWA TENGAH";
this[48] = "PANGRANGO JAWA BARAT";
this[49] = "PAPANDAYAN JAWA BARAT";
this[50] = "PATUHA JAWA BARAT";
this[51] = "PENANGGUNGAN JAWA TIMUR";
this[52] = "PERSIKON NANGRO ACEH DARUSSALAM";
this[53] = "PESAGI LAMPUNG";
this[54] = "PESAWARAN LAMPUNG";
this[55] = "PRAHU JAWA TENGAH";
this[56] = "PULASARI BANTEN";
this[57] = "RAJABASA LAMPUNG";
this[58] = "RAUNG JAWA TIMUR";
this[59] = "RINJANI NUSA TENGGARA BARAT";
this[60] = "SAGO SUMATERA BARAT";
this[61] = "SALAK JAWA BARAT";
this[62] = "SANGGABUANA JAWA BARAT";
this[63] = "SEBLAT BENGKULU";
this[64] = "SEMERU JAWA TIMUR";
this[65] = "SEMINUNG LAMPUNG";
this[66] = "SIBAYAK SUMATERA UTARA";
this[67] = "SIBUATAN SUMATERA UTARA";
this[68] = "SIHAPUABU SUMATERA UTARA";
this[69] = "SINABUNG SUMATERA UTARA";
this[70] = "SINGGALANG SUMATERA BARAT";
this[71] = "SLAMET JAWA TENGAH";
this[72] = "SUMBING JAWA TENGAH";
this[73] = "SUNDORO JAWA TENGAH";
this[74] = "SORIK MARAPI SUMATERA UTARA";
this[75] = "TALAMAU SUMATERA BARAT";
this[76] = "TALANG SUMATERA BARAT";
this[77] = "TAMBORA PULAU SUMBAWA NTB";
this[78] = "TAMPOMAS SUMEDANG JAWA BARAT";
this[79] = "TANDIKAT SUMATERA BARAT";
this[80] = "TANGGAMUS LAMPUNG";
this[81] = "TANGKUBAN PARAHU JAWA BARAT";
this[82] = "WAYANG JAWA BARAT";
this[83] = "WELIRANG JAWA TIMUR";
this[84] = "WILIS JAWA TIMUR";
this[85] = "PUNCAK CARSTENZ PYRAMID PAPUA";
this[86] = "PUNCAK JAYA PAPUA";
this[87] = "PUNCAK TRIKORA PAPUA";
this[88] = "PUNCAK IDENBERG PAPUA";
this[89] = "DOM PAPUA";
this[90] = "DERABARO PAPUA";
this[91] = "YAMIN PAPUA";
this[93] = "YARAMAMAFAKA PAPUA";
this[94] = "REDOURA PAPUA";
this[95] = "TOGWOMERI PAPUA";
this[96] = "MANDALA PAPUA";
this[97] = "NGGA PILISIT PAPUA";
this[98] = "FOJA PAPUA";
this[99] = "CYRCLOOP PAPUA";
this[100] = "KEMBAR I DAN II JAWA";
this[101] = "PALUNG KALIMANTAN BARAT";
this[102] = "RAYA KALIMANTAN TENGAH";
this[103] = "LIANGPRAN KALIMANTAN TIMUR";
this[104] = "HALAU KALIMANTAN SELATAN";
this[105] = "LOKON SULAWESI";
this[106] = "KLABAT SULAWESI";
this[107] = "MAHAWU SULAWESI";
this[108] = "LATIMOJONG SULAWESI";
this[109] = "SOPUTAN SULAWESI";
this[110] = "AMBANG KABUPATEN BOLAANG MONGONDOW TIMUR SULAWESI";
this[111] = "BATUKARU";
this[112] = "EBULOLOBO";
this[113] = "INIELIKA";
this[114] = "KONDO";
this[115] = "NANGI";
this[116] = "SANGEANG";
this[117] = "ANAK RANAKAH";
this[118] = "ABULABO";
this[119] = "EGON";
this[120] = "ILIBOLENG";
this[121] = "ILIWERUNG";
this[122] = "INERIE";
this[123] = "KEKNEMO";
this[124] = "KELIMUTU";
this[125] = "LEWOTOBI LAKI LAKI";
this[126] = "LEWOTOBI PEREMPUAN";
this[127] = "LEWOTOLO";
this[128] = "LOREBOLENG";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="gunung yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-32887185323557914852013-01-14T08:19:00.000-08:002013-01-14T08:19:10.212-08:00Kota/Kabupaten di Pulau Sumatera<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama Kota-Kabupaten di Pulau Sumatera</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 150;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "ACEH SELATAN TAPAK TUA";
this[1] = "ACEH TENGGARA KUTACANE";
this[2] = "ACEH TIMUR LANGSA";
this[3] = "ACEH TENGAH TAKENGON";
this[4] = "ACEH BARAT MEULABOH";
this[5] = "ACEH BESAR JANTHO";
this[6] = "PIDIE SIGLI";
this[7] = "ACEH UTARA LHOKSUKON";
this[8] = "SIMEULEU SINABANG";
this[9] = "ACEH SINGKIL";
this[10] = "BIREUEN";
this[11] = "ACEH BARAT DAYA BLANGPIDIE";
this[12] = "GAYO LUES BLANGKEJEREN";
this[13] = "ACEH JAYA CALANG";
this[14] = "NAGAN RAYA SUKA MAKMUE";
this[15] = "ACEH TAMIANG KARANG BARU";
this[16] = "BENER MERIAH SIMPANG TIGA REDELONG";
this[17] = "PIDIE JAYA MEUREUNDU";
this[18] = "BANDA ACEH";
this[19] = "SABANG";
this[20] = "LHOKSEUMAWE";
this[21] = "LANGSA";
this[22] = "SUBULUSSALAM";
this[23] = "TAPANULI TENGAH SIBOLGA";
this[24] = "TAPANULI UTARA TARUTUNG";
this[25] = "TAPANULI SELATAN PADANG SIDEMPUAN";
this[26] = "NIAS GUNUNG SITOLI";
this[27] = "LANGKAT STABAT";
this[28] = "KARO KABANJAHE";
this[29] = "DELI SERDANG LUBUK PAKAM";
this[30] = "SIMALUNGUN PEMATANG SIANTAR";
this[31] = "ASAHAN KISARAN";
this[32] = "LABUHAN RATU RANTAU PRAPAT";
this[33] = "DAIRI SIDIKALANG";
this[34] = "TOBA SAMOSIR BALIGE";
this[35] = "MANDAILING NATAL PANYABUNGAN";
this[36] = "NIAS SELATAN TELUK DALAM";
this[37] = "PAKPAK BHARAT SALAK";
this[38] = "HUMBANG HASUNDUTAN DOLOK SANGGUL";
this[39] = "SAMOSIR PANGURURAN";
this[40] = "SERDANG BEDAGAI SEI RAMPAH";
this[41] = "BATU BARA LIMA PULUH";
this[42] = "PADANG LAWAS UTARA GUNUNG TUA";
this[43] = "LABUHAN BATU UTARA AEK KANOPAN";
this[44] = "LABUHAN BATU SELATAN KOTA PINANG";
this[45] = "NIAS UTARA LOTU";
this[46] = "NIAS BARAT LAHOMI";
this[47] = "MEDAN";
this[48] = "PEMATANGSIANTAR";
this[49] = "SIBOLGA";
this[50] = "TANJUNG BALAI";
this[51] = "BINJAI";
this[52] = "TEBING TINGGI";
this[53] = "PADANGSIDEMPUAN";
this[54] = "GUNUNG SITOLI";
this[55] = "PESISIR SELATAN PAINAN";
this[56] = "SOLOK AROSUKA";
this[57] = "SIJUNJUNG MUARO SIJUNJUNG";
this[58] = "TANAH DATAR BATUSANGKAR";
this[59] = "PADANG PARIAMAN NAGARI MALINTANG";
this[60] = "AGAM LUBUK BASUNG";
this[61] = "LIMA PULUH KOTA SARILAMAK";
this[62] = "PASAMAN LUBUK SIKAPING";
this[63] = "KEPULAUAN MENTAWAI TUAPEJAT";
this[64] = "DHARMASRAYA PULAU PUNJUNG";
this[65] = "SOLOK SELATAN PADANG ARO";
this[66] = "PASAMAN BARAT SIMPANG EMPAT";
this[67] = "PADANG";
this[68] = "SOLOK";
this[69] = "SAWAHLUNTO";
this[70] = "PADANGPANJANG";
this[71] = "BUKIT TINGGI";
this[72] = "PAYAKUMBUH";
this[73] = "PARIAMAN";
this[74] = "KAMPAR BANGKINANG";
this[75] = "INDRAGIRI HULU RENGAT";
this[76] = "BENGKALIS";
this[77] = "INDRAGIRI HILIR TEMBILAHAN";
this[78] = "PELALAWAN PANGKALAN KERINCI";
this[79] = "ROKAN HULU PASIRPANGARAIRAN";
this[80] = "ROKAN HILIR UJUNG TANJUNG";
this[81] = "SIAK SRIINDRAPURA";
this[82] = "KUANTAN SINGINGI TELUK KUANTAN";
this[83] = "KEPULAUAN MERANTI TEBING TINGGI";
this[84] = "PEKANBARU";
this[85] = "DUMAI";
this[86] = "KERINCI SUNGAI PENUH";
this[87] = "MERANGIN BANGKO";
this[88] = "SAROLANGUN";
this[89] = "BATANGHARI MUARA BULIAN";
this[90] = "MUARO JAMBI SENGETI";
this[91] = "TANJUNG JABUNG BARAT KUALA TUNGKAL";
this[93] = "TANJUNG JABUNG TIMUR MUARA SABAK";
this[94] = "BUNGO MUARA BUNGO";
this[95] = "TEBO MUARA TEBO";
this[96] = "JAMBI";
this[97] = "SUNGAI PENUH";
this[98] = "OGAN KOMERING ULU BATU RAJA";
this[99] = "OGAN KOMERING ILIR KAYU AGUNG";
this[100] = "MUARA ENIM";
this[101] = "LAHAT";
this[102] = "MUSI RAWAS MUARABELITI";
this[103] = "MUSI BANYUASIN SEKAYU";
this[104] = "OKU TIMUR MARTAPURA";
this[105] = "OKU SELATAN MUARADUA";
this[106] = "OGAN ILIR INDRALAYA";
this[107] = "EMPAT LAWANG TEBING TINGGI";
this[108] = "PALEMBANG";
this[109] = "PAGAR ALAM";
this[110] = "LUBUK LINGGAU";
this[111] = "PRABUMULIH";
this[112] = "BENGKULU SELATAN MANNA";
this[113] = "REJANG LEBONG CURUP";
this[114] = "BENGKULU UTARA ARGA MAKMUR";
this[115] = "KAUR BINTUHAN";
this[116] = "SELUMA TAIS";
this[117] = "MUKO MUKO";
this[118] = "LEBONG TUBEI";
this[119] = "KEPAHIANG";
this[120] = "BENGKULU TENGAH KARANG TINGGI";
this[121] = "BENGKULU";
this[122] = "LAMPUNG SELATAN KALIANDA";
this[123] = "LAMPUNG TENGAH GUNUNG SUGIH";
this[124] = "LAMPUNG UTARA KOTABUMI";
this[125] = "LAMPUNG BARAT LIWA";
this[126] = "TULANG BAWANG MENGGALA";
this[127] = "TANGGAMUS KOTA AGUNG";
this[128] = "LAMPUNG TIMUR SUKADANA";
this[129] = "WAY KANAN BLAMBANGAN UMPU";
this[130] = "PESAWARAN GEDONG TATAAN";
this[131] = "PRINGSEWU";
this[132] = "MESUJI";
this[133] = "TULANG BAWANG BARAT TENGAH";
this[134] = "BANDAR LAMPUNG";
this[135] = "METRO";
this[136] = "BANGKA SUNGAI LANGKAT";
this[137] = "BELITUNG TANJUNG PANDAN";
this[138] = "BANGKA SELATAN TOBALI";
this[139] = "BANGKA TENGAH KOBA";
this[140] = "BANGKA BARAT MENTOK";
this[141] = "BELITUNG TIMUR MANGGAR";
this[142] = "PANGKAL PINANG";
this[143] = "BINTAN BANDAR SERI BENTAN";
this[144] = "KARIMUN TANJUNG BALAI KARIMUN";
this[145] = "NATUNA RANAI";
this[146] = "LINGGA DAIK LINGGA";
this[147] = "KEPULAUAN ANAMBAS TAREMPA";
this[148] = "BATAM";
this[149] = "TANJUNG PINANG";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="kota-kabupaten yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-53820533622788596432013-01-09T08:05:00.000-08:002013-01-09T08:05:26.918-08:00Nama-nama Candi di Indonesia<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama-nama Candi</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 127;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "CANGKUANG GARUT";
this[1] = "JIWA KERAWANG";
this[2] = "SITUS PERCANDIAN BATUJAYA KERAWANG";
this[3] = "BOROBUDUR MAGELANG";
this[4] = "MENDUT MAGELANG";
this[5] = "PAWON MAGELANG";
this[6] = "BUBRAH PRAMBANAN";
this[7] = "NGAWEN MUNTILAN MAGELANG";
this[8] = "ASU MAGELANG";
this[9] = "LUMBUNG MAGELANG";
this[10] = "CANGGAL ATAU GUNUNG WUKIR MAGELANG";
this[11] = "SELAGRIYA MAGELANG";
this[12] = "LOSARI SALAM MAGELANG";
this[13] = "GUNUNGSARI MUNTILAN MAGELANG";
this[14] = "PRAMBANAN KLATEN";
this[15] = "PLAOSAN LOR PRAMBANAN KLATEN";
this[16] = "PLAOSAN KIDUL PRAMBANAN KLATEN";
this[17] = "SEWU PRAMBANAN KLATEN";
this[18] = "LUMBUNG PRAMBANAN KLATEN";
this[19] = "SOJIWAN PRAMBANAN KLATEN";
this[20] = "SUKUH KARANGANYAR";
this[21] = "CETHO KARANGANYAR";
this[22] = "KETHEK KARANGANYAR";
this[23] = "GEDONG SONGO SEMARANG";
this[24] = "DIENG BANJARNEGARA";
this[25] = "ARJUNA";
this[26] = "PUNTADEWA";
this[27] = "BIMA";
this[28] = "GATOTKACA";
this[29] = "SEMAR";
this[30] = "SRIKANDI";
this[31] = "DWARAWATI";
this[32] = "SEMBADRA";
this[33] = "BOGANG WONOSOBO";
this[34] = "PRINGAPUS PARAKAN TEMANGGUNG";
this[35] = "GODONGSULI BULU TEMANGGUNG";
this[36] = "DUKUH SALATIGA";
this[37] = "SITUS ARCA GUPOLO";
this[38] = "SITUS GOA SENTONO";
this[39] = "SITUS MANTUP";
this[40] = "KALASAN";
this[41] = "BANYUNIBO";
this[42] = "RATU BOKO";
this[43] = "SAMBI SARI";
this[44] = "SARI";
this[45] = "IJO";
this[46] = "BARONG";
this[47] = "KEDULAN";
this[48] = "GEBANG";
this[49] = "MORANGAN";
this[50] = "GAMPINGAN";
this[51] = "WATU GUDHIG";
this[52] = "SITUS PAYAK BANTUL";
this[53] = "KEBLAK";
this[54] = "ABANG";
this[55] = "MIRI";
this[56] = "DAWANGSARI";
this[57] = "SITUS CANDI GEMBIROWATI";
this[58] = "GAMBAR";
this[59] = "BADUT MALANG";
this[60] = "JAGO TUMPANG MALANG";
this[61] = "KIDAL MALANG";
this[62] = "SINGOSARI MALANG";
this[63] = "SANGGARITI BATU MALANG";
this[64] = "SUMBERAWAN SINGOSARI MALANG";
this[65] = "RAMBUT MONTE KRISIK NGANTANG MALANG";
this[66] = "PANATARAN BLITAR";
this[67] = "SELAKELIR";
this[68] = "SURAWANA PARE KEDIRI";
this[69] = "TIGAWANGI PARE KEDIRI";
this[70] = "KOMPLEKS PERTAPAAN GOA SELOMANGLENG MOJOROTO KEDIRI";
this[71] = "DOROK PARE KEDIRI";
this[72] = "LOR LOCERET NGANJUK";
this[73] = "NGETOS NGANJUK";
this[74] = "RIMBI NGRIMBI JOMBANG";
this[75] = "JAWI PRIGEN PASURUAN";
this[76] = "KEBO IRENG KEJAPANAN PASURUAN";
this[77] = "GUNUNG GANGSIR PASURUAN";
this[78] = "KOMPLEKS PERCANDIAN GUNUNG PENANGGUNGAN TRAWAS MOJOKERTO";
this[79] = "PETIRTAAN JALATUNDA";
this[80] = "KAMA I";
this[81] = "GAJAH MUNGKUR";
this[82] = "KAMA II";
this[83] = "WAYANG";
this[84] = "KENDALISADA";
this[85] = "PASETRAN";
this[86] = "GAPURA JEDONG";
this[87] = "PETIRTAAN WATU TETEK";
this[88] = "PETIRTAAN BELAHAN";
this[89] = "LEMARI";
this[90] = "GENTONG";
this[91] = "BRANGKAL NGORO MOJOSARI";
this[93] = "TIKUS";
this[94] = "MENAK JINGGA";
this[95] = "BRAHU";
this[96] = "GENTONG";
this[97] = "GAPURA WRINGIN LAWANG";
this[98] = "GAPURA BAJANG RATU";
this[99] = "KOLAM SERAGAN";
this[100] = "KEDATON";
this[101] = "RECO LANANG";
this[102] = "RECO WADON";
this[103] = "KOMLEKS PERCANDIAN GUNUNG WELIRANG";
this[104] = "WATU MEJA";
this[105] = "WATU KACA";
this[106] = "SAWENTAR GARUM BLITAR";
this[107] = "SIMPING BLITAR";
this[108] = "KOMPLEKS PERCANDIAN PANATARAN BLITAR";
this[109] = "GAMBAR WETAN BLITAR";
this[110] = "JABUNG PROBOLINGGO";
this[111] = "GAYATRI ATAU BOYOLANGU TULUNGAGUNG";
this[112] = "DADI BOYOLANGU TULUNGAGUNG";
this[113] = "CUNGKUP ATAU SANGGRAHAN BOYOLANGU TULUNGAGUNG";
this[114] = "SELOMANGLENG ATAU PERTAPAAN SELOMANGLENG BOYOLANGU TULUNGAGUNG";
this[115] = "PENDEM TRENGGALEK";
this[116] = "PARI PORONG SIDOARJO";
this[117] = "SUMUR PORONG SIDOARJO";
this[118] = "GUNUNG KAWI GIANYAR";
this[119] = "SITUS GOA GAJAH TAMPAKSIRING GIANYAR";
this[120] = "MUARA TAKUS RIAU";
this[121] = "BIARO BAHAL TAPANULI SELATAN";
this[122] = "MUARO JAMBI";
this[123] = "AGUNG AMUNTAI TENGAH";
this[124] = "LARAS TAPIN";
this[125] = "SITUS PEMATANG BATA TAPIN";
this[126] = "TANJUNGPURA DESA BENUA LAMA";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="CANDI yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-45771277449883167872013-01-06T08:00:00.002-08:002013-01-06T08:00:54.623-08:00Kota/Kabupaten di Pulau Bali
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama Kota-Kabupaten di Pulau Bali</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 9;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "JEMBARAN NEGARA";
this[1] = "TABANAN";
this[2] = "BADUNG MENGWI";
this[3] = "GIANYAR";
this[4] = "KLUNGKUNG SEMARAPURA";
this[5] = "BANGLI";
this[6] = "KARANGASEM";
this[7] = "BULELENG SINGARAJA";
this[8] = "DENPASAR";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "j") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="kota-kabupaten yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-57044600264841931992013-01-05T09:06:00.000-08:002013-01-05T09:06:04.584-08:00Kota/Kabupaten di Pulau Jawa
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama Kota-Kabupaten di Pulau Jawa</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 98;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "BOGOR";
this[1] = "SUKABUMI";
this[2] = "CIANJUR";
this[3] = "BANDUNG";
this[4] = "GARUT";
this[5] = "TASIKMALAYA";
this[6] = "CIAMIS";
this[7] = "KUNINGAN";
this[8] = "CIREBON";
this[9] = "MAJALENGKA";
this[10] = "SUMEDANG";
this[11] = "INDRAMAYU";
this[12] = "SUBANG";
this[13] = "PURWAKARTA";
this[14] = "KARAWANG";
this[15] = "BEKASI";
this[16] = "BANDUNG BARAT";
this[17] = "CILACAP";
this[18] = "BANYUMAS";
this[19] = "PURBALINGGA";
this[20] = "BANJARNEGARA";
this[21] = "KEBUMEN";
this[22] = "PURWOREJO";
this[23] = "WONOSOBO";
this[24] = "MAGELANG";
this[25] = "BOYOLALI";
this[26] = "KLATEN";
this[27] = "SUKOHARJO";
this[28] = "WONOGIRI";
this[29] = "KARANGANYAR";
this[30] = "SRAGEN";
this[31] = "GROBOGAN";
this[32] = "BLORA";
this[33] = "REMBANG";
this[34] = "PATI";
this[35] = "KUDUS";
this[36] = "JEPARA";
this[37] = "DEMAK";
this[38] = "SEMARANG";
this[39] = "TEMANGGUNG";
this[40] = "KENDAL";
this[41] = "BATANG";
this[42] = "PEKALONGAN";
this[43] = "PEMALANG";
this[44] = "TEGAL";
this[45] = "BREBES";
this[46] = "MAGELANG";
this[47] = "SURAKARTA";
this[48] = "SALATIGA";
this[49] = "KULON PROGO";
this[50] = "BANTUL";
this[51] = "GUNUNG KIDUL";
this[52] = "SLEMAN";
this[53] = "YOGYAKARTA";
this[54] = "PACITAN";
this[55] = "PONOROGO";
this[56] = "TRENGGALEK";
this[57] = "TULUNGAGUNG";
this[58] = "BLITAR";
this[59] = "KEDIRI";
this[60] = "MALANG";
this[61] = "LUMAJANG";
this[62] = "JEMBER";
this[63] = "BANYUWANGI";
this[64] = "BONDOWOSO";
this[65] = "SITUBONDO";
this[66] = "PROBOLINGGO";
this[67] = "PASURUAN";
this[68] = "SIDOARJO";
this[69] = "MOJOKERTO";
this[70] = "JOMBANG";
this[71] = "NGANJUK";
this[72] = "MADIUN";
this[73] = "MAGETAN";
this[74] = "NGAWI";
this[75] = "BOJONEGORO";
this[76] = "TUBAN";
this[77] = "LAMONGAN";
this[78] = "GRESIK";
this[79] = "BANGKALAN";
this[80] = "SAMPANG";
this[81] = "PAMEKASAN";
this[82] = "SUMENEP";
this[83] = "SURABAYA";
this[84] = "BATU";
this[85] = "PANDEGLANG";
this[86] = "LEBAK";
this[87] = "TANGERANG";
this[88] = "SERANG";
this[89] = "CILEGON";
this[90] = "TANGERANG SELATAN CIPUTAT";
this[91] = "KEPULAUAN SERIBU";
this[93] = "JAKARTA PUSAT TANAH ABANG";
this[94] = "JAKARTA UTARA TANJUNG PRIOK";
this[95] = "JAKARTA BARAT GROGOL PETAMBURAN";
this[96] = "JAKARTA SELATAN KEBAYORAN BARU";
this[97] = "JAKARTA TIMUR CAKUNG";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="kota-kabupaten yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-32629592372240832762013-01-05T09:04:00.002-08:002013-01-05T09:04:45.310-08:00Nama Buah-buahan
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama Buah-buahan</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 28;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "KIWI";
this[1] = "PEPAYA";
this[2] = "JERUK";
this[3] = "MANGGA";
this[4] = "JERUK LEMON";
this[5] = "ANGGUR KISMIS MERAH";
this[6] = "JERUK MANDARIN";
this[7] = "JERUK KEPROK";
this[8] = "ALPUKAT";
this[9] = "APRIKOT";
this[10] = "RASPERSI";
this[11] = "JERUK LIMO";
this[12] = "STROBERI";
this[13] = "ANGGUR";
this[14] = "MELON";
this[15] = "NANAS";
this[16] = "KESEMEK";
this[17] = "THOMPSON";
this[18] = "ANGGUR EMPRESS";
this[19] = "PISANG";
this[20] = "PLUM";
this[21] = "PEACH";
this[22] = "APEL";
this[23] = "PIR";
this[24] = "CERI";
this[25] = "NETRANINE";
this[26] = "SEMANGKA";
this[27] = "BELEWAH";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="buah yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-50153247855438252962013-01-03T08:34:00.000-08:002013-01-04T08:36:23.262-08:00Nama-nama Binatang
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Nama Binatang</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 215;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "ALAP ALAP";
this[1] = "ANGSA";
this[2] = "ANJING";
this[3] = "ANOA";
this[4] = "ANTILOP";
this[5] = "APHID";
this[6] = "ARWANA";
this[7] = "AYAM";
this[8] = "AYAM KALKUN";
this[9] = "AYAM KATE";
this[10] = "BABI";
this[11] = "BADAK";
this[12] = "BAJING";
this[13] = "BANGAU";
this[14] = "BANTENG";
this[15] = "BEBEK";
this[16] = "BEKANTAN";
this[17] = "BEKICOT";
this[18] = "BELALANG";
this[19] = "BELATUNG";
this[20] = "BELIBIS";
this[21] = "BELUT";
this[22] = "BEO";
this[23] = "BERANG BERANG";
this[24] = "BERUANG";
this[25] = "BERUK";
this[26] = "BETET";
this[27] = "BETOK";
this[28] = "BIAWAK";
this[29] = "BINTANG LAUT";
this[30] = "BIRI BIRI";
this[31] = "BISON";
this[32] = "BLEKOK";
this[33] = "BUAYA";
this[34] = "BULBUL";
this[35] = "BULUBABI";
this[36] = "BUNGLON";
this[37] = "BURUNG";
this[38] = "BURUNG GEREJA";
this[39] = "BURUNG HANTU";
this[40] = "BURUNG UNTA";
this[41] = "CACING";
this[42] = "CAMAR";
this[43] = "CAPUNG";
this[44] = "CONGCORANG";
this[45] = "CENDRAWASIH";
this[46] = "CERE";
this[47] = "CEREK";
this[48] = "CHEETAH";
this[49] = "CICAK";
this[50] = "CODOT";
this[51] = "CUCAKRAWA";
this[52] = "CUMI CUMI";
this[53] = "CUPANG";
this[54] = "BURUNG DARA";
this[55] = "DOMBA";
this[56] = "DUYUNG";
this[57] = "ELANG";
this[58] = "IKAN GABUS";
this[59] = "GAGAK";
this[60] = "GAJAH";
this[61] = "GAPIH";
this[62] = "GARUDA";
this[63] = "GELATIK";
this[64] = "GORILA";
this[65] = "GURAME";
this[66] = "GURITA";
this[67] = "HAMSTER";
this[68] = "HARIMAU";
this[69] = "HIENA";
this[70] = "HIU";
this[71] = "IGUANA";
this[72] = "IKAN";
this[73] = "ITIK";
this[74] = "JALAK";
this[75] = "JANGKRIK";
this[76] = "JERAPAH";
this[77] = "KADAL";
this[78] = "KAKAK TUA";
this[79] = "KAKI SERIBU";
this[80] = "KALAJENGKING";
this[81] = "KALKUN";
this[82] = "KALONG";
this[83] = "KAMBING";
this[84] = "KAMPRET";
this[85] = "KANGGURU";
this[86] = "KAPIBARA";
this[87] = "KASUARI";
this[88] = "KATAK";
this[89] = "KERBAU";
this[90] = "KECEBONG";
this[91] = "KECOA";
this[93] = "KELABANG";
this[94] = "KELEDAI";
this[95] = "KELELAWAR";
this[96] = "KELINCI";
this[97] = "KENARI";
this[98] = "KEONG";
this[99] = "KEPITING";
this[100] = "KERA";
this[101] = "KERANG";
this[102] = "KERAPU";
this[103] = "KIJANG";
this[104] = "KOALA";
this[105] = "KOBRA";
this[106] = "KODOK";
this[107] = "KOI";
this[108] = "KOMODO";
this[109] = "KUCING";
this[110] = "KUDA";
this[111] = "KUDANIL";
this[112] = "KUDAPONI";
this[113] = "KUMBANG";
this[114] = "KUPU KUPU";
this[115] = "KURA KURA";
this[116] = "KUSKUS";
this[117] = "KUTU";
this[118] = "LABALABA";
this[119] = "LALAT";
this[120] = "LALAT BUAH";
this[121] = "LALER";
this[122] = "LANDAK";
this[123] = "LANDAK LAUT";
this[124] = "LARON";
this[125] = "LEBAH";
this[126] = "LELE";
this[127] = "LEMUR";
this[128] = "LINTAH";
this[129] = "LIPAN";
this[130] = "LIPAS";
this[131] = "LOBSTER";
this[132] = "LUMBA LUMBA";
this[133] = "LUTUNG";
this[134] = "LUWAK";
this[135] = "MACAN";
this[136] = "MACAN KUMBANG";
this[137] = "MACAN TUTUL";
this[138] = "MAKAREL";
this[139] = "MALEO";
this[140] = "MAMBRUK";
this[141] = "MARMUT";
this[142] = "MASKOKI";
this[143] = "MERAK";
this[144] = "MERPATI";
this[145] = "MILKAT";
this[146] = "MONYET";
this[147] = "MUJAIR";
this[148] = "MUSANG";
this[149] = "NGENGAT";
this[150] = "NILA";
this[151] = "NYAMUK";
this[152] = "UNTA";
this[153] = "ORANGUTAN";
this[154] = "OSKAR";
this[155] = "OWA";
this[156] = "PANDA";
this[157] = "PARKIT";
this[158] = "PATIN";
this[159] = "PAUS";
this[160] = "PELATUK";
this[161] = "PENYU";
this[162] = "PERKUTUT";
this[163] = "PESUT";
this[164] = "PINGUIN";
this[165] = "PIPIT";
this[166] = "PIRANHA";
this[167] = "PITON";
this[168] = "RAJAWALI";
this[169] = "RAYAP";
this[170] = "RUBAH";
this[171] = "RUSA";
this[172] = "SALMON";
this[173] = "SANCA";
this[174] = "SAPI";
this[175] = "SAPU SAPU";
this[176] = "SEMUT";
this[177] = "SEPAT";
this[178] = "SERANGATEPUNG";
this[179] = "SERIGALA";
this[180] = "SETANTASMANIA";
this[181] = "SIAMANG";
this[182] = "SINGA";
this[183] = "SIPUT";
this[184] = "SOANG";
this[185] = "SOTONG";
this[186] = "TANGKASI";
this[187] = "TAPIR";
this[188] = "TARANTULA";
this[189] = "TARSIUS";
this[190] = "TAWON";
this[191] = "TEKUKUR";
this[192] = "TENGGIRI";
this[193] = "TERI";
this[194] = "TERIPANG";
this[195] = "TERWELU";
this[196] = "TIKUS";
this[197] = "TIRAM";
this[198] = "TODAK";
this[199] = "TRENGGILING";
this[200] = "TUNA";
this[201] = "TUPAI";
this[202] = "UBUR UBUR";
this[203] = "UDANG";
this[204] = "ULAR";
this[205] = "ULAR DERIK";
this[206] = "ULAR SENDOK";
this[207] = "ULAT";
this[208] = "UNDUR UNDUR";
this[209] = "UNTA";
this[210] = "WALET";
this[211] = "WAUWAU";
this[212] = "WERENG";
this[213] = "YUYU";
this[214] = "ZEBRA";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=8>Waktu Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="binatang yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0tag:blogger.com,1999:blog-3746040638207360763.post-69979563391278970092013-01-02T07:59:00.001-08:002013-01-03T08:35:55.013-08:00Alat Musik Tradisional Indonesia<div dir="ltr" style="text-align: left;" trbidi="on">
<br /></div>
<BODY>
<center>
<table border=0 bgcolor=white width=60% cellspacing=0>
<tr><td>
<center>
<h2><font color=grey>Permainan Tebak Kata</font></h2><br>
<b><h3><font color=blue>Category:</font>
Alat Musik Tradisional</h3></b>
<hr><br>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" + "; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
var Alphabet = new initAlphaArray()
var NumOfWords = 189;
var SaveData = "";
var ImageNum = "";
var LettersSelected = "";
var RandomWord = "";
var DisplayWord = "";
var position = 0;
var word = new WordList();
var expdate = new Date();
var RandomNumber = (expdate.getSeconds())%NumOfWords;
function initAlphaArray() {
this.length = 26
this[0] = "A"
this[1] = "B"
this[2] = "C"
this[3] = "D"
this[4] = "E"
this[5] = "F"
this[6] = "G"
this[7] = "H"
this[8] = "I"
this[9] = "J"
this[10] = "K"
this[11] = "L"
this[12] = "M"
this[13] = "N"
this[14] = "O"
this[15] = "P"
this[16] = "Q"
this[17] = "R"
this[18] = "S"
this[19] = "T"
this[20] = "U"
this[21] = "V"
this[22] = "W"
this[23] = "X"
this[24] = "Y"
this[25] = "Z"
}
function WordList() {
this.length = NumOfWords;
this[0] = "RIFAI DARI ACEH";
this[1] = "GAMELAN BALI CENGCENG";
this[2] = "LESUNG DARI BANTEN";
this[3] = "DOLI DARI BENGKULU";
this[4] = "GAMELAN JAWA DARI YOGYAKARTA";
this[5] = "TANJIDOR TEHYAN DARI JAKARTA";
this[6] = "SERUNAI DARI SUMATERA";
this[7] = "ANGKLUNG DARI JAWA BARAT";
this[8] = "KECAPI DARI JAWA BARAT";
this[9] = "SULING DARI JAWA BARAT";
this[10] = "SITER DARI JAWA BARAT";
this[11] = "GAMELAN BONANG DARI JAWA TIMUR";
this[12] = "TUMA DARI KALIMANTAN BARAT";
this[13] = "BABUN DARI KALIMANTAN SELATAN";
this[14] = "GENDANG DAYAK DARI KALIMANTAN TENGAH";
this[15] = "KETEPONG DARI KALIMANTAN TIMUR";
this[16] = "ZAPIN DARI SUMATERA UTARA";
this[17] = "GENDANG MELAYU DARI SUMATERA UTARA";
this[18] = "ARAMBA DARI SUMATERA UTARA";
this[19] = "SELUANG DARI SUMATERA BARAT";
this[20] = "TALEMPONG PACIK DARI SUMATERA BARAT";
this[21] = "GENDANG MELAYU PULAU BANGKA";
this[22] = "BENDA DARI LAMPUNG";
this[23] = "MARWAD DARI RIAU";
this[24] = "GAMBUS DARI JAMBI";
this[25] = "FLORIT DARI MALUKU";
this[26] = "NAFITRI DARI MALUKU";
this[27] = "TOTOBUANG DARI MALUKU";
this[28] = "TIFA DARI MALUKU";
this[29] = "FU DARI MALUKU UTARA";
this[30] = "CUNGKLIK DARI NUSA TENGGARA BARAT";
this[31] = "SERUNAI DARI NUSA TENGGARA BARAT";
this[32] = "FOI MERE DARI NUSA TENGGARA TIMUR";
this[33] = "SASANDO DARI NUSA TENGGARA TIMUR";
this[34] = "KELOKO DARI NUSA TENGGARA TIMUR";
this[35] = "ATOWO DARI PAPUA";
this[36] = "TIFA DARI PAPUA";
this[37] = "FU DARI PAPUA";
this[38] = "ALUSO DARI SULAWESI SELATAN";
this[39] = "POPONDI DARI SULAWESI SELATAN";
this[40] = "KESO KESO DARI SULAWESI SELATAN";
this[41] = "LEMBANG DARI SULAWESI SELATAN";
this[42] = "GANDA DARI SULAWESI TENGAH";
this[43] = "KOLINTANG DARI SULAWESI UTARA";
this[44] = "ACCORDION DARI SUMATERA SELATAN";
this[45] = "GENDANG SULAWESI BARAT";
this[46] = "GARANTUNG DARI TAPANULI";
this[47] = "SAMPEK DARI DAYAK KALIMANTAN";
}
function availableLetters(i) {
if (LettersSelected.charAt(i)==Alphabet[i])
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12>' +
'<B><A HREF="javascript:LoadNextPage('+i+',\''+Alphabet[i]+
'\')">'+Alphabet[i]+'</A></B></TD>');
else
document.write('<TD ALIGN=CENTER VALIGN=CENTER WIDTH=20 HEIGHT=12> </TD>');
}
function LoadNextPage(selected,letter) {
var j=0;
var HoldLettersSelected = LettersSelected;
LettersSelected = "";
if (selected == 0) {
for (j=1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected = "^" + LettersSelected;
}
else if (selected == 25) {
for (j=0; j<=24; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
}
else {
for (j=0; j<selected; j++)
{
LettersSelected += HoldLettersSelected.charAt(j);
}
LettersSelected += "^";
for (j=selected+1; j<=25; j++) {
LettersSelected += HoldLettersSelected.charAt(j);
}
}
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
history.go(0);
}
// Sets a cookie that will expire in 10 days
expdate.setTime (expdate.getTime() + (1000*60*60*24*10));
if(getCookie("_HangMan") == null)
{
ImageNum = "A";
LettersSelected = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
RandomWord = word[RandomNumber];
SaveData = ImageNum + LettersSelected + RandomWord + "*";
setCookie("_HangMan", SaveData, expdate);
}
else {
SaveData = getCookie("_HangMan");
ImageNum = SaveData.charAt(0);
for (position=1; position<=26; position++) {
LettersSelected += SaveData.charAt(position);
}
for (position=27; position<SaveData.indexOf("*"); position++) {
RandomWord += SaveData.charAt(position);
}
}
DisplayWord = "";
for (i=0; i<RandomWord.length; i++) {
if (RandomWord.charAt(i) == ' ') {
DisplayWord += " ";
}
else {
MatchFound = false;
for (j=0; j<=25; j++) {
if ((LettersSelected.charAt(j) == "^") && (RandomWord.charAt(i) == Alphabet[j])) {
DisplayWord += RandomWord.charAt(i);
MatchFound = true;
}
}
if (!MatchFound) DisplayWord += "-";
}
}
if (ImageNum == "J") {
document.write('<font color=red size=4>Waktu Anda Habis!<br>Answer: "' + RandomWord + '"</font>');
}
else if (RandomWord == DisplayWord) {
document.write('<font color=green size=6>Anda Benar!</font>');
}
else {
document.write('<table>');
document.write('<tr>');
for (i=0; i<13; i++) availableLetters(i);
document.write('</tr>');
document.write('<tr>');
for (i=13; i<26; i++) availableLetters(i);
document.write('</tr>');
document.write('</table>');
}
document.write('<br>');
document.write('<br>');
document.write('<font size=9><tt>');
document.write(DisplayWord);
document.write('</tt></font>');
document.write('<form>');
document.write('<input type="button" VALUE="Alat musik yang lain"'+
'onClick="delCookie(\'_HangMan\');history.go(0);">');
document.write('</form>');
document.write('</center>');
// End -->
</SCRIPT>
</td></tr>
</table>
</center>
</BODY>
Indra Gunawanhttp://www.blogger.com/profile/04786909327952789248noreply@blogger.com0