点击后慢慢弹出下拉菜单效果代码(栏目管理常用)
2010-07-14 00:00
477 查看
点击后慢慢弹出下拉菜单,sky整理收集。
function $(d){
return document.getElementById(d);
}
// set or get the current display style of the div
function dsp(d,v){
if(v==undefined){
return d.style.display;
}else{
d.style.display=v;
}
}
// set or get the height of a div.
function sh(d,v){
// if you are getting the height then display must be block to return the absolute height
if(v==undefined){
if(dsp(d)!='none'&& dsp(d)!=''){
return d.offsetHeight;
}
viz = d.style.visibility;
d.style.visibility = 'hidden';
o = dsp(d);
dsp(d,'block');
r = parseInt(d.offsetHeight);
dsp(d,o);
d.style.visibility = viz;
return r;
}else{
d.style.height=v;
}
}
/*
* Variable 'S' defines the speed of the accordian
* Variable 'T' defines the refresh rate of the accordian
*/
s=7;
t=10;
//Collapse Timer is triggered as a setInterval to reduce the height of the div exponentially.
function ct(d){
d = $(d);
if(sh(d)>0){
v = Math.round(sh(d)/d.s);
v = (v
网站首页
脚本之家
网页特效
学院概况
广告代码
网页特效
教学设施
刘晓阳校长介绍
优良师资
资质认证与荣誉
专业设置
形象设计 (大学专科)
化妆造型
美容
美发
美甲
国际文凭课程
cidesco圣迪斯哥
city & gulids国际美容师
cibtac国际美容师
srh国际发型师
itec国际专业时装、舞台、媒体化妆师
师生经典作品
形象设计
化妆造型
美容
美发
美甲
在线视频
学院介绍视频
活动视频
考试现场视频
蒙妮坦精英学员
留言本
形象设计大学专科毕业生
cidesco美容博士人才
作育英才时代见证(1981-2000年)
招生信息
2008年招生简章
报名方式
报名须知
在线报名
咨询留言
留言本
常见问题
在线留言
联系我们
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
function $(d){
return document.getElementById(d);
}
// set or get the current display style of the div
function dsp(d,v){
if(v==undefined){
return d.style.display;
}else{
d.style.display=v;
}
}
// set or get the height of a div.
function sh(d,v){
// if you are getting the height then display must be block to return the absolute height
if(v==undefined){
if(dsp(d)!='none'&& dsp(d)!=''){
return d.offsetHeight;
}
viz = d.style.visibility;
d.style.visibility = 'hidden';
o = dsp(d);
dsp(d,'block');
r = parseInt(d.offsetHeight);
dsp(d,o);
d.style.visibility = viz;
return r;
}else{
d.style.height=v;
}
}
/*
* Variable 'S' defines the speed of the accordian
* Variable 'T' defines the refresh rate of the accordian
*/
s=7;
t=10;
//Collapse Timer is triggered as a setInterval to reduce the height of the div exponentially.
function ct(d){
d = $(d);
if(sh(d)>0){
v = Math.round(sh(d)/d.s);
v = (v
网站首页
脚本之家
网页特效
学院概况
广告代码
网页特效
教学设施
刘晓阳校长介绍
优良师资
资质认证与荣誉
专业设置
形象设计 (大学专科)
化妆造型
美容
美发
美甲
国际文凭课程
cidesco圣迪斯哥
city & gulids国际美容师
cibtac国际美容师
srh国际发型师
itec国际专业时装、舞台、媒体化妆师
师生经典作品
形象设计
化妆造型
美容
美发
美甲
在线视频
学院介绍视频
活动视频
考试现场视频
蒙妮坦精英学员
留言本
形象设计大学专科毕业生
cidesco美容博士人才
作育英才时代见证(1981-2000年)
招生信息
2008年招生简章
报名方式
报名须知
在线报名
咨询留言
留言本
常见问题
在线留言
联系我们
[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]
相关文章推荐
- 点击后慢慢弹出下拉菜单效果代码(栏目管理常用)
- 点击图片弹出页面效果常用代码
- js实现点击向下展开的下拉菜单效果代码
- jQuery实现点击弹出背景变暗遮罩效果实例代码
- jQuery实现点击弹出背景变暗遮罩效果实例代码
- Android的一段常用动画效果代码(如何让点击的图片控件加速飞入到指定位置)
- 点击弹出弹性下拉菜单效果
- 两个常用的DIV弹出层效果代码
- Android的一段常用动画效果代码(如何让点击的图片控件加速飞入到指定位置)
- 企业站常用的点击后弹出下拉菜单导航
- JS实现响应鼠标点击动画渐变弹出层效果代码
- js实现点击向下展开的下拉菜单效果代码
- 点击按钮Alert弹出遮罩层效果的提示框代码
- Js点击弹出下拉菜单效果实例
- 两个常用的DIV弹出层效果代码
- 点击弹出层效果&弹出窗口后网页背景变暗效果的实现代码
- JS实现响应鼠标点击动画渐变弹出层效果代码