3D java játékok mobilra
  • gabord
    #161
    <table width=100% cellpadding=3 cellspacing=0border=0>
    <tr><td valign=top align=center>
    <table border=0 cellspacing=0 cellpadding=0 width=99%>
    <tr>

    <td valign=top><P ALIGN=JUSTIFY>
    <font color=black><nobr><center><table border="0" bgcolor="orange" cellspacing="0" cellpadding="3">
    <tr>
    <td width="100%">
    <p><font size="4" color="dd0066"><center><i>Kristálygömb</font></i></center></p>
    <font color="black">
    <p>Írj be egy igen/nem-mel megválaszolható kérdést és a kristálygömb válaszol.</p>
    <p>Figyelem: a kristálygömbnek nincs humora, de szeret másokat cikizni!</p>
    <table width="40%" border="0">
    <tr>
    <td>
    <form name="input1">
    <input name="textfield" size=63>
    </form>
    </td>
    </tr>
    </table>
    <table width="8%" border="0">
    <tr>
    <td>
    <form>
    <input type="button" name="button1" value="Kérdezz!"
    onClick="getAnswers()">
    </form>
    </td>
    </tr>
    </table>

    <script language="JavaScript">



    function getAnswers() {

    time = new Date()
    randominteger = time.getSeconds()

    if (document.input1.textfield.value == "") {
    alert("Nem írtál be semmit!")
    return
    }

    if (randominteger <= 3) answer="Ezt komolyan gondoltad? Ha-ha, nevetnem kell az esélyeiden..."
    if ((randominteger >= 4) && (randominteger <= 6)) answer ="Nos, kb. 65 % az esély rá."
    if ((randominteger >= 7) && (randominteger <= 9)) answer ="Nem létezik!"
    if ((randominteger >= 10) && (randominteger <= 12)) answer ="Nagy a valószínűsége, hogy megtörténik."
    if ((randominteger >= 13) && (randominteger <= 15)) answer ="Miért kérdezed a kristálygömböt? Úgyis tudod a választ..."
    if ((randominteger >= 16) && (randominteger <= 18)) answer ="Neeeeem!!!"
    if ((randominteger >= 19) && (randominteger <= 21)) answer ="Jó esélyek nyílnak meg előtted."
    if ((randominteger >= 22) && (randominteger <= 24)) answer ="Kérdezz később, lusta vagyok és sok a munkám."
    if ((randominteger >= 25) && (randominteger <= 27)) answer ="Ez titok..."
    if ((randominteger >= 28) && (randominteger <= 30)) answer ="Ez olyan biztos, mint ahogy a Nap süt."
    if ((randominteger >= 31) && (randominteger <= 33)) answer ="Ittál???"
    if ((randominteger >= 34) && (randominteger <= 36)) answer ="Felejtsd el."
    if ((randominteger >= 37) && (randominteger <= 39)) answer ="Igen, megtörténhet. 80 % az esélye."
    if ((randominteger >= 40) && (randominteger <= 42)) answer ="Nem sok esély van rá."
    if ((randominteger >= 43) && (randominteger <= 45)) answer ="Ha komolyan gondolod, lehetséges."
    if ((randominteger >= 46) && (randominteger <= 48)) answer ="Igennn!"
    if ((randominteger >= 49) && (randominteger <= 51)) answer ="Gondolod, hogy egy ilyen fárasztó nap után válaszolni fogok? Kérdezz később."
    if ((randominteger >= 52) && (randominteger <= 54)) answer ="Ha van háziállatod, igen. Egyébként nem."
    if ((randominteger >= 55) && (randominteger <= 57)) answer ="Igen! Ez olyan biztos, mint ahogy a Nap keleten kel és nyugaton nyugszik."
    if ((randominteger >= 58) && (randominteger <= 60)) answer ="Röhögnöm kell! Majd kérdezz meg később..."

    var newWindow = window.open("","Results","width=300,height=300")
    newWindow.document.write("<html><body bgcolor='#000000' text='#FFFFCC' link='#00FFFF' alink='#000066' vlink='#6666FF'>")
    newWindow.document.write("<P align='center'><font size='4' color='#FFFF00'>A Te kérdésed:</P><P></P><font size='3' color='#FFFFCC'>")
    newWindow.document.write("<P align='center'>" + document.input1.textfield.value + "</P>")
    newWindow.document.write("<P></P><P></P><P></P><P align='center'><font size='4' color='#FFFF00'>A Kristálygömb válasza:</P><P></P>")
    newWindow.document.write("<font size='3' color='#FFFFCC'>")
    newWindow.document.write("<P align='center'>" + answer + "</P>")
    newWindow.document.write("<P></P><P></P><P align='center'><A HREF='javascript:window.close()'>Bezár</A></P>")
    }

    </script>
    </font>
    </td>
    </tr>
    </table>



    </font><br /><br /></P></td>
    </td></tr></table>
    </td></tr>
    </table>