function callQtip(textContent, cnt, object_iframe) {
var iFrameEleId = object_iframe
$(iFrameEleId).qtip({
content: {
prerender: false,
text: "<div style='width:100%; height:100%;' border='0'><iframe id='iframe" + cnt + "' marginheight='0' marginwidth='0' class='frameclass' src='" + textContent + "'&disablelink=y' scrolling='no' frameborder='0' allowTransparency='false'></iframe></div>"
},
position: {
my: "left top",
at: "left top",
target: $(iFrameEleId),
viewport: $(window),
adjust: {
method: 'shift',
x: 420,
y: -10
}
},
show: {
solo: false,
delay: 150
},
hide: {
delay: 350,
fixed: true,
event: 'click mouseleave'
},
style: {
classes: "ui-tooltip-blue",
tip: {
corner: 'center center',
mimic: 'center center'
}
}
});
}
抱歉..实际编码是这样的。
答案 0 :(得分:4)
确保您对qtip库有有效的引用。类似的东西:
<script type="text/javascript" src="/js/jquery.qtip.min.js"></script>
答案 1 :(得分:0)
function
callQtip(textContent, cnt, object_iframe){
var iFrameEleId = object_iframe td##popupimg" + cnt);
var iFrameEleId = object_iframe
--->
因为上面你的编码是错误的。