Javascript Jquery弹出式工具提示
我正在使用:Javascript Jquery弹出式工具提示,javascript,jquery,popup,Javascript,Jquery,Popup,我正在使用: jQuery Bubble Popup v.2.3.1 http://maxvergelli.wordpress.com/jquery-bubble-popup/ 您应该在文档中准备好: $('.bubble').CreateBubblePopup({ align: 'center', innerHtml: 'TEXT GOETH HERE!', // THIS IS THE LINE innerHtml
jQuery Bubble Popup v.2.3.1
http://maxvergelli.wordpress.com/jquery-bubble-popup/
您应该在文档中准备好:
$('.bubble').CreateBubblePopup({
align: 'center',
innerHtml: 'TEXT GOETH HERE!', // THIS IS THE LINE
innerHtmlStyle: {
color: '#FFFFFF',
'text-align': 'center'
},
themeName: 'all-black',
themePath: 'plugins/bubble/themes'
});
您必须显式地将鼠标文本设置在。。。是否可以将文本设置为元素alt atribute?或者更好,元素上的自定义属性?比如:
innerHtml: this.attr("alt"),
但这不起作用,因为文档准备功能中未定义“this”:
$('.bubble').each(function(){
$(this).CreateBubblePopup({
align: 'center',
innerHtml: $(this).attr('mouseoverText'),
innerHtmlStyle: {
color: '#FFFFFF',
'text-align': 'center'
},
themeName: 'all-black',
themePath: 'plugins/bubble/themes'
});
});