|
Post by Mark on Aug 5, 2009 23:28:21 GMT
You can post one James as you won.
|
|
|
Post by JamesK on Aug 6, 2009 14:56:26 GMT
Can I post Javascript?
|
|
|
Post by Mark on Aug 6, 2009 17:34:25 GMT
Can I post Javascript? As long as its not copyrighted yes.
|
|
|
Post by JamesK on Aug 7, 2009 18:11:10 GMT
ok <script type="text/javascript"> num1= 2 num2= 3 num3= 4
answer=num1+num2+num3
document.write(""+num1+"+"+num2+"+"+num3+" = "+answer+"");
</script> What does this script do?
|
|
|
Post by Mark on Aug 7, 2009 18:18:51 GMT
Adds all the number together to provide the answer.
|
|
|
Post by JamesK on Aug 7, 2009 19:29:54 GMT
Yep. Did you have to test the script out before hand?
|
|
|
Post by Dylan on Aug 8, 2009 1:08:12 GMT
Isn't he a computer expert? lol.
|
|
|
Post by JamesK on Aug 8, 2009 9:09:01 GMT
Yeah. Suppose so
|
|
|
Post by Matt on Aug 8, 2009 10:17:42 GMT
you dont need to be to work it out the answers in the script, i could have got them but mark beat me to it
|
|
|
Post by JamesK on Aug 8, 2009 10:22:29 GMT
Oh well
|
|
|
Post by Dylan on Aug 8, 2009 12:28:31 GMT
That says it all. lol hahahaha... ;D
|
|
|
Post by JamesK on Aug 8, 2009 14:01:38 GMT
but...
|
|
|
Post by Matt on Aug 8, 2009 15:09:55 GMT
im not a code geek Although a 5 year old could unravel javascript depending on the length of it. Post us a hard one and i mean a really hard one like marks
|
|
|
Post by JamesK on Aug 8, 2009 18:19:58 GMT
I can't really create JS...yet. I'm getting to completly know CSS at the moment . I'm starting JS shortly. Mark...post a really hard JS please
|
|
|
Post by Mark on Aug 9, 2009 0:12:38 GMT
<input type="submit" name="B1" value="Click!" onclick="var a = 1;while(1==1) { alert ('Hello')}"> Warning : Test at your own riskmy-notepad.biz/mnpscript.html <--- Test link
|
|