MediaWiki:Biph.js
Інститут фізіології ім. О. О. Богомольця
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Konqueror: Click Reload or press F5
- Opera: Clear the cache in Tools → Preferences
$( function(){
var canMove = true;
if ( $('#mg .galleryholder').length ) {
$('#mg .galleryholder a').click( function() { return false; }).css('cursor','default');
$('#mg .galleryholder a').mouseleave( function() { canMove = true; }).mouseenter( function() {
if ( !canMove ) return;
canMove = false;
ul = $(this).parents('ul');
document.title = ul.contents('li:first-child').css('marginLeft');
if ( parseInt( ul.contents('li:first-child').css('marginLeft') ) != 0 ) { nl = 0; } else {
w = 0;
ul.contents('li').each( function() { w+= $(this).width() + 3 } );
nl = ul.width() - w;
}
ul.contents('li:first-child').animate({'marginLeft':nl + 'px'},5000,function(){canMove = true;});
});
};
});
