弹出框插件 JSPOP

码农软件 · 软件分类 · jQuery对话框 · 2019-12-14 23:13:44

软件介绍

基于jquery的仿微博头像弹出框插件JSPOP

代码一共6k,基于jquery的头像弹出框实现,实现弹出信息的定位、信息配置、样式定义。


1.下载地址:http://code.google.com/p/jspop/downloads/list

2.demo地址:http://wuzhi.me/jspopupdemo.php

3.配置说明:http://wuzhi.me/?p=65

var setting = {
        // 过滤弹窗字段 当该字段为notpopup时不做弹出 如:     filter:'filter',
    // 返回可以作为弹窗关键子的字段     filterfunction:function(url){
          key = url.replace(/\/u\/@/g,"");
          return key;
    },
    // 500毫秒以内仍然在才触发弹出     hideDelay:500,
    // 填充数据的url     ajaxurl:'',
    // 弹窗关键字     key:'key',
    // 弹窗ID前缀,确保唯一     idpre:'jspopup_',
    // 弹窗class,确保唯一     mainclass:'jspopup',
    //等待提示     loadingmsg:'loadding....',
        //预计高度,用来判断弹出的上下方位     yjwidth:360,
    //预计宽度,用来判断弹出的左右方位     yjheight:60,
    //写在弹出框内的方法,xml为ajaxurl返回的数据     createhtml:function(xml){
        return "

"+xml+"

";
    }
};


4.页面代码

1)样式表及js


2)覆盖默认配置项
//所有的a都支持弹窗,获取数据的url改为/data.php ,等待提示改为:等待中

$('a').each(function(){$(this).jspop({'ajaxurl':'/data.php','loadingmsg':'等待中..'});});

欢迎提供意见和建议。邮箱:1286514442@qq.com

本文地址:https://www.codercto.com/soft/d/21169.html

Data Structures and Algorithms

Data Structures and Algorithms

Alfred V. Aho、Jeffrey D. Ullman、John E. Hopcroft / Addison Wesley / 1983-1-11 / USD 74.20

The authors' treatment of data structures in Data Structures and Algorithms is unified by an informal notion of "abstract data types," allowing readers to compare different implementations of the same......一起来看看 《Data Structures and Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

MD5 加密
MD5 加密

MD5 加密工具