首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > jspotlight

jspotlight

  • 资源大小:2.91 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

(function($){ $.fn.jSpotlight = function(options) { var defaults = { active: "active", inactive: "inactive", attr: "title", title_class: "title", title_effect: "fade", title_speed: 300, title: true }; var options = $.extend(defaults, options); return this.each(function() { // object is the selected pagination element list var obj = $(this); // if titling is enabled add the title element to each of the children if (options.title) { obj.children().each(function(){ var title_value = $(this).find("img").attr(options.attr); var title_dom_element = ""+title_value+""; $(this).append(title_dom_element); });
VIP VIP
0.183518s