源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

jQuery bt气泡实现悬停显示及移开隐藏功能的方法

  • 时间:2020-07-30 11:01 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:jQuery bt气泡实现悬停显示及移开隐藏功能的方法
本文实例讲述了jQuery bt气泡实现悬停显示及移开隐藏功能的方法。分享给大家供大家参考,具体如下:
jQuery.bt.options.closeWhenOthersOpen = true;
$("img.eq-message").bt({
    trigger:["mouseover", "click"],
    contentSelector:"$(this).next().html()",
    positions:["left", "bottom"],
    fill:"#FFD97A",
    strokeWidth: 0,
    shadow: true,
    shadowOffsetX: 3,
    shadowOffsetY: 3,
    shadowBlur: 8,
    shadowColor: "rgba(0,0,0,.9)",
    shadowOverlap: false,
    noShadowOpts: {strokeStyle: "#999", strokeWidth: 2},
});
var hideDelayTimer = null;
var hideDelayTimer2 = null;
$("div.bt-content").live("mouseover", function(e){
    if (hideDelayTimer) clearTimeout(hideDelayTimer);
    if (hideDelayTimer2) clearTimeout(hideDelayTimer2);
});
$("div.bt-content").live("mouseout", function(e){
    if (hideDelayTimer) clearTimeout(hideDelayTimer);
    hideDelayTimer2 = setTimeout(function(){
      $("div.bt-wrapper").remove();
    }, 100);
});
$("img.eq-message").mouseover(function(){
    if (hideDelayTimer2) clearTimeout(hideDelayTimer2);
    if (hideDelayTimer) clearTimeout(hideDelayTimer);
}).mouseout(function(){
    hideDelayTimer = setTimeout(function(){
      $("div.bt-wrapper").remove();
    }, 100);
});

附:jQuery.bt.min.js插件完整代码如下:
[url=http://www.1sucai.cn/Special/451.htm]jQuery扩展技巧总结[/url]》、《[url=http://www.1sucai.cn/Special/200.htm]jQuery常用插件及用法总结[/url]》、《[url=http://www.1sucai.cn/Special/497.htm]jQuery拖拽特效与技巧总结[/url]》、《[url=http://www.1sucai.cn/Special/539.htm]jQuery表格(table)操作技巧汇总[/url]》、《[url=http://www.1sucai.cn/Special/93.htm]jquery中Ajax用法总结[/url]》、《[url=http://www.1sucai.cn/Special/430.htm]jQuery常见经典特效汇总[/url]》、《[url=http://www.1sucai.cn/Special/104.htm]jQuery动画与特效用法总结[/url]》及《[url=http://www.1sucai.cn/Special/75.htm]jquery选择器用法总结[/url]》 希望本文所述对大家jQuery程序设计有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部