最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
基于jquery轻量级对联广告插件
时间:2011-10-22 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
//调用方法 jQuery.fn.couplet = function(settings) { s.append(""); var leftCouplet = s.children("#leftCouplet"); var rightCouplet = s.children("#rightCouplet"); //加载左则广告 if(settings.leftCouplet.substring(settings.leftCouplet.lastIndexOf('.')).toLowerCase() == ".swf"){ leftCouplet.append(""); }else{ leftCouplet.append(""); } //加载右则广告 if(settings.rightCouplet.substring(settings.rightCouplet.lastIndexOf('.')).toLowerCase() == ".swf"){ rightCouplet.append(""); }else{ rightCouplet.append(""); } var closeBtn = " 关闭"; leftCouplet.append(closeBtn); rightCouplet.append(closeBtn); $(".coupletClose").click(function(){ leftCouplet.remove(); rightCouplet.remove(); }); //显示对联 |
-
下一个: 基于jquery 日历插件应用
相关文章
- jquery实现两边固定的对联广告效果 03-17
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31