In about the simplest terms (this sort of thing can be done much more elegantly, like for all thumbnails without having to give each one an onclick event):
Code:
<a href="pathto/largerimage.jpg" onclick="document.body.style.backgroundImage = 'url(' + this.href + ')'; return false;">
<img src="pathto/thumbnail.jpg"></a>
I don't know what your slider is like, whether or not you can put that code in it. Oh, and if it's not the body whose background needs to be changed you could use like:
Code:
document.getElementById('id_for_B_area')
instead of:
in the above.
If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
Bookmarks