편집 요약 없음 |
편집 요약 없음 |
||
26번째 줄: | 26번째 줄: | ||
var bal = this.tooltip; | var bal = this.tooltip; | ||
baloon.className = "tooltip bottom fade in"; | baloon.className = "tooltip bottom fade in"; | ||
$(bal).fadeIn(); | /*$(bal).fadeIn();*/ | ||
}, | }, | ||
function(e) | function(e) | ||
32번째 줄: | 32번째 줄: | ||
var bal = this.tooltip; | var bal = this.tooltip; | ||
baloon.className = "tooltip bottom fade"; | baloon.className = "tooltip bottom fade"; | ||
$(bal).fadeOut(); | /*$(bal).fadeOut();*/ | ||
} | } | ||
); | ); | ||
}); | }); |
2015년 5월 31일 (일) 12:02 판
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");
arrow.className = "tooltip-arrow";
inner.className = "tooltip-inner";
$(iter).css("position","relative");
$(inner).html(ref_text);
$(baloon).append(arrow);
$(baloon).append(inner);
$(iter).after(baloon);
iter.tooltip = baloon;
$(iter).hover(
function(e)
{
var bal = this.tooltip;
baloon.className = "tooltip bottom fade in";
/*$(bal).fadeIn();*/
},
function(e)
{
var bal = this.tooltip;
baloon.className = "tooltip bottom fade";
/*$(bal).fadeOut();*/
}
);
});