var sidfot1="" var lgd=new Array(0,0,0,0) var rad=new Array("","","","") var kodat=new Array("HMFDM QÖJ TS@M DKC") kodat[1]="RNL L@M AÄCC@Q EÅQ L@M KHFF@" kodat[2]="DM EÅFDK H G@MCDM ÄQ AÄSSQD ÄM SHN H RJNFDM" kodat[3]="UÄBJ HMSD CDM AIÖQM RNL RNUDQ" kodat[4]="LÅMF@ AÄBJ@Q RLÅ AKHQ DM ETKK Å" kodat[5]="CDS ÄQ OQDRRMHMFDM RNL FÖQDS R@ RJQÄCC@QDM R@SSD ÄQLDM H G@KRQHMFMHMFDM" kodat[6]="L@M RJ@ HMSD RJÅC@ FHUDM GÄRS H LTMMDM" kodat[7]="RÄKI HMSD RJHMMDS HMM@M AIÖQMDM ÄQ RJITSDM" kodat[8]="AÄSSQD EKY ÄM HKK@ EÄJS@" kodat[9]="DM RU@K@ FÖQ HMFDM RNLL@Q" kodat[10]="CD ÄQ RTQ@ R@ QÄUDM NL QÖMMAÄQDM" kodat[11]="GÄQ KHFFDQ DM GTMC ADFQ@UDM" kodat[12]="CÅ UHMDS FÅQ HM FÅQ UDSSDS TS" kodat[13]="CDM RNL RITMFDQ OÅ LNQQNM JNLLDQ H GÖJ@QÖU@ HMM@M JUÄKKDM" kodat[14]="CDS RL@J@Q ÄMCÅ J@QK R@ JÄQHMFDM JYRRSD STOODM" kodat[15]="RDMS RJ@ RYMC@QM U@JM@" kodat[16]="KHSDM STU@ UÄKSDQ NES@ RSNQS K@RR" kodat[17]="LNQFNMRSTMC G@Q FTKC H LTM" kodat[18]="L@M RJ@ HMSD QHS@ E@M OÅ UÄFFDM" kodat[19]="FDQ L@M E@M KHKKEHMFQDS S@Q G@M RM@QS GDK@ G@MCDM" kodat[20]="L@M RJ@ HMSD FÅ LDKK@M A@QJDM NBG SQÄCDS" kodat[21]="TOO RNL DM RNK NBG MDQ RNL DM O@MMJ@J@" kodat[22]="GDKKQD KYRR SHKK CDM RSQÄMF RNL AQ@RS ÄM @SS @KCQHF ROÄMM@ DM AÅFD" kodat[23]="AÄSSQD EQH@ ÄM EÄKK@" kodat[24]="AÄSSQD RDMS ÄM @KCQHF" kodat[25]="CDS RLÄKSDQ RNL RLÖQ H RNKRJDM" kodat[26]="GÖFLNC FÅQ EÖQD E@KK" kodat[27]="L@M RJ@ HMSD J@RS@ RSDM MÄQ L@M RHSSDQ H FK@RGTR" kodat[28]="L@M RJ@ HMSD KHS@ OÅ M@SSF@LL@K HR" kodat[29]="CDM RNL EHJ@Q DESDQ LYBJDS LHRSDQ NES@ GDK@ RSYBJDS" kodat[30]="CDM RNL FQÄUDQ DM FQNO ÅS @MCQ@ E@KKDQ NES@ RIÄKU CÄQH" kodat[31]="AÄSSQD AQÖCKÖR ÄM QÅCKÖR" kodat[32]="JNLLDQ C@F JNLLDQ QÅC" kodat[33]="AQÄMS A@QM RJYQ DKCDM" kodat[34]="MÄQ RJ@KJ@Q KNBJ@ EÖKI HBJD" kodat[35]="CDS ÄQ AÄRS @SS LNS@ NKKD H FQHMC" kodat[36]="CDM RNL HMFDMSHMF UDS J@M HMFDMSHMF @URKÖI@" kodat[37]="L@M RDQ HAK@MC HMSD RJNFDM EÖQ A@Q@ SQÄC" kodat[38]="L@M R@JM@Q HMSD JNM EÖQQÄM AÅRDS ÄQ SNLS" kodat[39]="DM AKHMC GÖM@ J@M NBJRÅ GHSS@ DSS JNQM" kodat[40]="MÄQ J@SSDM ÄQ ANQS@ C@MR@Q QÅSSNQM@ OÅ ANQCDS" kodat[41]="RONSS@ H KÄ HMSD H KNU@QS" kodat[42]="CDS RNL HMSD G@Q JNLLHS H SITU@GÄMCDQ EÅQ L@M HFDM" kodat[43]="IT EKDQ JNBJ@Q CDRSN RÄLQD RNOO@" kodat[44]="CDS L@M RONSS@Q H KNU@QS CDS EÅQ L@M HFDM" kodat[45]="SHKKEÄKKDS FÖQ SITUDM" kodat[46]="CDM FTC G@Q FDSS ONIJ CDM FDQ G@M NBJRÅ AYXNQ" kodat[47]="KHSD RJHS QDMR@Q L@FDM" kodat[48]="H MÖCDM OQÖU@R UÄMMDM" kodat[49]="RLÅ A@QM RLÅ ADJYLLDQ RSNQ@ A@QM RSNQ@ ADJYLLDQ" kodat[50]="L@M RJ@ HMSD J@RS@ TS A@QMDS LDC A@CU@SSMDS" kodat[51]="CDS ÄQ AÄSSQD @SS RSÄLL@ H AÄBJDM ÄM H ÅM" kodat[52]="CDS RNL FÖLR H RMÖ JNLLDQ TOO H SÖ" kodat[53]="L@M RJ@ @KCQHF KHS@ OÅ M@SSF@LL@K HR" kodat[54]="L@M RJ@ HMSD FÅ ÖUDQ ÅM DESDQ U@SSDM" kodat[55]="JNLLDQ C@F JNLLDQ QÅC" kodat[56]="L@M RJ@ KÅS@ L@SDM SYRS@ LTM" kodat[57]="RSNQ H NQCDM KHSDM OÅ INQCDM" kodat[58]="RJQ@SS@Q AÄRS RNL RJQ@SS@Q RHRS" kodat[59]="J@J@ RÖJDQ L@J@" function gradval(){ var temp = document.svgrad.svval.selectedIndex if ( temp == 0) { startpng=100 vokpng=20 konspng=10 } if (temp == 1){ startpng=50 vokpng=30 konspng=15 } if (temp == 2){ startpng=25 vokpng=50 konspng=25 } document.svgrad.startp.value=startpng document.svgrad.vokp.value=vokpng document.svgrad.konsp.value=konspng totpng=startpng document.stllning.totp.value=totpng } function avkoda(){ var temp=kodat[ordval] var j =0 var tck="" var alfa="@ABCDEFGHIJKLMNOPQRSTUV" var nr = -1 ordsprk="" for (j=0; j=0){ tck=alfa.charAt(nr+1) } ordsprk=ordsprk+tck } } function strecka(){ var i=0 var j=0 var brk=20 var tck="" str="" helrad="" antbokst=0 for (i=0; i<4;i++){ rad[i]="" lgd[i]=0 } for (i=0; i brk){ lgd[j]=rad[j].length j ++ rad[j]="" brk=brk+20 } } else { str=str+"_ " rad[j]=rad[j]+"_ " antbokst ++ } } lgd[j]=rad[j].length helrad="" for (j=0 ; j <4; j++){ helrad=helrad+rad[j]+"
" } } function skrivord(){ parent.frames[1].document.open() parent.frames[1].document.write (sidhuvud1 + helrad + sidfot1) parent.frames[1].document.close() } function skrivbild(){ var slut=".jpg" var tmp=bildnr/10 if (tmp==parseInt(tmp)){ slut=".gif" } var bildtext="b"+bildnr+slut parent.frames[2].document.open() parent.frames[2].document.write (sidhuvud2 + bildtext + sidfot2) parent.frames[2].document.close() } function nytt(){ ordval=ordval+7 if (ordval>59){ ordval=ordval-60 } avkoda() strecka() storlek="" skrivord() gissade="" fyllda=0 if (klart==0){ antfel=antfel+1 document.stllning.felspel.value=antfel } else{ klart=0 } } function fyll(tck,pos){ var tot=pos var a=lgd[0] var b=lgd[1] var c=lgd[2] var d=lgd[3] while (pos>=0){ str=str.substring(0, 2*tot)+tck+str.substring(2*tot+1, str.length) fyllda++ pos=ordsprk.substring(tot+1).indexOf(tck) tot = tot + pos +1 } rad[0]=str.substring(0, a) rad[1]=str.substring(a, a+b) rad[2]=str.substring(a+b, a+b+c) rad[3]=str.substring(a+b+c,a+b+c+d) helrad=rad[0] + "
" + rad[1] + "
" + rad[2] + "
" + rad[3] } function slutspel(betyg){ var slutrad = new Array(4) slutrad[0]="Tyvärr du missade. Bättre lycka nästa gång." slutrad[1]="Grattis du lyckades." slutrad[2]="Grattis du lyckades." slutrad[3]="Grattis du är utsedd till MEGA-gissare. Du har gissat alla ordpråken." var tmp=0 var grad=document.svgrad.svval.selectedIndex klart=1 if (betyg==1){ antrtt=antrtt + 1 document.stllning.rttspel.value=antrtt bildnr=bildnr + 1 tmp = bildnr/10 if (bildnr > 0 && tmp == parseInt(tmp)){ betyg= 2 } if (bildnr == 60){ betyg= 3 } } if (betyg==0){ antfel ++ document.stllning.felspel.value=antfel if (grad>0){ tmp = bildnr/10 bildnr=10*parseInt(tmp) } totpng=startpng document.stllning.totp.value=totpng } helrad=ordsprk + "

" + slutrad [betyg] storlek="" skrivord() skrivbild() if (betyg==3){ parent.location="hurra.wav" } } function gissa(bks){ var plats var j=0 var vok="AOUÅEIYÄÖ" var avdrag=0 if (gissade.indexOf(bks) ==-1){ gissade = gissade + bks plats = ordsprk.indexOf(bks) if (plats >=0){ totpng=totpng+5 document.stllning.totp.value=totpng fyll (bks, plats) if (fyllda ==antbokst){ slutspel(1) } else{ storlek="" skrivord() } } else{ if (vok.indexOf(bks) >=0){ avdrag=vokpng } else{ avdrag=konspng } totpng=totpng - avdrag document.stllning.totp.value = totpng if (totpng < 0){ slutspel(0) } } } } //-->

Gissa ordspråk
Svårighetsgrad:......
Startpoäng :
Fel vokal avdrag poäng.
Fel konsonant avdrag poäng. Rätt gissning +5p.
Spelet avslutas om du får minuspoäng.
Din poängställning just nu: poäng.
Korrekt gissade ordspråk:
Rätt: Fel: