473,856 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Menu not showing up in page

71 New Member
I've found a javascript menu download, I've been tweaking it within a testpage, and getting it to look just right. I finally got everything looking right, all I have to do is alter where the links navigate to. Before I do that I'm trying to get it put into the actual page I want to use it in; right now I've been using a blank html page to test it with.

I've done everything just like it is in the test page, but the menu isn't appearing on the new page. I was wondering if anyone could look at my code and see if they see anything that looks like it may be causing the problem. I had another dropdown menu in here, and it appeared without problem.

here's the page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>

<head>
<title>Clermo nt Christian Church</title>
<link href="styles.cs s" rel="stylesheet " type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="descripti on" content="This is the website homepage" />
<meta name="keywords" content="Christ ian, Indiana, Church, Clermont, Religion, Indianapolis, Sunday, School" />

<style type="text/css" media="all">
@import "style.css" ;
</style>

<script type="text/javascript" src="/java_scripts/basic_datetime. js"></script>
<script type="text/javascript" language="javas cript" src="/java_scripts/sniffer.js">

/*************** *************** *************** **
* Top Navigational Bar III v3.5 (By BrotherCake- brothercake.com )
* Exclusive permission by Dynamicdrive.co m to include script in archive
* For this and 100's more DHTML scripts, visit http://www.dynamicdriv e.com/
* This notice MUST stay intact for legal use
*************** *************** *************** **/

</script>

<script type="text/javascript" language="javas cript1.2" src="/java_scripts/custom.js"></script>
<script type="text/javascript" language="javas cript1.2" src="/java_scripts/style.js"></script>

</head>

<body id="body" onLoad="dt()">
<div id="bannerconte nt">
<img src="images/header.jpg" alt="" />
</div>

<div id="menucontent ">
<script type="text/javascript" language="javas cript1.2" src="/java_scripts/menu.js"></script>
</div>

<div id="bodycontent ">
<table border="0" cellpadding="23 " cellspacing="0" >
<tr>
<td align="center">
<img src="images/church01.jpg" width="644" height="483" alt="Clermont Christian Church" />
</td>
</tr>
<tr>
<td align="left">
<h1>Clermont Christian Church</h1>

<p>Welcome to Clermont Christian Church&acute;s internet home! You may have stopped here on purpose, or you may have gotten here by accident, but either way, we&acute;re glad you&acute;re here!</p>
<br />
<p>We are in the business of connecting people to God and connecting people to one another so that life can be all that God intends! As you look around our site, we hope you&acute;ll find helpful information about CCC and get to know a little bit about who we are. We&acute;d love to see you face to face sometime, so feel free to stop in to one of our services anytime, or introduce yourself as you see us out in the community. We are praying for you!</p>

</td>
</tr>
</table>
</div>

<div id="footer">
<div id="datetime"> </div>
</div>


</body>

</html>
<!-- *************** *************** *************** ************* -->
<!-- * START TRIPOD AD CODE - PLEASE REMOVE WHEN EDITING PAGE * -->
<!-- *************** *************** *************** ************* -->

<!-- revision: new - $Change: 88678 $ -->

<script type="text/javascript" src="http://hb.lycos.com/hb.js"></script>
<script type="text/javascript">
var cm_role = "live";
var cm_host = "tripod.lycos.c om";
var cm_taxid = "/memberembedded" ;

var lycos_ad_catego ry = null;

var lycos_ad_remote _addr = "67.98.138. 34";
var lycos_ad_www_se rver = "www.tripod.lyc os.com";
var lycos_ad_track_ small = "http://members.tripod. com/adm/img/common/ot_smallframe.g if?rand=3459";
var lycos_ad_track_ served = "http://members.tripod. com/adm/img/common/ot_adserved.gif ?rand=3459";
</script>
<script type="text/javascript" src="http://scripts.lycos.c om/catman/init.js"></script>
<script type="text/javascript" src="http://members.tripod. com/adm/ad/code-start.js"></script>
<script type="text/javascript" src="http://members.tripod. com/adm/ad/code-middle.js"></script>
<script type="text/javascript" src="http://members.tripod. com/adm/ad/code-end.js"></script>
<noscript>
<img src="http://members.tripod. com/adm/img/common/ot_noscript.gif ?rand=3459" alt="" width="1" height="1" />
<img src="http://lycos.247realme dia.com/data/?tax0_SiteID=2& amp;nojs=true" alt="" width="1" height="1" />
<a href="http://network.realmed ia.com/RealMedia/ads/click_nx.ads/lycostripod/ros/728x90/wp/ss/a/3459@Top1?x"><i mg border="0" src="http://network.realmed ia.com/RealMedia/ads/adstream_nx.ads/lycostripod/ros/728x90/wp/ss/a/3459@Top1" alt="leaderboar d ad" /></a>
</noscript>

