当前位置: 技术问答>java相关
如何实现QQ样子的界面?
来源: 互联网 发布时间:2017-04-18
本文导语: 如题! | OutBarFolder1=new Array("门诊挂号","images/mzghimage/mzgh_1.gif","初诊挂号","mzgh/mzgh-dl.asp","parent.parent.main","images/mzghimage/mzgh_1.gif","复诊挂号","mzgh/mzgh-olddl.asp","parent.parent.main");OutBarFolder2=new...
如题!
|
OutBarFolder1=new Array("门诊挂号","images/mzghimage/mzgh_1.gif","初诊挂号","mzgh/mzgh-dl.asp","parent.parent.main","images/mzghimage/mzgh_1.gif","复诊挂号","mzgh/mzgh-olddl.asp","parent.parent.main");OutBarFolder2=new Array("查 询","images/mzghimage/ghxxcx_2.gif","挂号信息查询","mzgh/mzgh-find.asp","parent.parent.main");OutBarFolder3=new Array("统 计","images/mzghimage/ghqktj_5.gif","挂号情况统计","mzgh/Mzgh-qkcount.asp","parent.parent.main");OutBarFolder4=new Array("标准设置","images/mzghimage/sfbzsz_4.gif","收费标准设置","mzgh/Mzgh-sfbz.asp","parent.parent.main");OutBarFolder5=new Array("数据维护","images/mzghimage/yhgl_8.gif","用户管理","mzgh/usermanager.asp","parent.parent.main","images/mzghimage/mmwh_9.gif","密码维护","mzgh/password-manager.asp","parent.parent.main");OutBarFolder6=new Array("系 统","images/mzghimage/sdsx_10.gif","手动刷新","javascript:self.location.reload()","parent.parent","images/mzghimage/cxdl_11.gif","重新登录","javascript:top.close()","parent.parent","images/mzghimage/tcxt_12.gif","退出系统","javascript:top.close();","parent");
OB_Top=0; //菜单距离顶部的象素值;
OB_Left=0; //菜单距离左侧的象素值;
OB_Margin=10; //top and bottom margins between icons and borders
OB_Width=167; //菜单宽度
newHeight=window.screen.height
OB_Height=newHeight-102; //菜单高度
OB_SlideSpeed=10; //菜单运动速度
OB_BackgroundColor="background"; //背景色
OB_ItemsSpacing=25; //2个图标间的距离
OB_BorderWidth=3; //border宽度
OB_Border; //border风格
OB_BorderColor="#dddddd"; //border颜色
OB_IconsWidth=32; //图标宽度
OB_IconsHeight=32; //图标高度
OB_ButtonFontFamily="arial"; //按钮上字体的字型
OB_ButtonFontSize=9; //按钮上字体大小
OB_ButtonFontColor="black"; //按钮上字体颜色
OB_ButtonHeight=25; //按钮的高度
OB_LabelFontFamily="arial"; //LOGO下字体的字型
OB_LabelFontSize=9; //LOGO下面的字体大小
OB_LabelFontColor="white"; //LOGO下的字体颜色
OB_LabelMargin=3; //margin between labels and icons
OB_DownArrow="./images/arrowup.gif"; //向下滚动的logo箭头
OB_UpArrow="./images/arrowdown.gif"; //向上滚动的logo箭头
OB_ArrowWidth=15; //箭头的宽度
OB_ArrowHeight=15; //箭头的高度
OB_ArrowSlideSpeed=10; //项目列表滚动的速度;
/*以下的代码中你需要改动菜单的数目与实际一致,本例用了4个按钮菜单。*/
function MakeItems(Folder,zorder,top)
{
var items=0;
var folderWidth=(OB_Width-OB_BorderWidth*2);
while(Folder[items+1])
items+=4; //需要改这里及下面的4;
items/=4;
document.write("");
for(var i=1;i