jGlycy

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-13 21:28:28

软件介绍

About jGlycy

jGlycy is a simple jQuery plugin. This plugin calls other any typical-interfaced-plugins automatically when document ready.

For instance, you can put "jg" attribute into your (x)html like below;

<div jg="cycle">
  <img src="/your/path/to/img01.gif" />
  <img src="/your/path/to/img02.gif" />
  <img src="/your/path/to/img03.gif" />
</div>

jGlycy calls jQuery method like this;

$('div').cycle();

You (or your team's designers) don't have to write JavaScript? any more.

How it works

When document ready, jGlycy picks up elements which have "jg" attributes. Then the plugin confirms if your jQuery object has the method names the value of the attribute. In this example, jGlycy calls "cycle" method, if jQuery object has this method.

Furthermore, you can put object-type options for the method like below;

<div jg="cycle" jg:cycle="fx:'shuffle',easing:'backout',delay:-4000">
  <img src="/your/path/to/img01.gif" />
  <img src="/your/path/to/img02.gif" />
  <img src="/your/path/to/img03.gif" />
</div>

This means

$('div').cycle({fx:'shuffle',easing:'backout',delay:-4000});

Why your team should use jGlycy

  • Script is divided off from presentation layer completely.
  • Don't have to put ID attribute to specify the element any more.
  • When calling outer script files fail, at least browser don't show error message.
  • You can use many jQuery plugins on jGlycy without modification.

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

任性

任性

电子工业出版社 / 2015-10-1 / 49.00

《任性:互联网语言表达的调性和技巧》是一本深度介绍互联网调性的书,也是从社会化媒体运作的角度较为系统地讲解互联网语言表达的书,它以独特的视角,从技术、需求和表现形式三种驱动力展开,从理论、策略、方法、技巧、实践等角度详细解析了互联网表达的变化和社会媒体的运营。《任性:互联网语言表达的调性和技巧》适合互联网从业人员阅读。一起来看看 《任性》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换