jQuery 广告插件 smartAD

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-05 23:27:41

软件介绍

smartAD 是基于JQUERY的广告插件.

 

1.支持13种固定方位的广告显示及其其他更灵活的位置

2.广告可浮动,可固定

3.支持将页面dom转换为广告窗体

4.可以自定义广告窗体简单样式:top,left,width,height,background,border

5.可以控制广告窗体的头部,关闭等

6.支持广告窗体加载前后回调

7.广告窗体支持延迟消失,并支持fadeOut,hide,slideUp三种消失效果

8.支持三种调用方式:$smartAD(option),$.smartAD(option),$(jquery).smartAD(option)


具体用法简单介绍:

===============


 //调用参数       
var option={ position:"",//广告悬挂位置.默认右下角(br)。可选值[tl|tm|tr|mm|ml|mr|mlt|mlb|mrt|mrb|bl|bm|br]
       .字母意义:t(top上),b(bottom下),l(left左),r(right右),m(middle中)

       style:{

            height:0,//高

            width:0,//宽

            background:"",//背景,窗体头部背景色

            border:"",//边框

            top:0,//顶部位置

            left:0//左边位置

            },//广告窗体样式

       close:true,//是否可关闭

       header:true,//是否显示广告窗体头部

       fixed:true,//是否固定位置浮动窗口显示

       content:"",//广告内容,一般是图片,或html代码

       link:"#",//广告链接

       delay:0,//广告窗体延迟消失时间

       delayFunc:"hide",//广告窗体消失效果函数,为jQuery自带函数,默认淡出(fadeOut)。
       可选值:[fadeOut,hide,slideUp]

       before:null,//广告加载前回调函数function(option,win,winHeader,winBody){}.
       option:配置参数,win:广告窗体jQuery对象,winHeader:广告窗体头部jQuery对象        ,winBody:广告窗体body的jQuery对象

       after:null//广告加载后回调函数function(option,win,winHeader,winBody){}.
       option:配置参数,win:广告窗体jQuery对象,winHeader:广告窗体头部jQuery对象        ,winBody:广告窗体body的jQuery对象

   };


   //支持3种调用方式:
 //方式1:
 $smartAD(option);
   //方式2:
   $("div#ad1").smartAD(option);
   //方式3:
   $.smartAD(option);

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

New Dark Age

New Dark Age

James Bridle / Verso Books / 2018-7-17 / GBP 16.99

As the world around us increases in technological complexity, our understanding of it diminishes. Underlying this trend is a single idea: the belief that our existence is understandable through comput......一起来看看 《New Dark Age》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

MD5 加密
MD5 加密

MD5 加密工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具