Swap Image JS

Easily swap images with only one html tag


Click too see!



Example Code



You can use any HTML tag except for "IMG", in this example it is a "DIV", but it can be "SPAN", "P", "H1", "H2" among others with a event using a property 'commandEvent'..

Just add the class "laavorSwapImage" by putting the basic properties the Swap is ready practical and easy to use, a unique syntax and ease in javascript.

Tag:
<div class="laavorSwapImage" id="swapImage" firstImageWidth="80px" secondImageWidth="150px" secondImageHeight="150px" firstImageHeight="80px" firstImage="images\sound1.png" secondImage="images\sound2.png" > </div>


Gitbhub Project

Download

Documentation



Available in pdf

Documentation download