Forum Moderators: open
thumb =new Image();
thumb2=new Image();thumb.src ="images/white2.jpg"
thumb2.src="images/black2.jpg"
function thumbtobig(thumbs)
{
if(thumbs==1){document.images['large'].src=thumb.src;}
if(thumbs==2){document.images['large'].src=thumb2.src;}
}
<a href="javascript:thumbtobig(1)"><img src="images/white.gif"></a>
<a href="javascript:thumbtobig(2)"><img src="images/black.gif"></a>
A point in the right direction would help me a lot. I dont work with JS that often so i'm a little rusty. Thanks.