Change an image when clicking on itTag(s): Language


<SCRIPT>
  function change_img(source,index) {
    document.images[index].src = source;
    }
</SCRIPT>

<A HREF="JavaScript: change_img('../images/open.gif','thisone')">
<IMG SRC="../images/closed.gif" border="0" id="thisone"></A>

Try it here :


blog comments powered by Disqus