jQuery调用WebMethod(PageMethod) NET2.0的方法
404
2024-03-07
本文实例讲述了jQuery内容折叠效果插件用法。分享给大家供大家参考,具体如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>jQuery Collapsible Fieldset</title> <script src="http://www.gimoo.net/t/1903/js/jquery.min.js"></script> <script language="javascript" type="text/javascript" src="http://www.gimoo.net/t/1903/js/jquery.coolfieldset.js"></script> <link rel="stylesheet" type="text/css" href="http://www.gimoo.net/t/1903/css/jquery.coolfieldset.css" /> </head> <body> <h1>jQuery Collapsible Fieldset</h1> <br/> <fieldset id="fieldset1" class="coolfieldset"> <legend>Default</legend> <div> <p>By default the <b>fieldset</b> is opened or expanded at start. Click on its <b>legend</b> to close or collapse it.</p> <p>The code is simply like below</p> <pre> $('#fieldset1').coolfieldset(); </pre> </div> </fieldset> <br/> <fieldset id="fieldset2" class="coolfieldset"> <legend>Closed at start</legend> <div> <p>If we want the fieldset to be closed or collapsed at start, just add <b>{collapsed:true}</b> as the argument.</p> <pre> $('#fieldset2').coolfieldset({collapsed:true}); </pre> </div> </fieldset> <br/> <fieldset id="fieldset4" class="coolfieldset"> <legend>Animation Speed</legend> <div> <p>You can also define the animation speed for the fieldset while collapsing or expanding by using <b>speed</b> option. Acceptable values are "<b>fast</b>", "<b>medium</b>", "<b>slow</b>", or a number in millisecond.</p> <pre> $('#fieldset3').coolfieldset({speed:"fast"}); </pre> </div> </fieldset> <br/> <fieldset id="fieldset5" class="coolfieldset"> <legend>No Animation</legend> <div> <p>If you don't want to use animation effect, please use <b>animation</b> option and fill its value with <b>false</b>.</p> <pre> $('#fieldset4').coolfieldset({animation:false}); </pre> </div> </fieldset> <br/><br/> <fieldset id="fieldset3" class="coolfieldset"> <legend>Notes :</legend> <div> <ul> <li>All content inside fieldset (except the <b>legend</b> tag) should be placed inside the <b>div</b> tag.</li> <li>Edit the <b>jquery.coolfieldset.css</b> to change the fieldset style.</li> </ul> </div> </fieldset> <script> $('#fieldset1, #fieldset3').coolfieldset(); $('#fieldset2').coolfieldset({collapsed:true}); $('#fieldset4').coolfieldset({speed:"fast"}); $('#fieldset5').coolfieldset({animation:false}); </script> </body> </html>
完整实例代码点击此处本站下载。
更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery切换特效与技巧总结》、《jQuery拖拽特效与技巧总结》、《jQuery扩展技巧总结》、《jQuery常见经典特效汇总》、《jQuery动画与特效用法总结》、《jquery选择器用法总结》及《jQuery常用插件及用法总结》
希望本文所述对大家jQuery程序设计有所帮助。
#免责声明#
本站[绿夏技术导航]提供的一切软件、教程和内容信息仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络收集整理,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容。如果您喜欢该程序或内容,请支持正版,购买注册,得到更好的正版服务。我们非常重视版权问题,如有侵权请邮件[admin@lxwl520.com]与我们联系进行删除处理。敬请谅解!