473,671 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Expanding Menu items disappearing

I wonder if someone would help me and take a look at a strange problem
I'm facing with a webpage I'm building. The page is at
http://author.www.purdue.edu/swo/test.html.

By using Internet Explorer v6, you will see the problem I'm having (so
far I've tested this page only in IEv6, FF2 and IE7). If you click on
the navigation menu on the left side (Alcohol, Tobacco & Other Drugs,
General Wellness, Nutrition, etc.), the menus expand. Click on the
item in the menu again and the expanded menu collapses. For some
reason in IEv6, some of the menu items (usually the lower ones)
disappear. I can't figure out why.

I'd very much appreciate anyone who takes the time to look at the
source on the page and hopefully give me an idea of why this is
happening. Also, any comments about the page would be appreciated
(suggestions, comments, things to remove or stay away from, criticism,
etc.)

By the way, what are some great browser checking sites out there. I
did some searches, but I don't really know what they are called, so I'm
not finding too much.

Thanks so much!
Greg

Nov 14 '06 #1
2 1851
Please help me with this. I'm assuming it's javascript, but maybe it's
the css?

Thanks!
Greg

Greg wrote:
I wonder if someone would help me and take a look at a strange problem
I'm facing with a webpage I'm building. The page is at
http://author.www.purdue.edu/swo/test.html.

By using Internet Explorer v6, you will see the problem I'm having (so
far I've tested this page only in IEv6, FF2 and IE7). If you click on
the navigation menu on the left side (Alcohol, Tobacco & Other Drugs,
General Wellness, Nutrition, etc.), the menus expand. Click on the
item in the menu again and the expanded menu collapses. For some
reason in IEv6, some of the menu items (usually the lower ones)
disappear. I can't figure out why.

I'd very much appreciate anyone who takes the time to look at the
source on the page and hopefully give me an idea of why this is
happening. Also, any comments about the page would be appreciated
(suggestions, comments, things to remove or stay away from, criticism,
etc.)

By the way, what are some great browser checking sites out there. I
did some searches, but I don't really know what they are called, so I'm
not finding too much.

Thanks so much!
Greg
Nov 15 '06 #2

Greg wrote:
I wonder if someone would help me and take a look at a strange problem
I'm facing with a webpage I'm building. The page is at
http://author.www.purdue.edu/swo/test.html.
You will likely get better help from a CSS group, though there is a bug
with your script when clicking on the last menu item (use Firefox to
see the issue)[1].

Try:

news:comp.infos ystems.www.authoring.stylesheets
<URL:
http://groups.google.com.au/group/co...g.stylesheets/
>


1. The issue is with the following:

var last_obj = document.getEle mentById(last_e xpanded);
last_obj.classN ame = "hide";

You need to check that getElementById returned a DOM object first
before trying to set a property, e.g. the following. The simple test
should be sufficient, the more rigorous approach using typeof should
not be required since getElementById should return an object or
undefined:

var last_obj = document.getEle mentById(last_e xpanded);

// Simple:
if (last_obj) last_obj.classN ame = "hide";

// Rigorous:
if (typeof last_obj == 'object') last_obj.classN ame = "hide";
--
Rob

Nov 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
8498
by: Kyle James Matthews | last post by:
Hello, I have been lurking here for a little bit (truth be told, I lurk on too many newsgroups to be truly effective). I have made a CSS rollover menu, and would like some advice. The menu is at the URL http://www.digitalovertone.com/index3.php. You will notice that the each link disappears the first time you hover over it (this is most noticable in Opera, in my experience). Each link consists of 2 images (1 for a:hover, 1 for...
2
3877
by: Jackson Yap | last post by:
can someone kind enough to help me look at the attached html and js file? Why is it that the javascript menu could not work at www.apchosting.net but could work at http://home.pacific.net.sg/~jacksony ? (the drop down bar could not work at www.apchosting.net but can drop at home.pacific.net.sg. I suspect it is a server problem but was told it is not possible, therefore assuming it is a client script problem? the script works last time...
1
2190
by: Bhiksha Raj | last post by:
Hi, I created an expanding menu on one of the frames in my webpage using code I got from http://www.dynamicdrive.com/dynamicindex1/navigate1.htm I have embedded the code (with minor modification to point to my links) into a frame on my webpage. The problem is that when I open the page on netscape 7,
1
2265
by: Peter Morris [Droopy eyes software] | last post by:
Hi all In my login form (forms authentication) I check that the login is valid, retrieve an "Author" object, and keep track of the author's roles. string roles; if (author.IsAdministrator) roles = new string {"Admin", "Member"}; else roles = new string {"Member"};
24
2730
by: Rhino | last post by:
I am dabbling with print CSS for the first time and I need some guidance. The web pages on my site look fine - to my untrained eye - when displayed on the monitor in any of the standard browsers. However, I am new to print CSS and am having trouble getting the text on my printed pages to flow correctly. I know that I need a separate CSS for printing than the one I use for displaying on the monitor; I know that is accomplished by having...
0
1365
by: jojobar | last post by:
We are using the ASP:Menu control (horizontal) for site navigation. The menu is contained by a table with css styles that allows us to give the illusion of a menu bar that runs the entire width of the page. This table also has additional right aligned cells on the same row for such things as logging out. When the child menu items are displayed by the mouse hovering over a menu item, the width of the web page is apparently increasing,...
4
8351
by: Rabel | last post by:
I am not very good at javascript I mostly am a flash developer but I am trying to apply one of our old expanding menus to work for a new site but it doesn't collapse the way I need it to right now the code I am using looks like this function openSubCategory(n, nn) { var i = 0 for(i=1;i<n+1;i++) { var sel = document.getElementById('insideSubCategory'+i); sel.style.display = 'none';
0
234
by: andy | last post by:
I have a menu in a master page. It's set to horizontal alignment. There are several menu items which in turn have several children. When I roll over the parent the children pop out. Which is as it should be. However. Sometimes most of the page disappears. Roll over the rest of the page and off the pop out menu and often the page will reappear.
0
8478
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
8397
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8919
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
8821
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
8599
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
6230
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
5696
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
2813
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
1810
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.