js渐变显示渐变消失
来源:互联网 发布:龙升级数据 编辑:程序博客网 时间:2024/05/01 19:22
以下是渐变的js代码(表示多余三行的要隐藏,点击"more"显示剩下的,点击“less”要逐渐隐藏):
function showAccomplishmentTableRow(){$("#accomplishmenttable tr:hidden").first().show(2000,function(){showAccomplishmentTableRow(); });if($("#accomplishmenttable tr:hidden").size()==0){$("#accomplishmenttable").next().attr("onclick","hideAccomplishmentTableRow()").text("Less");}}function hideAccomplishmentTableRow(){if($("#accomplishmenttable tr:visible").size()<=3){$("#accomplishmenttable").next().attr("onclick","showAccomplishmentTableRow()").text("More");return;}$("#accomplishmenttable tr:visible").last().hide(2000,function(){hideAccomplishmentTableRow(); }); }
html
<table id="accomplishmenttable" class="bgWhite border3PGreye7e7e7 marginT20 roundedCorner width100P"><tbody><tr class="bgLightGreyf5f5f5 height40"><th class="border_bottom3Pgreye7e7e7 border_right1Pgreye7e7e7 border_top1PWhite fontGreyGeneral textCenter roundedCorner_TL verticalMiddle width30P" colspan="2">MY ACCOMPLISHMENTS</th></tr><tr class="bgWhite height40"><td class="border_bottom1Pgreye7e7e7 border_right1Pgreye7e7e7 fontGreyGeneral p14Font width20P"><div class="margin5">border_bottom1Pgreye7e7e7</div></td><td class="border_bottom1Pgreye7e7e7 border_right1Pgreye7e7e7 fontGreyGeneral p14Font textLeft width80P">border_bottom1Pgreye7e7e7</td></tr><tr class="bgWhite height40"><td class="border_bottom1Pgreye7e7e7 border_right1Pgreye7e7e7 fontGreyGeneral p14Font width20P"><div class="margin5">border_bottom1Pgreye7e7e7</div></td><td class="border_bottom1Pgreye7e7e7 border_right1Pgreye7e7e7 fontGreyGeneral p14Font textLeft width80P">border_bottom1Pgreye7e7e7</td></tr></tbody></table><div class="floatR marginT5 p14Font textLink" onclick="showAccomplishmentTableRow();">More</div>
- js渐变显示渐变消失
- TextView显示文字过长时添加阴影渐变消失效果
- 控件渐变式显示和消失动画,AlphaAnimation
- TextView显示文字过长时添加阴影渐变消失效果
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- 渐变
- Qt 控件渐变隐藏消失
- 图片循环渐变显示
- rep stos
- 网站流量的高低究竟与alexa排名有什么关系呢?
- MFC项目 浅谈
- JS转换解码器
- 垃圾
- js渐变显示渐变消失
- 通过url方式传递中文乱码解决办法
- 实例讲解OSGI开发
- 转换说明
- Busybox内置的tftpd, ftpd, telnetd, udhcpd, udhcpc配置
- json 封装避免死锁的问题解决
- URAL 1017. Staircases 解题报告
- base64和图片的互转(HTML5的File实现)
- Flask方法知识点收集