<!-- revision: new - $Change: 88678 $ -->

<!-- *************** *************** *************** *********** -->
<!-- * END TRIPOD AD CODE - PLEASE REMOVE WHEN EDITING PAGE * -->
<!-- *************** *************** *************** *********** -->

And here's the style sheet:

/* css Clermont Christian Church website default styles v1.01 */
/* Author: Rob Stephens */

body {
margin: 10px 10px 0px 10px;
padding: 0px;
}

/* =============== =============== =============== =============== ========= */
/* Specific DIVs */
#body {
background-image: url(/images/image01.png);
}

#bannercontent {
position: absolute;
left: 190px;
top: 10px;
height: 226px;
width: 900px;
voice-family: "\"}\"";
voice-family: inherit;
z-index: 1;
}
html>body #bannercontent {
height: 200px;
}

#menucontent {
position: absolute;
left: 190px;
top: 236px;
width: 900px;
height: 30px;
background-image: url(/images/menu04.png);
z-index: 800;
}

#bodycontent {
position: absolute;
left: 190px;
top: 266px;
height: 1000px;
width: 900px;
voice-family: "\"}\"";
voice-family: inherit;
background-image: url(/images/marb009.jpg);
z-index: 1;
}
html>body #bodycontent {
height: 800px;
}

#footer {
position: absolute;
left: 190px;
top: 1266px;
height: 40px;
width: 900px;
voice-family: "\"}\""
voice-family: inherit;
background-image: url(/images/menu04.png);
z-index: 1;
}
html>body #footer {
height: 40px;
}

#groupItem {
height: 80px;
border: 1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
height: 80px;
width: 800px;
z-index: 2;
}
html>body #footer {
height: 80px;
}

#datetime {
font-family: arial;
font-size: 14pt;
font-weight: 900;
color: #ffffff;
z-index: 3;
}

#dropmenudiv{
position:absolu te;
border:1px solid black;
border-bottom-width: 0;
font:normal 12px Verdana;
line-height:18px;
z-index:100;
}

/* =============== =============== =============== ===== =============== ==== */
/* Font Elements */

#bannercontent h1 {
font-size: 58px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#bodycontent h1 {
font-size: 36px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#bodycontent p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#bodycontent h5 {
font-weight: bold;
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#bodycontent li {
font-size: 18px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#menucontent h1 {
font-size: 36px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#menucontent p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

#footer p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

p {
font-size: 16px;
padding: 10px 10px 0px 10px;
margin: 0px;
color: #000000;
}

a:link {
font-weight: bold;
text-decoration: none;
color: #FFFFFF;
}

a:visited {
font-weight: bold;
text-decoration: none;
color: #7AD0E1;
}

a:hover, a:active {
text-decoration: underline;
color: #1365AE;
}

/* =============== =============== =============== ===== =============== ==== */
/* Random style classes. */

.clCMEvent{posi tion:absolute; z-index:300; width:100%; height:100%; clip:rect(0,100 %,100%,0); left:0; top:0; visibility:hidd en;}
.clCMAbs{positi on:absolute; width:10; height:10; left:0; top:0; visibility:hidd en;}

.clT,.clTover,. clS,.clSover,.c lS2,.clS2over{p osition:absolut e; overflow:hidden ; width:130; height:30; cursor:hand;}
.clT,.clTover{p adding:2px; font-size:16px; font-weight:bold;}
.clT{color:whit e;}

