mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10298 201d5d3c-b55e-5fd7-737f-ddc643e51545
18 lines
No EOL
606 B
JavaScript
18 lines
No EOL
606 B
JavaScript
jQuery(function(){
|
|
jQuery('.language_selector','div.wgLanguage').click(function(){
|
|
var c = jQuery(this).parent();
|
|
var langList = c.next('ul.langList');
|
|
langList.toggle();
|
|
|
|
jQuery(this).parents('[id^=ex_]:first').css('overflow','').css('position','relative').css('zoom','1');
|
|
|
|
if(langList.css('top')){
|
|
if(jQuery('body').height() <= c.offset().top + langList.height()) {
|
|
langList.css('top',-(langList.height()+17));
|
|
}else{
|
|
langList.css('top','26px');
|
|
}
|
|
}
|
|
return false;
|
|
});
|
|
}); |