$(function() { // $("a[rel=lightbox]").lightbox({ // fitToScreen: true, // imageClickClose: false // }); $.fn.clearForm = function() { return this.each(function() { var type = this.type, tag = this.tagName.toLowerCase(); if (tag == 'form') return $(':input',this).clearForm(); if (type == 'text' || type == 'password' || tag == 'textarea') this.value = ''; else if (type == 'checkbox' || type == 'radio') this.checked = false; else if (tag == 'select') this.selectedIndex = -1; }); }; }); $(document).ready(function(){ $('.hoverimg').hover(function() { $(this).css('border', '1px solid #aaaaaa'); $(this).css('background-color', 'rgba(0,0,0,0.2)'); $(this).parent().css('border', '1px solid #ffffff'); }, function() { $(this).css('border', '0px solid #222222'); $(this).css('background', 'none'); $(this).parent().css('border', '0px solid #ffffff'); }); $('.hoverimg').hover(function() { $(this).css('border', '1px solid #dddddd'); $(this).css('background-color', 'rgba(0,0,0,0.2)'); $(this).parent().css('border', '1px solid #222222'); }, function() { $(this).css('border', '0px solid #222222'); $(this).css('background', 'none'); }); $('#m1').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m2').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m3').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m4').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m5').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m6').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m7').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); $('#m8').hover(function() { $(this).animate({opacity: 1.0}, 600); }, function() { $(this).animate({opacity: 0}, 600); }); });