Sorry for actually asking this as it's a ridiculously simple problem, but I'm brand new to JavaScript. I know how to do what I want to in ActionScript, but I'm not sure what the syntax is to accomplish it in JavaScript. In ActionScript I've written a chunk of code that looks something like this:
---------------
var currentNumber = 1; var picture1Video = " firstVideo.jpg"; var picture2Video = " secondVideo.jpg";
So basically I'm incrimenting currentNumber to change what variable placeHolder1 and placeHolder2 are looking at.
How do I write that in Javascript, so that a variable name being called is made up of a string and the contents of another variable, like ["picture"+currentNumber+"video"] ?
Users browsing this forum: No registered users and 4 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum