2008-03-15 18:57:47 -04:00
|
|
|
jQuery(document).ready( function() {
|
2008-01-09 07:12:35 -05:00
|
|
|
// pulse
|
2008-03-02 15:17:30 -05:00
|
|
|
jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
|
2008-01-10 17:42:49 -05:00
|
|
|
|
2008-02-26 17:45:46 -05:00
|
|
|
// Reveal
|
2008-01-10 17:42:49 -05:00
|
|
|
jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
|
2008-03-12 01:50:07 -04:00
|
|
|
|
|
|
|
// Basic form validation
|
|
|
|
if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) {
|
2008-03-18 15:20:18 -04:00
|
|
|
jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } );
|
2008-03-12 01:50:07 -04:00
|
|
|
}
|
2008-01-10 17:42:49 -05:00
|
|
|
});
|
2008-03-15 12:53:36 -04:00
|
|
|
|
|
|
|
(function(JQ) {
|
|
|
|
JQ.fn.tTips = function() {
|
|
|
|
|
|
|
|
JQ('body').append('<div id="tTips"><p id="tTips_inside"></p></div>');
|
|
|
|
var TT = JQ('#tTips');
|
|
|
|
|
|
|
|
this.each(function() {
|
|
|
|
var el = JQ(this), txt;
|
2008-08-09 01:36:14 -04:00
|
|
|
|
2008-03-15 12:53:36 -04:00
|
|
|
if ( txt = el.attr('title') ) el.attr('tip', txt).removeAttr('title');
|
|
|
|
else return;
|
|
|
|
el.find('img').removeAttr('alt');
|
|
|
|
|
|
|
|
el.mouseover(function(e) {
|
|
|
|
txt = el.attr('tip'), o = el.offset();;
|
|
|
|
|
|
|
|
clearTimeout(TT.sD);
|
|
|
|
TT.find('p').html(txt);
|
|
|
|
|
|
|
|
TT.css({'top': o.top - 43, 'left': o.left - 5});
|
|
|
|
TT.sD = setTimeout(function(){TT.fadeIn(150);}, 100);
|
|
|
|
});
|
|
|
|
|
|
|
|
el.mouseout(function() {
|
|
|
|
clearTimeout(TT.sD);
|
|
|
|
TT.css({display : 'none'});
|
|
|
|
})
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}(jQuery));
|
|
|
|
|
|
|
|
jQuery(function(){jQuery('#media-buttons a').tTips();});
|