ok so i found this open sources js coding that will simply randomly choose 1 image out of a whatever is given
so i made it pretty much give a table tag, a background.
pretty simple. check it out:
So what I would like to do is make a few simple links like:
var myimages=new Array()
document.write('<table id="mainbody" style="background: #FFC url('+myimages[ry]+') top left;">')
and then what i would like to have happen is when you click the link/image, it changes the <table> background to one of the images like myimages
<a href=""><img src="icon.gif"></a>
and then ill have the same setup for myimage
so ill have an array of little icons that each one will change the table background to a given image.
but of course keeping the randomly choosing a background image each time the page loads.
do you guys have any ideas on how this would be possible?
thanks guys :)