Contents
Description
jQuery is a great JavaScript library. See more at: http://jquery.com
I wonder if it is possible to create a versatile jQuery macro.
To generate a jquery.js inclusion html stub:
<<jQuery>>
- which will generate:
<script type="text/javascript" src="/m/common/js/jquery.js"></script>
To overcome various IE deformity:
<<jQuery(mark)>>
- which will generate:
<script type="text/javascript" src="/m/common/js/jquery.js"></script> <script type="text/javascript" src="/m/common/js/jquery_mark.js"></script>
Example
Download & Release Notes
- v0.2
Download
Release Version
Moin Version
Release Notes
0.2
1.8.5
add new WordPress integration
- v0.1
Download
Release Version
Moin Version
Release Notes
0.1
1.8, 1.7
2.01_p1
original: http://plugins.jquery.com/project/animatedcollapsiblediv
0.1
original: the code from the author's blog, but I can not find the right place. fill in here if you know.
0.1
Usage
jQuery Toggle
To take advantage of animatedcollapsiblediv, add some toggle effect:
- jquery_toggle init:
<<jQuery(toggle)>>
- setup properties for toggle region:
<<jQuery(toggle,set,.region1,hidden=1,group=demo,fade=1)>> <<jQuery(toggle,set,.region2,hidden=1,group=demo,fade=1)>> ... <<jQuery(toggle,set,.region5,hidden=1,fade=1)>>
- add buttons:
<<jQuery(toggle,show,.region1,.region2,.region3,.region4,.region5,type=button,text=ShowAll)>> <<jQuery(toggle,hide,.region1,.region2,.region3,.region4,.region5,type=button,text=HideAll)>>
- define regions:
{{{#!wiki region1 hidden blah blah blah for region1... }}}
Copyright
License
GPL.
Bugs
Discussion
- Great work! How to use this patch? Why don't you release v 0.2 as normal files?