[RESOLVED] my images keep dissapearing?? please help
Okay so I've been working on simple button click selector/slideshow such as what you see on nbc.com for a school project. It HAS to be in plain jane javascript. I got the button selection thing working, but whenever I click one of the buttons.. the image flashes in the "content area" (an image inside an anchor tag that will change depending on which button has been pressed) and then just goes back to the default image (the source inside the original image tag). Please help. I'm kind of a novice at javascript and for the life of me I have no idea why the image isn't staying in that dang thing. I tried it without having to click on a button, just calling the function right after defining it and passing the variables and works just fine, which has me even more confused.
The w3c article appears to be talking about ids and names (id="",name=""). I don't have any strictly numeric ids (id='l1' etc is found). The only numeric identifiers that would be used would be for the array index [0,1,2, ...]
It appears that that would be a valid sgml type for an array. Am I mistaken? Were you just giving me a heads up? Please explain. I definitely want to understand.
Bookmarks