.sv3 dl, .sv3 dt, .sv3 dd{ padding:0; margin:0; }
.sv3 {
width:240px;
border:1px solid #bfc7d9;
}
.sv3 dl {
width:240px;
height:380px;
background:#edf5ff;
overflow:hidden;
}
.sv3 dt {
padding:5px 10px;
height:13px;
font-size:13px;
color:#000;
background:#e5ecf9;
border-top:1px solid #fff;
border-bottom:1px solid #bfc7d9;
}
.sv3 dl.on dt {
background:#3366cc;
color:#fff;
font-weight:bold;
}
.sv3 dd {
padding:10px;
color:#333;
font-size:12px;
line-height:1.5em;
}
.sv3 dd a:link,
.sv3 dd a:visited,
.sv3 dd a:hover,
.sv3 dd a:active { color:#333; display:block; text-align:right;}
- 我的好友
- 张三
- 王五
- 业务联系
- 李经理
- 家人
- 爸爸
- 妈妈
- 同事
- 小赵
- 讨厌的人
- 梅朝风
function slideview(e,a){
for(var i=0,o=document.getelementbyid(e).getelementsbytagname('dl'),d;d=o[i++];)(function(e,c,m,s,t,k,h){
(s=e.style).height=(h=23)+"px";
e.onmouseover=function (){ t=settimeout(e.open,200); }
e.onmouseout=function (){ cleartimeout(t);}
e.open=function(){
if (a==e)return;
c(k); a&&a.close();
(a=e).classname="on";
k=m(function(){ if(h>379)c(k); else s.height=(h=math.min(h+30, 380))+"px"; }, 10);
}
e.close = function(){
c(k); e.classname="";
k=m(function(){ if(h<24)c(k); else s.height = (h=math.max(h-30, 23))+"px"; }, 10);
}
})(d,clearinterval,setinterval);
o[0].open();
}
new slideview( "idslideview3");
[ctrl+a 全选 注:如需引入外部js需刷新才能执行]