Skip to content

Commit

Permalink
the orin-specific js
Browse files Browse the repository at this point in the history
  • Loading branch information
founddrama committed Jan 23, 2011
1 parent 7c626bf commit 833f870
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/js/flickr-badge-fx.js
@@ -0,0 +1,33 @@
/**
* @requires {jQuery}
*/
orin.flickr = {
onHover: function(){
var i, w = $('#flickr_www_wrapper');

$('.flickr_badge_image').hover(function(){
i = $(this).children('a').children('img');
var t = $(this).find('img').attr('title');

i.css({
border: '4px solid #ff1c92',
margin: '-4px',
zIndex: '200'
});

w.fadeOut('slow', function(){
w.empty().append(t).fadeIn('slow');
});
}, function(){
i.css({
border: 'none',
margin: '0',
zIndex: '100'
});
w.fadeOut('fast', function(){
w.empty().append('flick<span style="color:#ff1c92;">r</span>').fadeIn('fast');
});
});
}
};

4 changes: 4 additions & 0 deletions src/js/orin-base.js
@@ -0,0 +1,4 @@
/**
* @namespace
*/
orin = {};
1 change: 1 addition & 0 deletions src/js/orin-ready.js
@@ -0,0 +1 @@
$(document).ready(orin.flickr.onHover);

0 comments on commit 833f870

Please sign in to comment.