问吧首页
|
电脑网络
|
生活时尚
|
经济发展
|
社会万象
|
娱乐媒体
|
人物历史
|
文化艺术
|
科技教育
|
运动休闲
|
健康医药
|
问吧收藏
菜单代码生成器
菜单项目个数
菜单题头高度
菜单体高度
填写移动速度
一 般 题 头 颜 色
亮 边 颜 色
暗 边 颜 色
当 前 题 头 颜 色
亮 边 颜 色
暗 边 颜 色
菜 单 主 体 颜 色
亮 边 颜 色
暗 边 颜 色
菜单 总题目
有
无
题目名称
菜单项目1
菜 单 项 目 内 容 网 页
菜单项目2
菜 单 项 目 内 容 网 页
<head> <title>QQ菜单</title> <meta http-equiv='Content-Type' content='text/html; charset=gb2312'> <script language='JavaScript'>
var moving = false; function showme(obj1, obj2) { if (moving) return; moving = true; for(i=0;i<document.all.tags('td').length;i++) if (document.all.tags('td')[i].className.indexOf('headtd') == 0) document.all.tags('td')[i].className = 'headtd1'; obj2.className = 'headtd2'; moveme(obj1); } function moveme(obj) { idnumber = parseInt(obj.id.substr(4)); objtop = headHeight * (idnumber - 1); objbuttom = bodyHeight + headHeight * (idnumber - 2); currenttop = parseInt(obj.style.top); if (currenttop >= objbuttom) { countid = 1; for(i=0;i<document.all.tags('div').length;i++) if (document.all.tags('div')[i].id == 'item'+countid+'body') { obj = document.all.tags('div')[i]; objtop = headHeight * (countid - 1); if (countid == idnumber) { moveup(obj,objtop,false); break; } else moveup(obj,objtop,true); countid++; } } else if ((currenttop <= objtop) && (idnumber < objcount)) { idnumber++; countid = objcount; for(i=document.all.tags('div').length-1;i>=0;i--) if (document.all.tags('div')[i].id == 'item'+countid+'body') { obj = document.all.tags('div')[i]; objbuttom = bodyHeight + headHeight * (countid - 2); if (countid == idnumber) { movedown(obj,objbuttom,false); break; } else movedown(obj,objbuttom,true); countid--; } } } function moveup(obj,objtop,ismove) { currenttop = parseInt(obj.style.top); if (currenttop > objtop) { obj.style.top = currenttop - step; setTimeout('moveup('+obj.id+','+objtop+','+ismove+')',1) return; } moving = ismove; } function movedown(obj,objbuttom,ismove) { currenttop = parseInt(obj.style.top); if (currenttop < objbuttom) { obj.style.top = currenttop + step; setTimeout('movedown('+obj.id+','+objbuttom+','+ismove+')',1) return; } moving = ismove; } </script> <style type='text/css'>
</style> </head>
交流讨论
关于本站
网站地图
断链报告
返回页首
Copyright ©
问吧网知识资料查询 www.wen8.net