限时优惠活动
亲爱的苦力吧用户,我们为了回馈新老用户一直以来的鼎力支持,即日起(2025-02-06至2025-03-06)凡是购买苦力吧VIP/充值K币的新老用户,都直接可获得买一送一的优惠馈赠。例如:购买一个月的VIP会员可直接获得两个月的VIP会员;充值100K币可直接获得200K币,以此类推!有任何疑问可联系在线客服,感谢各位用户对苦力吧素材的信任与厚爱,我们将一如既往的给大家上新更多优质的素材源码,祝大家开工大吉、工作顺利、心想事成。

jquery响应式带多种风格的弹出层插件

所属分类: 网页特效-弹出层    2023-07-29 02:40:44

jquery响应式带多种风格的弹出层插件 ie兼容6
 查看演示  登录后下载 温馨提示
登录会员即可享受免费下载
 我要建站

jquery响应式带多种风格的弹出层插件(共18个文件)

    • xsalert.js
    • index.html

使用方法

$(function(){
    $('#theme-selector').change(function () {
        var theme =  $('#theme-selector').val();
        $("#theme-name").attr('href', 'src/themes/'+theme+'.css');
    })
    $('#basic-alert').on('click', function(){
       XSAlert({
         title: "Ouch!",
         message: "Something's just not right at the moment",
         icon: 'error',
         hideCancelButton: true,
         footer: '<a href="#">Click here for more info</a>'
      })
    })
    $('#bg-img').on('click', function(){
        XSAlert({
         title: "Wow, I've got a custom background image ?",
         hideCancelButton: true,
         overlayImageURL: 'https://source.unsplash.com/Ta5II09WSrA/2400x1600'
      })
    })
    $('#top-right').on('click', function(){
        XSAlert({
   title: "Hey, I'm here! ↗️",
   position: 'top-right',
   hideCancelButton: true
})
    })
    $('#basic-confirm').on('click', function(){
        XSAlert({
         title: 'Hey you',
         message: "What's your favorite drink? ?",
         okButtonText: '? Wine',
         cancelButtonText: "? I don't drink",
         thirdButtonText: "? Tropical Drink",
         closeOnOutsideClick: true,

       }).then((result) => {
         if(result == 'ok') { XSAlert({ message: 'Your fav drink is '+$('#xs-ok-btn').text(), backgroundColor: '#e57373' })
         } else if(result == 'third') { XSAlert({ message: 'Your fav drink is '+$('#xs-third-btn').text(), backgroundColor: '#ffc107' }) }
      })
    })
    $('#basic-prompt').on('click', function(){
       XSAlert({
         title: "Hi there ?",
         message: "What's your name",
         inputType: 'text',
         inputPlaceholder: 'Ex: Frank Eno',
         cancelButtonText: 'Forget it'
       }).then((result) => {
         if(result == 'ok'){
            if($('#xs-input').val() == '') { XSAlert({ message: "How come you don't have a name? ?"})
            } else { XSAlert({ title: 'Nice!', message: 'Your name is "'+$('#xs-input').val()+'"' }) }
         } else if(result == 'cancel' || result == 'outside'){ XSAlert({ message: "It's ok if you don't wanna tell me your name ?" }) }
      })
    })
    $('#auto-close').on('click',function(){
       XSAlert({
   title: "Hi there ?",
   message: "Hold on, I'm gonna close in 2 seconds...",
   autoCloseTimer: 2000,
   hideProgressBar: false, // 'true' to hide
   hideProgressIcon: false, // 'true' to hide
   hideOkButton: true,
   hideCancelButton: true
   // You can also perform an action after cllosing the alert
 }).then((result) => {
   if(result == 'autoClosed') {
      XSAlert({message: 'Alert has closed automatically!', hideCancelButton: true, closeOnOutsideClick: true })
   }
})
    })
});

站长提示:
1. 苦力吧素材官方QQ群:950875342
2. 平台上所有素材资源,需注册登录会员方能正常下载。
3. 会员用户积极反馈网站、素材资源BUG或错误问题,每次奖励2K币
4. PHP源码类素材,如需协助安装调试,或你有二次开发需求,可联系苦力吧客服。
5. 付费素材资源,需充值后方能下载,如有任何疑问可直接联系苦力吧客服
相关资源 / 弹出层

jquery支持上传本地图片裁剪弹出层插件

一款响应式多类型弹出层插件,可自定义弹出层内容,包含文本文字、指定图片、本地图片,带图片裁剪功能。
  弹出层
 7344  0

javascript实现的响应式查看产品详情弹出层插件

一款点击图片弹窗显示详情信息特效,点击图片打开弹出带有图文的产品详情信息,使用JavaScript来处理触发弹出窗口的事件并关闭弹出窗口。
  弹出层
 4317  0

原生js半透明点击弹出提示层特效

可自动弹出或鼠标点击弹出,可自定义设置提示层关闭时间,非常实用!
  弹出层
 5277  0

原生js弹窗插件poplayer.js

一款轻量级弹出层插件,原生js基于poplayer.js实现的弹窗功能,集成了4种弹窗模式,支持自定义样式。
  弹出层
 591  0

评论数(0) 回复有机会获得K币 用户协议

^_^ 还没有人评论,快来抢个沙发!
😀
  • 😀
  • 😊
  • 😂
  • 😍
  • 😑
  • 😷
  • 😵
  • 😛
  • 😣
  • 😱
  • 😋
  • 😎
  • 😵
  • 😕
  • 😶
  • 😚
  • 😜
  • 😭
发表评论