Here is my problem, I need to create a javascript function that takes 2 variables that the user has chosen, and choose what images to produce in 20 divs based on those variables.
I've been trying to figure this out for several days but have gotten no where.
so vars are: year, quarter
images are named by region and the divs are pre-set. so an image would be "regionone_2005_q1.png"
So what I'm looking for is advice on how to solve this issue. I need the browser not to load the image unless it's been asked for based on the user input. I can't use "hide" because it still loads the image and I can't swap out the image based on the code.
I am having trouble finding any tutorials on using javascript variables within html. The catch for this program is that I HAVE to use server side scripting.
srcattribute of the images, and they wont load. Then set thesrcattribute in your function. The browser will then download the image and display it.