473,797 Members | 2,933 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 2177
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
2141
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
2685
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
3238
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
1731
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
1529
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
1684
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
1234
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
2416
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
2381
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
9685
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
10245
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
10205
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,...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7559
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
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
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
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.