In a new file, create the following outer structure for the plugin and save it in our js
folder under the name jquery.tranzify.js
:
/* Plugin name jQuery plugin version 1.0 Copyright (c) date copyright holder License(s) */ ;(function($) { $.tranzify = { defaults: { transitionWidth: 40, transitionHeight: "100%", containerID: "overlay", transitionType: "venetian", prevID: "prev", nextID: "next", visibleClass: "visible" } }; })(jQuery);
All plugins should contain information on the plugin name, version number, the copyright owner (usually the author of the code), and the terms, or links to the terms, of the license or licenses it is released under.
The plugin is encapsulated within an anonymous function so that its variables are protected from other code which may be in use on the page it is deployed on. It also has a semicolon placed before...