Yakbak
03-23-2001, 01:33 PM
Wheee!
I need help with some mathematical and varable JS code. Since I can't upload files, I'll just read out the source code. NOTE that the "Document.Challenger.solution.value" is the value to be submitted in a form in the whole HTML page, but I'm only posting the JS code:
<script language="javascript">
<!--
function Changling(nummer) {
return (nummer*1);
}
function Changling2(str1, str2) {
var num = str1 + str2;
var num2 = eval(num);
num2 = num2 + 2;
return num2;
}
function checkIT() {
var num = document.Challenger.solution.value + 1;
num = (num * 3);
num = Changling(num);
var num2 = Changling2("73630","6291");
if (num == num2)
{
return true;
}
else
{
alert('Incorrect.');
return false;
}
}
-->
</script>
The objective is to find the document.Challenger.solution.value.
Help! :D
[ March 25, 2001: Message edited by: Yakbak ]
I need help with some mathematical and varable JS code. Since I can't upload files, I'll just read out the source code. NOTE that the "Document.Challenger.solution.value" is the value to be submitted in a form in the whole HTML page, but I'm only posting the JS code:
<script language="javascript">
<!--
function Changling(nummer) {
return (nummer*1);
}
function Changling2(str1, str2) {
var num = str1 + str2;
var num2 = eval(num);
num2 = num2 + 2;
return num2;
}
function checkIT() {
var num = document.Challenger.solution.value + 1;
num = (num * 3);
num = Changling(num);
var num2 = Changling2("73630","6291");
if (num == num2)
{
return true;
}
else
{
alert('Incorrect.');
return false;
}
}
-->
</script>
The objective is to find the document.Challenger.solution.value.
Help! :D
[ March 25, 2001: Message edited by: Yakbak ]