SCompimg

Before/After With prototype and scriptaculous.

Download .zip Download .tar.gz View on GitHub

SCompimg

SCompimg is an script for compare two image (after and before of image). this script written in javascript with prototype and scriptaculous library.


Example 1:

Example 1:

var scomp_1 = new scompimg($("scomp_1"), {fimg: 'images/a.png', simg: 'images/b.png', width:500, height: 500, btxt: "Show A", btxt: "Show B"});

Example 2:

Example 2:

var scomp_2 = new scompimg($("scomp_2"), {fimg: 'images/pig0.png', simg: 'images/pig1.png', width:750, height: 500 });