I'm pretty new to jquery and coding in general. I'm trying to implement the jquery slideshow from http://www.designchemical.com/blog/index.php/jquery/jquery-image-swap-gallery/. I made it work through click instead of hover. I want the background of a div (with background repeat x and y) to change in the same manner as the thumbnail controls the main image.
It works fine with a given image: $('#bgs').css('background-image','url(gallery/bgs/img_3.jpg)'); but I want it to work by dynamically getting the right filename in the same way that the main image does. I just don't know what to change.
The code is as follows: http://pastebin.com/hvVYQyru
I hope I've made myself clear :). I really hope you Guys can get me on the right track.
Regards Martin Schack