Jump to content
XdotY

(javascript)Numarul 3

Recommended Posts

Posted

M-am gandit sa creez si eu un script pe care voi sa trebuiasca sa il exploatati:

Nu l-am uploadat pe un host pentru ca poate fi rezolvat la fel de usor si doar citind de aici codul sursa si/sau eventual salvandul cu extensia .html .



<script language="JavaScript1.1">

function raspuns() {
x = document.javascript.rst.value;

var a =x.substring(0,1);
var b =x.substring(1,2);
var c =x.substring(2,3);
var d =x.substring(3,4);
var e =x.substring(4,5);
var f =0

a=a*a*a*a+90
b=b*b*b*b*b+a
c=c*c*c+100
d=d*d*d*d*d-12
e=e*e*e*e*e+5415
f=a+b+c+d+e+306

if (f==36463){
alert("Codul este corect.Buna treaba!");
}
else{
alert("Numar gresit...");
}

}

</script>

<form name=javascript method=post>
Introdu Codul Pin:<p>

<input type=text name=eingabe class=inputbox>
<input type=button name=submit value=rst class=button onclick=raspuns()>
</form>

Daca aveti nevoie de ajutor sau alte intrebari ,sunt disponibil.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...