更多操作
因为以下原因,您没有权限编辑该页面:
您可以查看和复制此页面的源代码。
"use strict";
/* 此处的JavaScript将加载于所有用户每一个页面。 */
/**
* 在鼠标移至文本与标题不同的 wikilink 上时, 弹出带有原标题的 tooltip - when the mouse hovers on a wikilink whose label differs from its link target, displays a tooltip that shows the title of the link target
* @author [[User:UnownHearn]]
* @version 1 (2018/07/28)
*/
(function () {
$(".WikiaArticle a[title]").hover(function () {
if (this.className != "") { return; } // 作为 wikilink 的超链接没有 class
var a = $(this);
var title = a.attr("title");
if (title != a.text()) {
a.append($('<span class="wikilink-tooltip"/>').text(title));
}
}, function () {
$(this).find(".wikilink-tooltip").remove();
});
})();
000
1:0