K
Kevin Stone
Hi,
I currently have a piece of JavaScript which swaps the on-screen image
between two different versions, and I use:
document.images.src = something
and change the src each time. However, every time the script does the change
it goes to the internet to get the new image, even though it's had it
previously. This isn't ideal as the src change will be called tens of
thousands of times a day.
Any suggestions? Ideally I need two image objects which load once and then I
swap the screen image for one of these. But I don't know JavaScript well
enough.
TIA
I currently have a piece of JavaScript which swaps the on-screen image
between two different versions, and I use:
document.images.src = something
and change the src each time. However, every time the script does the change
it goes to the internet to get the new image, even though it's had it
previously. This isn't ideal as the src change will be called tens of
thousands of times a day.
Any suggestions? Ideally I need two image objects which load once and then I
swap the screen image for one of these. But I don't know JavaScript well
enough.
TIA