首页 > IT职业 > IT职场 > 鼠标滑在标题上显示图片的JS代码
机型:" >${air.aircrafttype}
jquery.tooltip.execute.js:
$(document).ready(function(){
$(".with-tooltip").simpletooltip();
});
tooltip.v.1.1.js: www.jb51.net
(function($){ $.fn.simpletooltip = function(){
return this.each(function() {
var text = $(this).attr("title");
$(this).attr("title", "");
if(text != undefined) {
$(this).hover(function(e){
var tipX = e.pageX + 12;
var tipY = e.pageY + 12;
$(this).attr("title", "");
$("body").append("
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3789/viewspace-2814909/ ,如需转载,请注明出处,否则将追究法律责任。