I just finished a test script I was working on while I was learning JavaScript. It's an interactive demonstration of the Stroop effect: http://www.thewritingpot.com/stroop/
I'd like comments on the JavaScript (you know, extensibility issues, compatibility issues), and also on the User-friendliness of the interface (commenting on aesthetics couldn't hurt either).
Stroop Effect - Interactive Demonstration
Moderator: General Moderators
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
Hmm... what browser are you using?
Edit - Okay, updated the style with a 1.8em height, that should fix it... also, I'm getting a mysterious error from Internet Explorer... hmph... I can't decipher it though.
Edit 2 - This is really weird. Internet Explorer complains about three lines. When they're commented off, IE doesn't complain, but of course, the program won't work. But the lines are really weird:
Says "Object doesn't support this property or method". But then what about all the other calls? Actual program works fine...
Edit - Okay, updated the style with a 1.8em height, that should fix it... also, I'm getting a mysterious error from Internet Explorer... hmph... I can't decipher it though.
Edit 2 - This is really weird. Internet Explorer complains about three lines. When they're commented off, IE doesn't complain, but of course, the program won't work. But the lines are really weird:
Code: Select all
screenInstructions = document.getElementById('screenInstructions');
screenInformation = document.getElementById('screenInformation');
screenExperiment = document.getElementById('screenExperiment');
//screenResults = document.getElementById('screenResults');
body = document.getElementById('body');
buttonEditKeys = document.getElementById('buttonEditKeys');
//linkToResults = document.getElementById('linkToResults');
//textareaResults = document.getElementById('textareaResults');- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US