I have this code for button
Code: Select all
<div class="Try">
<a href="#" onclick="javascript:return try_mi('img/hat/try1.png');">Try it</a>
</div>
Code: Select all
function try_mi(hat_image){
$(".the-face .hat .draggable .rotatable .resizable img").attr("src", hat_image);
return false;
}
Code: Select all
<a href="#" onclick="javascript:return try_mi <img src="<?php echo $image['thumb']; ">Try it</a>
