Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c626bf
commit 833f870
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'); | ||
}); | ||
}); | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* @namespace | ||
*/ | ||
orin = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$(document).ready(orin.flickr.onHover); |