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

视觉链

视觉链

吴佳敏 / 机械工业出版社 / 59.00

这是一部能帮助视觉设计师开悟的著作,由携程网UED视觉高级经理撰写,是她9年互联网视觉设计经验的总结和奉献。 全书从设计师的专业能力、设计方向、设计技巧、设计理念、设计规范5个维度展开,其中前4项可以构成一个完整的视觉设计工作链,在这个链条上每一环都是后面一环的支撑,缺一不可。但是在这个链条之上必须配以设计规范,才能让这个链条更加稳固。因此本章主要分为5章: 第1章:首先介绍了互联网产......一起来看看 《视觉链》 这本书的介绍吧!

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

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具