Conversation
Notices
-
Guys, I'm a failure at JS. Someone help. ;~; http://pastebin.com/GP3Zg4sU
-
@redenchilada what are you trying to accomplish in that?
Friday, 27-Apr-12 22:58:29 UTC from web-
@alargesmallhorse Make an image scroll across the screen after a code is entered. setTimeout() never seems to want to work for me for some reason.
-
@redenchilada so it is... NOT working?
Friday, 27-Apr-12 23:02:50 UTC from web-
@alargesmallhorse Not working.
Friday, 27-Apr-12 23:03:24 UTC from web-
@redenchilada Huh. Can't help ya, only know AS. Don't recognize the format. is it just the timeOut() that's having the problem?
Friday, 27-Apr-12 23:06:31 UTC from web-
@alargesmallhorse I can't really tell. I'll probably figure it out later or something.
Friday, 27-Apr-12 23:07:34 UTC from web-
@redenchilada I only have an idea, but I'm stupid at that code stuff. I hope you qba'g get it
Friday, 27-Apr-12 23:11:19 UTC from web
-
-
-
-
@alargesmallhorse Gotta say... I never knew I was so good at these things.
Friday, 27-Apr-12 23:05:24 UTC from web
-
-
-
-
@redenchilada I... think I might see the problem. Hold on a minute while I test something.
Friday, 27-Apr-12 23:22:23 UTC from web -
@redenchilada This seems to work for me: http://pastebin.com/RKduq1eV
-
@redenchilada The problems I could see were: 1) the function for konami.code is a function as a variable, so it doesn't need a name, just function(). 2) It had one too few closing braces (an auto-indenting editor does wonders for spotting that sort of thing before it's a problem), and that was making everything else not get run.
-
@redenchilada Also, opening {s should generally be placed on the same line as if/for/function statements, because javascript's guessing of where to add semi-colons might catch you out otherwise. Though I _think_ in that particular code you should be fine, it's just that it's not a good habit to get into with JS.
-