文章摘要:div+css 显示 隐藏 滑动效果
〈!doctype html public "-//w3c//dtd html 4.0 transitional//en"〉
〈html〉
〈meta http-equiv=content-type content="text/html; charset=gb2312"〉
〈script type=text/javascript〉
function getobject(objectid) {
if(document.getelementbyid && document.getelementbyid(objectid)) {
return document.getelementbyid(objectid);
} else if (document.all && document.all(objectid)) {
return document.all(objectid);
} else if (document.layers && document.layers[objectid]) {
return document.layers[objectid];
} else {
return false;
}
}
function displaylist(n,dheight){
var h = getobject(‘content‘+ n).offsetheight;
var max_h = dheight;
var anim = function(){
h += 15;
if(h 〉= max_h){
getobject(‘content‘+ n).style.height = dheight;
getobject(‘img‘+ n).src="4/-.gif";
if(tt){window.clearinterval(tt);}
}
else{
getobject(‘content‘+ n).style.display="block";
getobject(‘content‘+ n).style.height = h + "px";
}
}
var tt = window.setinterval(anim,2);
}
function hiddenlist(n,dheight){
var h = getobject(‘content‘+ n).offsetheight;
var anim = function(){
h -= 15;
if(h 〈= 5){
getobject(‘content‘+ n).style.display="none";
getobject(‘img‘+ n).src="4/+.gif";
if(tt){window.clearinterval(tt);}
}
else{
getobject(‘content‘+ n).style.height = h + "px";
}
}
var tt = window.setinterval(anim,2);
}
function showclasslist(n,dheight){
var dheight=dheight
if(getobject(‘content‘+ n).style.display == "none"){
getobject(‘tdtitle‘ + n).title = "点击收缩"
getobject(‘showtxt‘ + n).innertext = "(点击收缩)"
displaylist(n,dheight); // 显示内容框
}
else{
getobject(‘tdtitle‘ + n).title = "点击展开"
getobject(‘showtxt‘ + n).innertext = "(点击展开)"
hiddenlist(n,dheight);
}
}
〈/script〉
〈style type=text/css〉
body,td,th {
font-size: 12px;
}
.a1 {display: block; overflow: hidden; width: 600px; height:120px; border:1px solid #bad2ee; border-top:0; background:#ecf6ff;}
.a2 {float: left; width: 600px;}
.a3 {width:600px; cursor:pointer; text-align:left; height:30px; border:1px solid #bad2ee;}
.a4{margin:0px; padding:0px;}
.a4 li{list-style-image:url(4/j.gif); margin:0px 0px 0px 24px; padding:0px; line-height:24px;}
.a5 {margin:8px 5px 0 10px;}
〈/style〉
〈/head〉
〈body〉
〈div class="a3" id=tdtitle1 title=点击收缩 onclick=showclasslist(1,120)〉
〈img class="a5" id=img1 src="4/-.gif"〉〈strong〉其它服务〈/strong〉
〈/div〉
〈div class="a1" id=content1〉
〈div class="a2"〉
〈ul class="a4"〉
〈li〉机房:电信、网通双骨干网接入,互联互通。〈/li〉
〈li〉带宽:100m共享。〈/li〉
〈li〉服务:免费重启,免费系统重装,网络运行监控。〈/li〉
〈li〉安全:免费千兆"黑洞"反攻击设备、免费千兆防火墙系统。〈/li〉
〈li〉备注:不送产权。〈/li〉
〈/ul〉
〈/div〉
〈/div〉
〈/body〉〈/html〉
关于的
- 资讯
- ·Koan MP4 极速转换器 V1.1 下载 2009-10-17
- ·【游戏优化】GameJackal Pro 3.1.2.0 - Final 2009-10-17
- ·[下载工具]FlashFXP v3.8 Beta “烈火”简体中文版 2009-10-17
- ·[转码工具]MediaCoder 0.6.2 Build 4225 2009-10-17
- ·[媒体工具]AnyDVD & AnyDVD HD 6.4.9.1 Beta发布 2009-10-17
- ·[上传下载]木翼下载系统(mydown system) v3.3 build 080605 2009-10-17
- ·[优化设置]bitsum process lasso v3.02免费下载 2009-10-17
- ·[系统检测]belarc advisor v7.2.24.6免费下载 2009-10-17
- ·[系统检测]hwinfo32 v2.20电脑硬件检测软件免费下载 2009-10-17
- ·[内存优化]windows内存整理 v3.20.302 免费下载 2009-10-17
- [桌面工具]桌面图标排列助手 v1.2
- [桌面工具]百度小天使 v2.50免费下载.
- [桌面工具]百度小天使 v2.50免费下载
- [编程开发]“/”应用程序中的服务器错误
- [编程开发]asp.net生成静态html页面并分别按年月目录存放.
- [编程开发]asp.net生成静态html页面并分别按年月目录存放
- [编程开发]asp.net应用技巧:js完成listbox内容的交互实例
- [编程开发]让你的.net应用成为一个灰色盒子
- [编程开发]sql server 2005 sp3正式版
- [编程开发]sunwen教程之----c#进阶(七)
- [编程开发]asp.net上传大文件控件
- [编程开发]menalto gallery v2.2.6 多国语言版免费下载
- [编程开发]在右上角加new浮动图标志
- [编程开发]关于数据库技术发展的四个方向
- [编程开发]常用 css 缩写语法总结
- [编程开发]div+css 显示 隐藏 滑动效果
- [系统设置]易窗oem信息设置 1.0绿色版免费下载
- [cpu相关]cpu speed pro 3.0.3.4绿色版免费下载
- [数据恢复]freeundelete 2.0.32209绿色版免费下载
- [系统其它]易窗可视化ini v1.0免费下载
- 1Koan MP4 极速转换器 V1.1 下载
- 2【游戏优化】GameJackal Pro 3.1.2.0 - Final
- 3[下载工具]FlashFXP v3.8 Beta “烈火”简体中文版
- 4[转码工具]MediaCoder 0.6.2 Build 4225
- 5[媒体工具]AnyDVD & AnyDVD HD 6.4.9.1 Beta发布
- 6[上传下载]木翼下载系统(mydown system) v3.3 build 080605
- 7[优化设置]bitsum process lasso v3.02免费下载
- 8[系统检测]belarc advisor v7.2.24.6免费下载
- 9[系统检测]hwinfo32 v2.20电脑硬件检测软件免费下载
- 10[内存优化]windows内存整理 v3.20.302 免费下载
![[编程开发]asp.net应用技巧:js完成listbox内容的交互实例](http://wwwwang.com/uploadfile/zyxzz/upload/2008_10/081030192775741t.jpg)
![[卸载清除]windows清理助手 v3.0.11.9.1118免费下载](http://wwwwang.com/uploadfile/200912/20091213161844236874.gif)

![[网络电视]晴云网视 综合所有电视于一体](http://wwwwang.com/uploadfile/zyxzz/upload/2008_11/081114135699212t.jpg)









