首页 > 资讯 > 网站设计
仿Office 2003 的工具条
发布时间:2008-04-28   浏览次数:1153200
仿Office 03 的工具条 工作之余做了这个小东西 仿Office 03的工具条,主要尝试不用任何图片(当然不可能把所有按扭都做出来),所有的控件都是用Css和Javascript做的菜单不做了,偷懒中感兴 趣的朋友可以和我联系,大家交流交流.运行代码框 以下为引用的内容:仿Office 03的工具条/*----------舜子制作Menu Javascript Made by PuterJamE-mail:puterjam@etang.com-------------*/ 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=listnamethis.buttonname=buttonnamethis.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
业务咨询

Copyright 2003 - 2023 huinet.cn All Rights Reserved.
慧网公司 版权所有