首页 > 代码库 > 寝室圈聊天之好友列表展示

寝室圈聊天之好友列表展示

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>好友列表</title>
<style type="text/css">
.sv3 dl, .sv3 dt, .sv3 dd{ padding:0; margin:0; }
.sv3 {
width:300px;
float:right;
border:1px solid #BFC7D9;
}
.sv3 dl {
width:300px;
height:380px;
background:#EDF5FF;
overflow:auto;
}
/* By liehuo.net */
.sv3 dt {
padding:5px 10px;
height:13px;
font-size:13px;
color:#222831;
background:#E5ECF9;
border-top:1px solid #fff;
border-bottom:1px solid #BFC7D9;
z-index: 10;
}
.sv3 dl.on dt {
background:#0092CA;
color:black;
font-weight:bold;
}
.sv3 dd {
font-family:"Microsoft YaHei",微软雅黑;
margin-left:3px;
padding-left:10px;
height:54px;
width:257px;
padding:10px;
color:#333;
font-size:12px;
line-height:1.5em;
overflow-x:hidden;
border-top:1px solid #ccc;
box-shadow: 0 1px 4px rgba(0,0,0,.15);

}
.sv3 dd a:link,
.sv3 dd a:visited,
.sv3 dd a:hover,
.sv3 dd a:active { color:#333; display:block; text-align:right;}
.dd-img{width:50px;height:50px;float:left;}
.dd-p{float:right;width:200px;color:red;margin:0px;font-size:20px;}
.dd-pp{float:right;width:200px;color:#666666;margin:0px;font-size:12px;margin-top:10px;}
</style>
</head>
<body>

<div id="idSlideView3" class="sv3">
<dl>
<dt style=" position: relative;">我的好友 </dt>
<a href="index.jsp">
<dd> <img class="dd-img" src="images/lts.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
</a>
<dd> <img class="dd-img" src="images/lst.jpg">
<p class="dd-p">橙汁</p>
<p class="dd-pp">[回忆---那流年。。。。]<p>
</dd>
<dd> <img class="dd-img" src="images/yxx.jpg">
<p class="dd-p">N103</p>
<p class="dd-pp">[做个温暖的人]<p>
</dd>
<dd> <img class="dd-img" src="images/the.jpg">
<p class="dd-p">M203</p>
<p class="dd-pp">[我就是文学少年呀]<p>
</dd>
<dd> <img class="dd-img" src="images/5.jpg">
<p class="dd-p">S215</p>
<p class="dd-pp">[我是脸盲]<p>
</dd>
<dd> <img class="dd-img" src="images/6.jpg">
<p class="dd-p">雷军</p>
<p class="dd-pp">[Are you OK?]<p>
</dd>
</dl>
<dl>
<dt style=" position: relative;">朋友 </dt>
<dd> <img class="dd-img" src="images/7.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
<dd> <img class="dd-img" src="images/8.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
<dd> <img class="dd-img" src="images/1.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
<dd> <img class="dd-img" src="images/2.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
<dd> <img class="dd-img" src="images/3.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
</dl>
<dl>
<dt style=" position: relative;"> 同学 </dt>
<dd> <img class="dd-img" src="images/3.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
<dd> <img class="dd-img" src="images/4.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
</dl>
<dl>
<dt style=" position: relative;">陌生人</dt>
<dd> <img class="dd-img" src="images/5.jpg">
<p class="dd-p">道长</p>
<p class="dd-pp">[樱花满地集于我心  蝶舞纷飞祈]<p>
</dd>
</dl>

</div>
<script>
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.onclick=function (){ t=setTimeout(e.open,100); }
e.click=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");
</script>
</body>
</html>

页面效果:

技术分享

这只是静态页面,数据库之类的就不贴了,

技术交流联系:Q1807533059

寝室圈聊天之好友列表展示