【应知应会】教育民生致学生家长的一封信(2020)

作者:储辉2020年11月11日 16:54


利升棋牌游戏 Copyright 2012-2017 All Rights Reserved 皖ICP备34082502000031号 网站声明

安徽省喜乐棋牌游戏县新城晋湖路340号(246400) 版权所有: 利升棋牌游戏

皖公网安备 34082502000031号

易职教App

易职教App

官方微信

官方微信

app配置

App配置

返回顶部
var supnav = document.getElementById("supnav"); var nav = document.getElementById("nav"); var btns = document.getElementsByTagName("li"); var subnavs = nav.getElementsByTagName("div"); var paddingbottom = 20; var defaultHeight = 0; function drop(obj, ivalue) { if(obj){ var a = obj.offsetHeight; var speed = (ivalue - obj.offsetHeight) / 8; a += Math.floor(speed); obj.style.height = a + "px"; } } window.onload = function () { for (var i = 0; i < btns.length; i++) { btns[i].index = i; btns[i].onmouseover = function () { var osubnav = subnavs[this.index]; if(!osubnav) return; var sublinks = osubnav.getElementsByTagName("a"); if (osubnav.firstChild.tagName == undefined) { if(!osubnav.childNodes[1]) return; var itarheight = parseInt(osubnav.childNodes[1].offsetHeight) * sublinks.length + paddingbottom; } else { var itarheight = parseInt(osubnav.firstChild.offsetHeight) * sublinks.length + paddingbottom; } clearInterval(this.itimer); this.itimer = setInterval(function () { drop(osubnav, itarheight); }, 30); } btns[i].onmouseout = function () { var osubnav = subnavs[this.index]; clearInterval(this.itimer); this.itimer = setInterval(function () { drop(osubnav, defaultHeight); }, 30); } } }
0