Ok, this is the first javascript I have ever written. I took one course in java and then read for a couple hours on javascript. Here is the problem fuction:
So if I set document.slotOne.src = "sourceName" as document.slotOne.src = "pic2.jpg" or whatever it works. If I use the variable, which I have tested with 'typeof' and is a string it doesn't work. What's up with this?The sourceGenerator(anInt) function works. I tested it. It returns a string of the proper description. ie. "picSomeRandomNumber.jpg"Seriously I have sat on this for days thinking and reading. lol This is hurt'n. Why can't I use a string variable, but I can use a string?I am by no means an ace, I did one java course a year ago and that's it for my programing experience. Currently the script excutes with no errors, if you want to see the whole thing or know what it actually does just ask. Thanks a bunchLae.