Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
 
(66 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.0.min.js"></script>
 +
<!--SPIDER TOP BUTTON-->
 +
<script type="text/javascript">
 +
jQuery(document).ready(function($){
 +
    $('.spiderbutton, .backtotop').click(function(){
 +
          $('.spiderbutton').stop(true,true).animate({ top: '-=55%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=55%'}, 3000)});
 +
          $('.spiderline').stop(true,true).animate({ top: '-=55%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+=55%'}, 3000)});
 +
          $("html, body").animate({ scrollTop: 0 }, 1000);
 +
    });
 +
});
 +
</script>
 +
 +
 +
<!--SPLASH PAGE-->
 +
<script type="text/javascript">
 +
    $(document).ready(function() {
 +
        $('#box1').hover(function(){
 +
            var smallTop = $('#box1').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
        $('#box2').hover(function(){
 +
            var smallTop = $('#box2').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
                $('#box3').hover(function(){
 +
            var smallTop = $('#box3').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
                $('#box4').hover(function(){
 +
            var smallTop = $('#box4').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
    });
 +
</script>
 +
 +
<!--MAIN PAGE BOXES-->
 +
<script type="text/javascript">
 +
    $(document).ready(function() {
 +
        $('#box5').hover(function(){
 +
            var smallTop = $('#box5').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
        $('#box6').hover(function(){
 +
            var smallTop = $('#box6').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
                $('#box7').hover(function(){
 +
            var smallTop = $('#box7').height() - $(".cover", this).height() -10 +"px";
 +
    $(".cover", this).stop().animate({top:smallTop},{queue:false,duration:160});
 +
}, function() {
 +
    $(".cover", this).stop().animate({top:'340px'},{queue:false,duration:160});
 +
});
 +
    });
 +
</script>
 +
 +
 +
<!--SIDE NAVIGATION MENU BAR-->
 +
<script type="text/javascript">
 +
$(document).ready(function(){
 +
  $("#side_menu").mouseenter(function(){
 +
    $("#side_menu").stop(true,false).animate({
 +
      left:'0px',
 +
    });
 +
  }).mouseleave(function(){
 +
    $("#side_menu").stop(true,false).animate({
 +
      left:'-170px',
 +
    });
 +
  });
 +
});
 +
</script>
<!--TOP NAVIGATION MENU BAR-->
<!--TOP NAVIGATION MENU BAR-->
Line 7: Line 88:
$("#menu > li > ul").hide();
$("#menu > li > ul").hide();
$("#menu > li").mouseenter(function() {
$("#menu > li").mouseenter(function() {
-
$(this).children("li > ul").slideDown(500);
+
$(this).children("li > ul").stop(true,true).slideDown(350);
});
});
         $("#menu > li").mouseleave(function() {
         $("#menu > li").mouseleave(function() {
-
$(this).children("li > ul").slideUp(500);
+
$(this).children("li > ul").stop(true,true).slideUp(350);
});
});
});
});
Line 51: Line 132:
};
};
})(jQuery);
})(jQuery);
-
 
$(document).ready(function(){
$(document).ready(function(){
Line 70: Line 150:
</script>
</script>
-
<!--SLIDER-->
 
-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
 
-
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
 
-
<script type="text/javascript">
 
-
function Slider(){
 
-
$(".slider #1").show("fade",500);
 
-
$(".slider #1").delay(3000).hide("slide",{direction:'left'},500);
 
-
 
-
var sc = $(".slider img").size();
 
-
var count = 2;
 
-
 
-
setInterval(function(){
 
-
$(".slider #"+count).show("slide",{direction:'right'},500);
 
-
$(".slider #"+count).delay(3000).hide("slide",{direction:'left'},500);
 
-
if(count == sc){
 
-
count = 1;
 
-
}else{
 
-
count += 1;
 
-
}
 
-
},4000);
 
-
}
 
-
</script>
 
-
<!-- SAM'S CAROUSEL EDIT SORRY AGAIN -->
 
-
<script type="text/javascript">
 
-
$(".scroll").click(function(event){
 
-
event.preventDefault();
 
-
//calculate destination place
 
-
var dest=0;
 
-
if($(this.hash).offset().top > $(document).height()-$(window).height()){
 
-
dest=$(document).height()-$(window).height();
 
-
}else{
 
-
dest=$(this.hash).offset().top;
 
-
}
 
-
//go to destination
 
-
$('html,body').animate({scrollTop:dest}, 700,'swing');
 
-
});
 
-
</script>
 
-
<!--BACK TO TOP BUTTON-->
+
<!--SLIDER-->
<script type="text/javascript">
<script type="text/javascript">
-
$(function(){
+
  $(document).ready(function() {
-
$(document).on( 'scroll', function(){
+
    $('.slider_left').mouseenter(function(){
-
if ($(window).scrollTop() > 100) {
+
          $('.slider_left').animate({ opacity: '0.8'},1);
-
$('.scroll-top-wrapper').addClass('show');
+
    });
-
} else {
+
    $('.slider_right').mouseenter(function(){
-
$('.scroll-top-wrapper').removeClass('show');
+
          $('.slider_right').animate({ opacity: '0.8'},1);
-
}
+
    });
-
});
+
    $('.slider_left').mouseleave(function(){
-
$('.scroll-top-wrapper').on('click', scrollToTop);
+
          $('.slider_left').animate({ opacity: '0.5'},1);
-
});
+
    });
-
+
    $('.slider_right').mouseleave(function(){
-
function scrollToTop() {
+
          $('.slider_right').animate({ opacity: '0.5'},1);
-
verticalOffset = typeof(verticalOffset) != 'undefined' ? verticalOffset : 0;
+
    });
-
element = $('body');
+
-
offset = element.offset();
+
-
offsetTop = offset.top;
+
-
$('html, body').animate({scrollTop: offsetTop},700, 'swing');
+
-
};
+
-
$(".scroll").click(function(event){
+
    var total = $('.slider_imgs > td').length;
-
event.preventDefault();
+
    var count = 0;
-
//calculate destination place
+
    $('.slider_left').click(function(){
-
var dest=0;
+
        if(count > 0){
-
if($(this.hash).offset().top > $(document).height()-$(window).height()){
+
            $('.slider_imgs').stop(true,true).animate({ left: '+=1150px'}, 250);
-
dest=$(document).height()-$(window).height();
+
            count -= 1;
-
}else{
+
        } else{
-
dest=$(this.hash).offset().top;
+
            $('.slider_imgs').stop(true,true).animate({ left: '+=20px'}, 100, function(){$('.slider_imgs').stop(true,true).animate({ left: '-=20px'}, 500)});
-
}
+
        }
-
//go to destination
+
    });
-
$('html,body').animate({scrollTop:dest}, 700,'swing');
+
    $('.slider_right').click(function(){
-
});
+
        if(count < 3){
 +
            $('.slider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250);
 +
            count += 1;
 +
        } else{
 +
            $('.slider_imgs').stop(true,true).animate({ left: '+=3450px'}, 250);
 +
            count = 0;
 +
        }
 +
    });
 +
  });
</script>
</script>
-
<!--SLIDING SIDE MENU-->
 
-
<script>
 
-
var menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
 
-
        menuRight = document.getElementById( 'cbp-spmenu-s2' ),
 
-
        menuTop = document.getElementById( 'cbp-spmenu-s3' ),
 
-
        menuBottom = document.getElementById( 'cbp-spmenu-s4' ),
 
-
        showLeft = document.getElementById( 'showLeft' ),
 
-
        showRight = document.getElementById( 'showRight' ),
 
-
        showTop = document.getElementById( 'showTop' ),
 
-
        showBottom = document.getElementById( 'showBottom' ),
 
-
        showLeftPush = document.getElementById( 'showLeftPush' ),
 
-
        showRightPush = document.getElementById( 'showRightPush' ),
 
-
        body = document.body;
 
-
 
-
showLeft.onclick = function() {
 
-
    classie.toggle( this, 'active' );
 
-
    classie.toggle( menuLeft, 'cbp-spmenu-open' );
 
-
    disableOther( 'showLeft' );
 
-
};
 
-
function disableOther( button ) {
 
-
    if( button !== 'showLeft' ) {
 
-
        classie.toggle( showLeft, 'disabled' );
 
-
    }
 
-
    if( button !== 'showRight' ) {
 
-
        classie.toggle( showRight, 'disabled' );
 
-
    }
 
-
    if( button !== 'showTop' ) {
 
-
        classie.toggle( showTop, 'disabled' );
 
-
    }
 
-
    if( button !== 'showBottom' ) {
 
-
        classie.toggle( showBottom, 'disabled' );
 
-
    }
 
-
    if( button !== 'showLeftPush' ) {
 
-
        classie.toggle( showLeftPush, 'disabled' );
 
-
    }
 
-
    if( button !== 'showRightPush' ) {
 
-
        classie.toggle( showRightPush, 'disabled' );
 
-
    }
 
-
}
 
-
<!--MODERNIZR-->
+
<!--HP SLIDER-->
-
;window.Modernizr=function(a,b,c){function u(a){j.cssText=a}function v(a,b){return u(prefixes.join(a+";")+(b||""))}function w(a,b){return typeof a===b}function x(a,b){return!!~(""+a).indexOf(b)}function y(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:w(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m={},n={},o={},p=[],q=p.slice,r,s={}.hasOwnProperty,t;!w(s,"undefined")&&!w(s.call,"undefined")?t=function(a,b){return s.call(a,b)}:t=function(a,b){return b in a&&w(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=q.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(q.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(q.call(arguments)))};return e});for(var z in m)t(m,z)&&(r=z.toLowerCase(),e[r]=m[z](),p.push((e[r]?"":"no-")+r));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)t(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},u(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+p.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
+
<script type="text/javascript">
 +
  $(document).ready(function() {
 +
    $('.hpslider_left').mouseenter(function(){
 +
          $('.hpslider_left').animate({ opacity: '0.8'},1);
 +
    });
 +
    $('.hpslider_right').mouseenter(function(){
 +
          $('.hpslider_right').animate({ opacity: '0.8'},1);
 +
    });
 +
    $('.hpslider_left').mouseleave(function(){
 +
          $('.hpslider_left').animate({ opacity: '0.5'},1);
 +
    });
 +
    $('.hpslider_right').mouseleave(function(){
 +
          $('.hpslider_right').animate({ opacity: '0.5'},1);
 +
    });
-
<!--CLASSIE-->
 
-
( function( window ) {
 
-
'use strict';
+
    var total = $('.hpslider_imgs > td').length;
 +
    var count = 0;
 +
    $('.hpslider_left').click(function(){
 +
        if(count > 0){
 +
            $('.hpslider_imgs').stop(true,true).animate({ left: '+=1150px'}, 250);
 +
            count -= 1;
 +
        } else{
 +
            $('.hpslider_imgs').stop(true,true).animate({ left: '-=16100px'}, 250);
 +
            count = 14;
 +
//            $('.hpslider_imgs').stop(true,true).animate({ left: '+=20px'}, 100, function(){$('.hpslider_imgs').stop(true,true).animate({ left: '-=20px'}, 500)});
 +
        }
 +
    });
 +
    $('.hpslider_right').click(function(){
 +
        if(count < 14){
 +
            $('.hpslider_imgs').stop(true,true).animate({ left: '-=1150px'}, 250);
 +
            count += 1;
 +
        } else{
 +
            $('.hpslider_imgs').stop(true,true).animate({ left: '+=16100px'}, 250);
 +
            count = 0;
 +
        }
 +
    });
 +
  });
 +
</script>
-
function classReg( className ) {
 
-
  return new RegExp("(^|\\s+)" + className + "(\\s+|$)");
 
-
}
 
-
var hasClass, addClass, removeClass;
 
-
 
-
if ( 'classList' in document.documentElement ) {
 
-
  hasClass = function( elem, c ) {
 
-
    return elem.classList.contains( c );
 
-
  };
 
-
  addClass = function( elem, c ) {
 
-
    elem.classList.add( c );
 
-
  };
 
-
  removeClass = function( elem, c ) {
 
-
    elem.classList.remove( c );
 
-
  };
 
-
}
 
-
else {
 
-
  hasClass = function( elem, c ) {
 
-
    return classReg( c ).test( elem.className );
 
-
  };
 
-
  addClass = function( elem, c ) {
 
-
    if ( !hasClass( elem, c ) ) {
 
-
      elem.className = elem.className + ' ' + c;
 
-
    }
 
-
  };
 
-
  removeClass = function( elem, c ) {
 
-
    elem.className = elem.className.replace( classReg( c ), ' ' );
 
-
  };
 
-
}
 
-
 
-
function toggleClass( elem, c ) {
 
-
  var fn = hasClass( elem, c ) ? removeClass : addClass;
 
-
  fn( elem, c );
 
-
}
 
-
 
-
window.classie = {
 
-
  hasClass: hasClass,
 
-
  addClass: addClass,
 
-
  removeClass: removeClass,
 
-
  toggleClass: toggleClass,
 
-
  has: hasClass,
 
-
  add: addClass,
 
-
  remove: removeClass,
 
-
  toggle: toggleClass
 
-
};
 
-
 
-
})( window );
 
 +
<!--PAGE HEADERS-->
 +
<script type="text/javascript">
 +
$(document).ready(function() {
 +
    $('.page_header_box').mouseenter(function(){
 +
          $(this).animate({ opacity: '0.9'},1);
 +
    });
 +
    $('.page_header_box').mouseleave(function(){
 +
          $(this).animate({ opacity: '0.5'},1);
 +
    });
 +
});
</script>
</script>
 +
</html>
</html>

Latest revision as of 02:45, 18 October 2014