문서 편집 권한이 없습니다. 다음 이유를 확인해주세요: 이 문서는 이 위키의 소프트웨어 인터페이스에 쓰이는 문서로, 부정 행위를 막기 위해 보호되어 있습니다. 모든 위키에 대한 번역을 추가하거나 바꾸려면 미디어위키 지역화 프로젝트인 translatewiki.net에 참여하시기 바랍니다. 모든 방문자에게 영향을 미칠 수 있기 때문에 이 자바스크립트 문서의 편집 권한이 없습니다. 문서의 원본을 보거나 복사할 수 있습니다. var ref_tags = $("[id^=cite_ref]"); $(ref_tags).each(function(index ,iter) { var a = $(iter).children("a")[0]; var ref_text = $($(a).attr("href")).children(".reference-text")[0]; var ref_text = $(ref_text).html(); var baloon = document.createElement("div"); var arrow = document.createElement("div"); var inner = document.createElement("div"); baloon.className = "tooltip bottom fade"; arrow.className = "tooltip-arrow"; inner.className = "tooltip-inner"; $(inner).html(ref_text); $(baloon).append(arrow); $(baloon).append(inner); iter.tooltip = baloon; $(iter).hover( function(e) { $('body').after(baloon); var baloonWidth = $(baloon).width()/2; var iterWidth = $(iter).width()/2; var where_top = $(iter).offset().top+15; var where_left = $(iter).offset().left+iterWidth-baloonWidth; $(baloon).css("top",where_top); $(baloon).css("left",where_left); var bal = this.tooltip; baloon.className = "tooltip bottom fade in"; }, function(e) { var bal = this.tooltip; baloon.className = "tooltip bottom fade"; $(baloon).delay(500).queue(function() { $(this).remove(); }); } ); }); 미디어위키:Gadget-ReferenceTooltips-ko.js 문서로 돌아갑니다.