菜单特效
展开菜单特效
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.51wendang.com/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.5
1wendang.com/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>下拉效果</title>
<script type=text/javascript>
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<1) ? 1 :v ;
v = (sh(d)-v);
sh(d,v+'px');
d.style.opacity = (v/d.maxh);
d.style.filter= 'alpha(opacity='+(v*100/d.maxh)+');';
}else{
sh(d,0);
dsp(d,'none');
clearInterval(d.t);
}
}
//Expand Timer is triggered as a setInterval to increase the height of the div exponentially.
function et(d){
d = $(d);
if(sh(d)<d.maxh){
v = Math.round((d.maxh-sh(d))/d.s);
v = (v<1) ? 1 :v ;
v = (sh(d)+v);
sh(d,v+'px');
d.style.opacity = (v/d.maxh);
d.style.filter= 'alpha(opacity='+(v*100/d.maxh)+');';
}else{
sh(d,d.maxh);
clearInterval(d.t);
}
}
// Collapse Initializer
function cl(d){
if(dsp(d)=='block'){
clearInterval(d.t);
d.t=setInterval('ct("'+d.id+'")',t);
}
}
//Expand Initializer
function ex(d){
if(dsp(d)=='none'){
dsp(d,'block');
d.style.height='0px';
clearInterval(d.t);
d.t=setInterval('et("'+d.id+'")',t);
}
}
// Removes Classname from the given div.
function cc(n,v){
s=n.className.split(/\s+/);
for(p=0;p<s.length;p++){
if(s[p]==v+n.tc){
s.splice(p,1);
n.className=s.join(' ');
break;
}
}
}
//Accordian Initializer
function Accordian(d,s,tc){
// get all the elements that have id as content
l=$(d).getElementsByTagName('div');
c=[];
for(i=0;i<l.length;i++){
h=l[i].id;
if(h.substr(h.indexOf('-')+1,h.length)=='content'){c.push(h);}
}
sel=null;
//then search through headers
for(i=0;i<l.length;i++){
h=l[i].id;
if(h.substr(h.indexOf('-')+1,h.length)=='header'){
d=$(h.substr(0,h
.indexOf('-'))+'-content');
d.style.display='none';
d.style.overflow='hidden';
d.maxh =sh(d);
d.s=(s==undefined)? 7 : s;
h=$(h);
h.tc=tc;
ae菜单特效翻译
Effect〔特效〕 菜单 〔特效〕 Effect Controls 〔效果控制〕 Last Effect〔 上一个特效〕 Remove All 〔删除全部特效〕 3D Channel 〔三维通道〕 3D Channel ...
经典下拉菜单特效
经典下拉菜单特效_IT/计算机_专业资料。经典下拉菜单特效PowerPoint Templates 下拉式选单特效 下拉式选单特效 Microsoft Corporation ft Office XP ft Office XP ft ...
菜单特效
菜单特效 44页 1下载券 菜单特效 88页 免费 菜单特效 暂无评价 3页 1下载券 菜单特效2 7页 免费 html特效菜单 3页 1下载券...
html特效菜单
html特效菜单_计算机软件及应用_IT/计算机_专业资料。html特效菜单特效菜单: .ww1 {width:500px;background-color:#D1E7FC;border-top:1px solid #9EC9EC;border...
菜单特效A
菜单特效A_互联网_IT/计算机_专业资料 暂无评价0人阅读0次下载举报文档 菜单特效A_互联网_IT/计算机_专业资料。<%@ Page Language="C#" AutoEventWireup="...
菜单特效
菜单特效 隐藏>> <!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ...
AE特效菜单中英文对照
AE特效菜单中英文对照_广告/传媒_人文社科_专业资料。这是Adobe After Effects特效中英文对照表归纳,对初学者学英文版的AE很有帮助。...
PR 特效菜单
PR 特效菜单_计算机软件及应用_IT/计算机_专业资料。Video Effects(18 类类类类) Adjust 调校? Auto Color ? 自动彩色? Auto Contrast ? 自动对比度 Auto ...
菜单特效2
菜单特效A 暂无评价 4页 免费 html特效菜单 3页 1下载券 AE特效菜单中英文对照 3页 1下载券 弹出式菜单特效ppt模板 7页 免费 AfterEffectCS4中英文对... ...
- 印章使用审批表
- The Language of Rose 各种不同颜色玫瑰花的花语
- 工程中间验收交接记录
- 2013西安交大招生目录l
- 五年级小学生期末评语大全
- DB11-2017大气污染物排放标准
- 关于开展抵御境外宗教渗透清查整治活动总结
- 企业登记管理条例英文版
- 五年级英语培优补差计划
- 备2002-2
- 学习党的十八届三中全会精神心得体会
- 电子元器件的应用可靠性(2)
- 全国现代农业发展规划(2011—2015年)
- 细胞与细胞工程习题--2010--07--26
- 市场调研方法与技巧