.clTover{color: #7AD0E1;}

.clS,.clSover{p adding:2px; font-size:16px; font-weight:bold;}

.clS2,.clS2over {padding:2px; font-size:16px;}

/* .clS,.clS2{colo r:white; background-color:#6699CC; layer-background-color:#6699CC;} */
.clS,.clS2{colo r:white; background-color:#3B3B65; layer-background-color:#3B3B65;}

.clSover,.clS2o ver{color:#7AD0 E1;}

/* .clSover,.clS2o ver,.clTover,.c lB,.clBar{layer-background-color:#0066CC; background-color:#0066CC;} */
.clSover, .clS2over{layer-background-color:#1365AE; background-color:#1365AE;}

.clB{position:a bsolute; visibility:hidd en; z-index:300;}
.clBar{position :absolute; width:10; height:30; visibility:hidd en;}

/* =============== =============== =============== ===== =============== ==== */

Any help that can be offered would be greatly appreciated. Thank you.
Nov 2 '06 #1
4 2185
AricC
1,892 Recognized Expert Top Contributor
Are you including the menu on the new page? And are all of the links correct? Here is what I do, seperate all that code and make a new file call it menu.php, then take all of the CSS and put it in your CSS file ( looks like you already have an external style sheet ). Now you have your menu system seperate from your web pages then integrate them like so:

Expand|Select|Wrap|Line Numbers
  1. /* Include this where you want the menu to show up */
  2. <?php include('yourmenufile.htm'); ?>
  3.  
This will make it easier to include your menu in all of your pages without having to retype the code. Also, if you want to update your menu you don't have to update it on 30 pages just 1.

HTH,
Aric
Nov 2 '06 #2
rsteph
71 New Member
The way I actually have it right now, is the menu and the header content are part of a header.html file that I put into each page via an <!--#include --> statement.

I've gone back to an older drop down menu. It works in IE and Netscape, but not in Mozilla. That's why I'm trying to get this new menu to work. I pulled all the <script> tags from the test page I had, and pasted them into my header.html file, and put a <script> tage into the menuitems div, to call in the menu. In the javascript the menu is given a z-index of 1000 as well.

For some reason it still doesn't like to show up.
Nov 2 '06 #3
AricC
1,892 Recognized Expert Top Contributor
Are you certain you have the links correct? Try absolute URL's to test if you aren't already.
Nov 2 '06 #4
AricC
1,892 Recognized Expert Top Contributor
Check your PM's I'll fix the code tonite just shoot it my way.

Aric
Nov 2 '06 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
2149
by: Gernot Frisch | last post by:
Hi, I have found some menu functions. It works quite well, but how can I replace it with a simple <a href> if javascript is turned off? I reduced my code to: <script>IncludeMenuHere()</script> More, any tips about "fading" the menu item in and out (x-browser)? Currently it's using DIVs and this.items.visibility(false);
4
2689
by: Mark Parter | last post by:
I have a master page which contains a Menu control and a SiteMapPath control, both are bound to the same web.sitemap XML file. Say I have 2 pages, Page 1 and Page 2. Now Page 2 can only be accessed after selecting some information on Page 1 (using a CrossPagePostback). When the user get's to Page 2, the SiteMapPath control fails to render, obviously because Page 2 isn't in the web.sitemap file. If I put Page 2 in the web.sitemap file, it...
6
3248
by: Sandy | last post by:
Hello - I have a book that illustrates pulling menu items from a Sql Server table into an ascx via a stored procedure. Is this something that is done in the real world? I do like the effect when viewing it in the source code, however, because it doesn't show the complete path to the file. (I'm talking about Internet Explorer click View, click source code.)
7
1735
by: GopherGold | last post by:
I have a site that uses a combination of Web.Sitemap and a SqlSiteMapProvider that I created (thanks to Jeff Proisse @ MSDN). One node of the Web.Sitemap is the same as the root node from the SqlSiteMap. Each SiteMapProvider sources a separate menu. I use this configuration because it allows me to control static display depth on the menus separately. This worked fine on my local development machine, but when I moved the site to a...
4
1536
by: Laura K | last post by:
I have a drop down menu which has a list of subcategories and the initial value is "please choose a Subcategory". When the user chooses a subcategory they are taken to a new page where the drop down list shows the selected subcategory in the menu. So far that is working. The problem is that when the list is showing the subcategory on the second page there are now two of that item in the list and the initial item that should be available...
1
1691
by: Andi | last post by:
Using a DHTML dropdown menu, blocks of menu items should be displayed on top of the page to let the user choose a menu item. So, on top of my page (no matter how it is constructed), there should be the menu box showing up as the foreground object, hiding the other page elements beneath it while it is open. The problem is that the underlying page contains list boxes (<select> elements). Internet Explorer draws these list boxes ALWAYS ON...
1
1240
by: Jeff | last post by:
hey asp.net 2.0 I'm creating a web portal using master pages and sitemaps! My web portal consist of 2 menus (a header menu which goes horizontally across the top of the page. And a sidebar menu to the left. The menuitmes shown in the sidebar menu is dependent on what menuitem is selected in the main menu.)
2
2424
by: Robbo | last post by:
Hi, I am creating html pages with forms where I use Dynarch menu script in a context menu mode. Their script needs to be initialized like this: <body onload="DynarchMenu.setup('menu', { context: true });"> This is in the beginning of the html page. But, in my webpages I have only few pages where I actually use this kind of menu. Since I use smarty template engine, I have single html-header file for all pages - it includes the same...
4
2385
by: N00b13 | last post by:
I have a great JS menu but I have to update every page each time I want to change a link. Is there a way to store my links in a file and call it so i only change that file? (what I have tried so far has not worked, but then again my JS really never works :) ) my .js: if (typeof Scl == "undefined") { var Scl = {}; } (function()
0
9916
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11056
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10696
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10782
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7093
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4174
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3201
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.