1 jQuery(document).ready( function() {
3 jQuery('.fade').animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300).animate( { backgroundColor: '#ffffe0' }, 300).animate( { backgroundColor: '#fffbcc' }, 300);
6 jQuery('.wp-no-js-hidden').removeClass( 'wp-no-js-hidden' );
8 // Basic form validation
9 if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) {
10 jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } );
15 JQ.fn.tTips = function() {
17 JQ('body').append('<div id="tTips"><p id="tTips_inside"></p></div>');
18 var TT = JQ('#tTips');
20 this.each(function() {
21 var el = JQ(this), txt;
23 if ( txt = el.attr('title') ) el.attr('tip', txt).removeAttr('title');
25 el.find('img').removeAttr('alt');
27 el.mouseover(function(e) {
28 txt = el.attr('tip'), o = el.offset();;
31 TT.find('p').html(txt);
33 TT.css({'top': o.top - 43, 'left': o.left - 5});
34 TT.sD = setTimeout(function(){TT.fadeIn(150);}, 100);
37 el.mouseout(function() {
39 TT.css({display : 'none'});
45 jQuery(function(){jQuery('#media-buttons a').tTips();});