怎样使层居于最上面

qukmei 2003-05-18 11:00:04
不会
...全文
43 点赞 收藏 7
写回复
7 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
qukmei 2003-05-19
对了,这个菜单多,用这个吧
回复
qukmei 2003-05-19
是不是太长了,这个菜单位,下面有一个框架,有的栏目就看不到了,所以我想让这个菜单显示与框架之上
回复
qukmei 2003-05-19
这个怎么做呀?

var bBrowserOK; bBrowserOK = 0;if(parseFloat(navigator.appVersion)>=4) if(navigator.appName == 'Microsoft Internet Explorer') bBrowserOK = 1;document.write('<STYLE>');document.write('a.MN18120303 {text-decoration:none; color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ');

document.write('a.MN18120303:hover {text-decoration:none; color:#FFFFFF; }');

document.write('a.SMN18120303 {text-decoration:none; color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;} ');

document.write('a.SMN18120303:hover {text-decoration:none; color:#FFFFFF; }');

document.write('table.MT18120303 {background:#000000; border:1 solid #6699CC; }');

document.write('td.MTD18120303 {padding-left:4; padding-right:4; background:#6699CC; border:0 solid #000000; }');

document.write('.MTI18120303 {color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}');

document.write('.MSI18120303 {color:#FFFFFF; font-weight: 700; font-family: Verdana; font-size: 12px; font-style:normal;}');

document.write('</STYLE>');
function OpenMenu(MenuId){ MenuId.style.visibility = 'visible'; }

function CloseMenu(MenuId){ MenuId.style.visibility = 'hidden';}

function HLT18120303(TDId,AId){ TDId.style.background = '#5783AF'; if(AId) AId.style.color = '#FFFFFF';}

function UHLT18120303(TDId,AId){ TDId.style.background = '#6699CC'; if(AId) AId.style.color = '#FFFFFF';}

function THLT18120303(TDId,AId){ TDId.style.background = '#5783AF'; if(AId) AId.style.color = '#FFFFFF';}

function TUHLT18120303(TDId,AId){ TDId.style.background = '#6699CC'; if(AId) AId.style.color = '#FFFFFF';}

function WSBH18120303(MenuId){

document.write('<span id=' + MenuId + ' STYLE="position:absolute; visibility:hidden; zorder:1; ">');

document.write(' <br>');

document.write('<table class="MT18120303" cellspacing=0 cellpadding=2 onMouseOut="CloseMenu(' + MenuId + ');" onMouseOver="OpenMenu(' + MenuId + ');">');}

function WSIH18120303(ItemID,ItemName,ItemURL,MenuID,ItemTitle,ItemTarget){

document.write('<tr><td id="X' + ItemID + '" class="MTD18120303" onMouseOver="HLT18120303(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT18120303(X' + ItemID + ',' + ItemID + ');">');

document.write('<span NOWRAP><a href="' + ItemURL + '" title="' + ItemTitle + '" class="SMN18120303" target="' + ItemTarget + '" id="' + ItemID + '">' + ItemName + '</a></span></td></tr>');}

function WSFH18120303(ItemID,ItemFree){

document.write('<tr><td id="X' + ItemID + '" class="MTD18120303" onMouseOver="HLT18120303(X' + ItemID + ',' + ItemID + ');" onMouseOut="UHLT18120303(X' + ItemID + ',' + ItemID + ');">');

document.write('<span id="' + ItemID + '" class="MSI18120303" >' + ItemFree + '</span></td></tr>');}

