Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Sub-featured thumbnail hover effect
- jQuery(document).ready(function () {
- jQuery('#breadcrumb.home img.thumb').mouseover(function() {
- jQuery(this).stop().fadeTo(300, 0.5);
- });
- jQuery('#breadcrumb.home img.thumb').mouseout(function() {
- jQuery(this).stop().fadeTo(400, 1.0);
- });
- });
- // Sub-featured thumbnail hover effect
- jQuery(document).ready(function () {
- jQuery('#featured.home .play').mouseover(function() {
- jQuery(this).stop().fadeTo(300, 1);
- });
- jQuery('#featured.home .play').mouseout(function() {
- jQuery(this).stop().fadeTo(400, 0.7);
- });
- });
- jQuery(document).ready(function () {
- jQuery('#portfolio .block img').mouseover(function() {
- jQuery(this).stop().fadeTo(300, 0.5);
- });
- jQuery('#portfolio .block img').mouseout(function() {
- jQuery(this).stop().fadeTo(400, 1.0);
- });
- });
- // Innerfade setup
- jQuery(document).ready( function(){
- jQuery('.quotes').innerfade({
- animationtype: 'fade',
- speed: 'normal',
- timeout: 6000,
- type: 'random_start',
- containerheight: '120px'
- });
- jQuery('#twitter_update_list').innerfade({
- animationtype: 'fade',
- speed: 'normal',
- timeout: 6000,
- type: 'sequence',
- containerheight: 'auto'
- });
- });
- // Portfolio tag sorting
- jQuery(document).ready(function(){
- jQuery('.port-cat a').click(function(evt){
- var clicked_cat = jQuery(this).attr('rel');
- if(clicked_cat == 'all'){
- jQuery('#portfolio .post').hide().fadeIn(200);
- } else {
- jQuery('#portfolio .post').hide()
- jQuery('#portfolio .' + clicked_cat).fadeIn(400);
- }
- //eq_heights();
- evt.preventDefault();
- })
- // Thanks @johnturner, I owe you a beer!
- var postMaxHeight = 0;
- jQuery("#portfolio .post").each(function (i) {
- var elHeight = jQuery(this).height();
- if(parseInt(elHeight) > postMaxHeight){
- postMaxHeight = parseInt(elHeight);
- }
- });
- jQuery("#portfolio .post").each(function (i) {
- jQuery(this).css('height',postMaxHeight+'px');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement