I'M trying to do something like this:
<div id="div1">
<span onClick="change(1)"><img src="/graphics/pic1.png" /></span>
<span onClick="change(2)"><img src="/graphics/pic2.png" /></span>
<span onClick="change(3)"><img src="/graphics/pic3.png" /></span>
<span onClick="change(4)"><img src="/graphics/pic4.png" /></span>
<script language="javascript">
function change(a) {
$("#div1").css("background", "url('/graphics/pic"+a+".png')");
}
</script>
</div>
But there comes problem... It doesn't work... Did I get it right? I mean the thing with numbers and the "a"? Or I'm totally wrong? This code was just an example...
urlnotsrc.