rmanning
10-22-2002, 07:09 PM
Hi -
I've installed Top Nav Bar I v2 (aka SmartMenu 2).
Works just great, BUT...
I also have some other JavaSCript applets (news scroller & banner) near the top of the page. These are in table cells.
When the menu drops down, the lower items disappear behind the other applets :mad:
When the Nav bar moves down the page due to scrolling it goes behind the other applets as well - not pretty.
I guess this is due to the order the applets are loaded - last applet on top. Is there a way to have the nav bar always remain on top? I've tried to find some info on z-index, but to no avail.
HTML Code fragment below.
Thanks for any solutions!
Ross.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Home</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
<!--
h2 { font-family: Trebuchet MS }
-->
</style>
<script language="JavaScript">
//Top Nav Bar I v2- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=1 //specify whether menu should stay static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=150 //specify sub menus' color
</script>
<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color: white; cursor: hand; z-index:100}
#MainTable A:hover {color: lightblue;}
</style>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
<script language="JavaScript" src="scripts/menu.js"></script>
<script language="JavaScript" src="scripts/menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script>
<div align="left">
<table border="0" width="775" height="141">
<tr>
<td width="771" height="141">
</td>
<td width="740" height="141" colspan="2"><font face="Trebuchet MS" size="7"><font color="#006699"><i>Connect</i></font><i>Home<br>
</i></font>
<font FACE="Trebuchet MS"><b>Residential Networking
& Automation</b></font>
<p>
<applet Code=apMagicMenu.class Archive=scripts/apMagicMenu.jar Width=732 Height=80>
<param name="backColor" value="006699">
<param name="backWords" value="
Home Automation,Energy Management,Home Entertainment,Home Computer Networking,Lighting Control,Audio/Video Distribution,Home Security,Structured Wiring,Whole-House High Speed Internet">
<param name="brightness" value="6">
<param name="Copyright" value="Apycom Software - www.apycom.com">
<param name="fadeDelay" value="20">
<param name="fadeSteps" value="90">
<param name="isHorizontal" value="false">
<param name="fadeType" value="0">
<param name="maxWords" value="12">
<param name="fontHighColor" value="ffffff">
<param name="font" value="Arial,14,1">
<param name="fontColor" value="CCFFFF">
<param name="menuItems" value="{ ,testlink.html,_self}">
</applet>
</p>
</td>
</tr>
<tr>
<td width="168" height="141">
</td>
<td width="137" height="141">
<applet code=NewsTicker.class
name=NewsTicker
width=120
height=151 >
<param name="background" value="news.jpg">
<param name=x value=10>
<param name=y value=25>
<param name=cx value=90>
<param name=cy value=114>
<param name="newsfile" value="news.txt">
<param name=bgcolor value="102,102,153">
<param name=pause value="true">
</applet>
</td>
I've installed Top Nav Bar I v2 (aka SmartMenu 2).
Works just great, BUT...
I also have some other JavaSCript applets (news scroller & banner) near the top of the page. These are in table cells.
When the menu drops down, the lower items disappear behind the other applets :mad:
When the Nav bar moves down the page due to scrolling it goes behind the other applets as well - not pretty.
I guess this is due to the order the applets are loaded - last applet on top. Is there a way to have the nav bar always remain on top? I've tried to find some info on z-index, but to no avail.
HTML Code fragment below.
Thanks for any solutions!
Ross.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Content-Language" content="en-us">
<title>Home</title>
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<style>
<!--
h2 { font-family: Trebuchet MS }
-->
</style>
<script language="JavaScript">
//Top Nav Bar I v2- By Constantin Kuznetsov Jr. (script@esolutiononline.com)
//Modified by Dynamic Drive for NS6/Opera6 compatibility and code streamlining March 4th, 2002
//Visit http://www.dynamicdrive.com for this script
var keepstatic=1 //specify whether menu should stay static (works only in IE4+)
var menucolor="#000000" //specify menu color
var submenuwidth=150 //specify sub menus' color
</script>
<style>
all.clsMenuItemNS, .clsMenuItemIE{text-decoration: none; font: bold 12px Arial; color: white; cursor: hand; z-index:100}
#MainTable A:hover {color: lightblue;}
</style>
</head>
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">
<script language="JavaScript" src="scripts/menu.js"></script>
<script language="JavaScript" src="scripts/menucontext.js"></script>
<script language="JavaScript">
showToolbar();
</script>
<script language="JavaScript">
function UpdateIt(){
if (ie&&keepstatic&&!opr6)
document.all["MainTable"].style.top = document.body.scrollTop;
setTimeout("UpdateIt()", 200);
}
UpdateIt();
</script>
<div align="left">
<table border="0" width="775" height="141">
<tr>
<td width="771" height="141">
</td>
<td width="740" height="141" colspan="2"><font face="Trebuchet MS" size="7"><font color="#006699"><i>Connect</i></font><i>Home<br>
</i></font>
<font FACE="Trebuchet MS"><b>Residential Networking
& Automation</b></font>
<p>
<applet Code=apMagicMenu.class Archive=scripts/apMagicMenu.jar Width=732 Height=80>
<param name="backColor" value="006699">
<param name="backWords" value="
Home Automation,Energy Management,Home Entertainment,Home Computer Networking,Lighting Control,Audio/Video Distribution,Home Security,Structured Wiring,Whole-House High Speed Internet">
<param name="brightness" value="6">
<param name="Copyright" value="Apycom Software - www.apycom.com">
<param name="fadeDelay" value="20">
<param name="fadeSteps" value="90">
<param name="isHorizontal" value="false">
<param name="fadeType" value="0">
<param name="maxWords" value="12">
<param name="fontHighColor" value="ffffff">
<param name="font" value="Arial,14,1">
<param name="fontColor" value="CCFFFF">
<param name="menuItems" value="{ ,testlink.html,_self}">
</applet>
</p>
</td>
</tr>
<tr>
<td width="168" height="141">
</td>
<td width="137" height="141">
<applet code=NewsTicker.class
name=NewsTicker
width=120
height=151 >
<param name="background" value="news.jpg">
<param name=x value=10>
<param name=y value=25>
<param name=cx value=90>
<param name=cy value=114>
<param name="newsfile" value="news.txt">
<param name=bgcolor value="102,102,153">
<param name=pause value="true">
</applet>
</td>