BioHazard Posted June 13, 2016 Report Share Posted June 13, 2016 (edited) I need some help with this script. If anyone has any knowledge of HTML or JavaScript could you please PM me or comment below. I am trying to loop the function when the button is pressed. I have tried IF and WHILE loops and both don't work. Excuse me if it's something pretty obvious, as I'm new to this language Thanks! Edit: Fixed it, please lock. Edited June 13, 2016 by BioHazard_ Link to comment
friendlypilot Posted June 13, 2016 Report Share Posted June 13, 2016 (edited) you ripped that from here http://stackoverflow.com/questions/34679565/traffic-light-with-button-and-array Edited June 13, 2016 by friendlypilot BioHazard likes this Link to comment
friendlypilot Posted June 13, 2016 Report Share Posted June 13, 2016 (edited) ll Edited June 13, 2016 by friendlypilot Link to comment
Budbringer Posted June 13, 2016 Report Share Posted June 13, 2016 Looks like you messed up your syntax http://www.w3schools.com/js/js_if_else.asp Link to comment
BioHazard Posted June 13, 2016 Author Report Share Posted June 13, 2016 (edited) On 13/06/2016 at 1:22 PM, friendlypilot said: you ripped that from here http://stackoverflow.com/questions/34679565/traffic-light-with-button-and-array Yeah, I know, I am asking for help changing it, so that its looped. Edited June 16, 2016 by BioHazard_ Link to comment
BioHazard Posted June 13, 2016 Author Report Share Posted June 13, 2016 13 minutes ago, Budbringer said: Looks like you messed up your syntax http://www.w3schools.com/js/js_if_else.asp Thanks Link to comment
friendlypilot Posted June 13, 2016 Report Share Posted June 13, 2016 i just wondered i was googling it and came across it , said it works then i checked it with yours and it was the same Link to comment
BioHazard Posted June 13, 2016 Author Report Share Posted June 13, 2016 (edited) 25 minutes ago, friendlypilot said: i just wondered i was googling it and came across it , said it works then i checked it with yours and it was the same Yeah, thanks. That's where I got it from. It works, but not as I intend it to. Edited June 13, 2016 by BioHazard_ Link to comment
BioHazard Posted June 13, 2016 Author Report Share Posted June 13, 2016 Just now, Brendon Smith said: Yes Can you PM me real quick, need some help. Link to comment
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