弹出框插件 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://codercto.com/soft/d/21169.html

MongoDB

MongoDB

Kristina Chodorow、Michael Dirolf / O'Reilly Media / 2010-9-24 / USD 39.99

Discover how MongoDB can help you manage a huMONGOus amount of data collected through your web application. This book covers the basic principles and advanced uses of this document-oriented database, ......一起来看看 《MongoDB》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具