网页仿 Office 2003 的工具条

类别:编程语言 点击:0 评论:0 推荐:

作者:puterjam  时间:2004-4-28  文档类型:原创  来自:蓝色理想

具体效果:

var listnum=0; var menu_height; var menu_width; var menu_left; var menu_top; var topMar = 1; var leftMar = -2; var space = 1; var isvisible; function listbox(listname,buttonname,valuename) { this.listname=listname this.buttonname=buttonname this.valuename=valuename } function listaction(obj,action,showlist,scroll,tw) { num=obj.id.charAt(obj.id.length-1) if (!scroll) {scroll=0} if (!tw) {tw=105} listbox=eval(lb[num].listname) listbutton=eval(lb[num].buttonname) listvalue=eval(lb[num].valuename) switch (action) { case 0: listbox.className="getlist";listbutton.className="listover" break; case 1: if (listbox.gf=="0") {listbox.className="lostlist";listbutton.className="menubar"} break; case 2: for (i=0;i parseInt(vDiv.style.left)+vDiv.offsetWidth) || (mY < parseInt(vDiv.style.top)-menu_height) || (mY > parseInt(vDiv.style.top)+vDiv.offsetHeight)) { vDiv.style.visibility = "hidden"; isvisible = false; } } if (isvisible==false) { for (i=0;i

本文地址:http://com.8s8s.com/it/it26203.htm