This example describes the Beforeafter usage of a jquery image before and after the plugin. Share to everyone for your reference, specific as follows:
Today to share a jquery plugin-picture contrast (beforeafter), the effect is as follows:
How to use:
Parameter description (part):
Showfulllinks: Whether to show the link below, click on the link, will automatically display the full front or back of the picture, the default value: True
ImagePath: Navigate the path of the picture (absolute or relative), the navigation picture refers to the middle green bar and the left and right triangle, default value:/js/beforeafter/
Beforelinktext: Set the previous picture below the link text, default value: Show only before
Afterlinktext: Set after the picture below the link text, default value: Show
Attention:
Before and after two pictures must be the same size.
Full instance code click here to download the site .
Website address:
http://www.catchmyfame.com/catchmyfame-jquery-plugins/jquery-beforeafter-plugin/
More interested readers of jquery-related content can view the site topics: "jquery common Plug-ins and Usage summary", "jquery common Classic Effects Summary", "jquery form operation Tips", "jquery operations JSON data tips," " jquery extension Techniques Summary, jquery drag-and-drop effects and tips summary, jquery table (table) Operation tips Summary, "jquery Ajax Usage Summary", "jquery animation and special effects usage Summary" and "jquery Selector usage Summary"
I hope this article will help you with the jquery program design.