Hi all
I hava a JavaScript to change background.. But I need to image load or
something like that..
because It doesn't look good while background changing..
It should shown just inside the tables area, not all the web-page..

thanks,

<script type="text/javascript">

function changeBg(img) {
   document.getElementById('tabcell').style.background = "url("+img
+")  no-repeat 0 0 ";
}

</script>

<table id="tabcell" background="images/t-shirt/big/t-shirt_01.jpg"
STYLE="background-repeat: no-repeat; ">
</table>

<a href="javascript:;" onclick="changeBg('images/t-shirt/big/t-
shirt_02.jpg');"> Change Background </a>

Reply via email to