Rusakov Posted November 26, 2017 Share Posted November 26, 2017 I've been learning JavaScript for a bit now and today I decided to do a little project inspired by the Windows RG thing (possible photosensitive epilepsy warning for vid): I was aiming to do something like the error-box hell at 16 seconds in the above video, in this case I would make 10 alert boxes come up which would play the Windows 98 error sound. I was successful, but I don't have a video recording of it in action due to technical difficulties on my end. But a screenshot of the source code I wrote is attached to this post. It's not exactly like the above video (the alerts don't look like Windows error boxes and they only come up one at a time: after the previous one has been clicked away) but I don't think I'm too bad for a noob. I was originally going to title this thread without the "(not really)" part until I discovered that technically script kiddie refers to people who use scripts other people had made and then used by the kiddie to damage web sites. Since this was both original code made by yours truly and not intended to be damaging (just really obnoxious) then I'm not really a script kiddie. But I can now do annoying things with JavaScript! Next stop: Google! Link to comment Share on other sites More sharing options...
SF Redd Posted November 27, 2017 Share Posted November 27, 2017 Topkek. Love it. Send me a DM or something. I'm always keen on learning new coding languages, and it'd be neat to have someone to learn with. 1 Link to comment Share on other sites More sharing options...
Rusakov Posted November 27, 2017 Author Share Posted November 27, 2017 44 minutes ago, SF Alba said: Topkek. Love it. Send me a DM or something. I'm always keen on learning new coding languages, and it'd be neat to have someone to learn with. Sure thing! My availability tends to shift around quite a bit though, just FYI. But yeah! Sounds fun! Link to comment Share on other sites More sharing options...
Rusakov Posted November 30, 2017 Author Share Posted November 30, 2017 I've tried to use a setTimeout function on the above code to no avail. In the meantime though here's a neater version of the previous code. If anyone wants to try the application I can email it as a zip file. Link to comment Share on other sites More sharing options...
Rusakov Posted December 1, 2017 Author Share Posted December 1, 2017 I finally got setTimeout to work on it! For those who don't know, setTimeout delays running part of the code for a certain amount of time. In this case it makes a five second delay before the user gets bombarded with error alerts! Muwahahaha! Link to comment Share on other sites More sharing options...
Rusakov Posted December 3, 2017 Author Share Posted December 3, 2017 setInterval works, but I currently have no idea how to stop it (nothing I've tried works), I'll have to get back to it when I'm a bit more advanced in my studies. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now