function CloseSubBoxH(){document.write('</table></span>');}
function WTIH18120303(MenuID,MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI18120303" onMouseOver="OpenMenu(' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');"><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN18120303"> ' + MenuName + '</a></span>');}

function WTFH18120303(MenuID,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI18120303" onMouseOver="OpenMenu(' + MenuID + ');" onMouseOut="CloseMenu(' + MenuID + ');"> ' + MenuFree + ' </span>');}

function WTHH18120303(MenuName,MenuURL,MenuTitle,MenuTarget){
document.write('<span STYLE="position:relative;" class="MTI18120303" ><a href="' + MenuURL + '" title="' + MenuTitle + '" target="' + MenuTarget + '" class="MN18120303"> ' + MenuName + '</a></span>');}

function WTHFH18120303(MenuName,MenuFree){
document.write('<span STYLE="position:relative;" class="MTI18120303" > ' + MenuFree + '</span>');}

document.write('<TABLE CELLSPACING=0 CELLPADDING=2 WIDTH="100%" BGCOLOR=#6699CC STYLE="border:1 solid #6699CC; "><TR VALIGN=MIDDLE><TD ALIGN=LEFT>');

document.write('<DIV NOWRAP STYLE="visibility:visible; background-color:#6699CC; font-weight: 700; font-family: Verdana; font-size:12px; ">');

WTHH18120303('首页','index.asp','','');
document.write(' <font color=#FFFFFF>|</font>');
WTHH18120303('疫情通告','main.asp?mainhtm=1','','');
document.write(' <font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {

WSBH18120303('MI18117368');
WSIH18120303('MI18101142','全国','main.asp?mainhtm=17','MI18117368','','');
if(MI18101142) MI18101142.style.color = '#FFFFFF';WSIH18120303('MI18097164','全省','main.asp?mainhtm=18','MI18117368','','');
if(MI18097164) MI18097164.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18120303('MI18117368','疫情趋势','main.asp?mainhtm=2','','');
}

else

WTHH18120303('疫情趋势','main.asp?mainhtm=2','','');
document.write(' <font color=#FFFFFF>|</font>');
WTHH18120303('疫情查询','main.asp?mainhtm=16','','');
document.write(' <font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {

WSBH18120303('MI18128916');
WSIH18120303('MI18106370','维护及查询','main.asp?mainhtm=15','MI18128916','','_self');
if(MI18106370) MI18106370.style.color = '#FFFFFF';WSIH18120303('MI18119621','统计','main.asp?mainhtm=8','MI18128916','','');
if(MI18119621) MI18119621.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18120303('MI18128916','人员信息','main.asp?mainhtm=3','','');
}

else

WTHH18120303('人员信息','main.asp?mainhtm=3','','');
document.write(' <font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {

WSBH18120303('MI18105862');
WSIH18120303('MI18099739','维护及查询','main.asp?mainhtm=9','MI18105862','','');
if(MI18099739) MI18099739.style.color = '#FFFFFF';WSIH18120303('MI18115332','统计','main.asp?mainhtm=10','MI18105862','','');
if(MI18115332) MI18115332.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18120303('MI18105862','医院信息','main.asp?mainhtm=4','','');
}

else

WTHH18120303('医院信息','main.asp?mainhtm=4','','');
document.write(' <font color=#FFFFFF>|</font>');
if(bBrowserOK==1) {

WSBH18120303('MI18098109');
WSIH18120303('MI18108005','维护及查询','main.asp?mainhtm=12','MI18098109','','');
if(MI18108005) MI18108005.style.color = '#FFFFFF';WSIH18120303('MI18108009','统计','main.asp?mainhtm=11','MI18098109','','');
if(MI18108009) MI18108009.style.color = '#FFFFFF';CloseSubBoxH();
WTIH18120303('MI18098109','隔离信息','main.asp?mainhtm=5','','');
}

else

WTHH18120303('隔离信息','main.asp?mainhtm=5','','');
document.write(' <font color=#FFFFFF>|</font>');
WTHH18120303('地图','main.asp?mainhtm=13','','');
document.write(' <font color=#FFFFFF>|</font>');
WTHH18120303('防治常识','main.asp?mainhtm=14','','');
document.write(' <font color=#FFFFFF>|</font>');
WTHH18120303('退出','logout.asp','','');
document.write('</DIV></TD>');
document.write('</TR></TABLE>');
回复
milanrain 2003-05-19
z-index属性就是限制层的位置的,数值越大就越往上!
回复
qukmei 2003-05-19
显示于框架之上?
回复
cybernaute 2003-05-18
同意
回复
fason 2003-05-18
<div style="z-index:1000">
对于select框,此方法无效,可以判断坐标进行隐藏select框
回复
相关推荐
发帖
CSS
创建于2007-09-28

6.0w+

社区成员

层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
申请成为版主
帖子事件
创建了帖子
2003-05-18 11:00
社区公告
暂无公告