Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Reusable Effects */
- $('[id*=toggle-]').live('click',function() {
- var container = $(this).attr("id").replace("toggle-","");
- $('#'+container).toggle();
- return false;
- });
- $('[id*=slide-]').live('click',function() {
- var container = $(this).attr("id").replace("slide-","");
- $('#'+container).slideToggle();
- return false;
- });
- $('[id*=fade-]').live('click',function() {
- var container = $(this).attr("id").replace("fade-","");
- if ($('#'+container) .is(':hidden')) {
- $('#'+container).fadeIn();
- } else if ($('#'+container) .is(':visible')){
- $('#'+container).fadeOut();
- }
- return false;
- });
Add Comment
Please, Sign In to add comment