Results 1 to 5 of 5

Thread: Submenu (Dropdown) not working in IE6

  1. #1
    Join Date
    Jun 2010

    Submenu (Dropdown) not working in IE6

    I don’t know if this is a HTML, CSS or JS error. But I am trying to add a dropdown menu to an already huge site and its always proven difficult due to code conflicts. I never built this site so it’s like searching for a needle in a hay stack so I left it. However the company is running out of link space and I am still waiting for the new website brief to be written by my boss.

    I have managed to find something that works, but not in IE6 as the submenus just don’t work. In FF its working but I am getting the following error:

    Error: invalid XML attribute value
    Source File: http://hmemmah/
    Line: 2, Column: 11
    Source Code:
    <div class=
    I don’t understand it as it makes no sense to me. The site is split into aspx and html includes, so for this I am working with a HTML, CSS, JS and ASPX file. I am going to assume that the error above is from the aspx file where the head is, but this points to the

    “<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    I am not sure I am getting this. The main code works in IE6:http://www.projectseven.com/tutorial...e/workpage.htm
    so it must be a conflict.


    <&#37;@ Page Language="C#" ContentType="text/html" ResponseEncoding="UTF-8" CodeFile="index.aspx.cs" Inherits="index" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><!-- InstanceBegin template="Templates/Headmasters ASP.dwt" codeOutsideHTMLIsLocked="false" -->
    <head runat="server">
    <!-- InstanceBeginEditable name="head" -->
    <title>Professional Hairdressers - In London &amp; UK | Headmasters</title>
    <meta name="robots" content="follow"  />
    <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
    <!--#include file="/includes/css.html"-->
    <link href="css/p7exp.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="js/p7exp.js"></script>
    <!--[if lte IE 7]>
    #menuwrapper, #p7menubar ul a {height: 1%;}
    a:active {width: auto;}


    #menuwrapper {
    	border-top: 1px solid #000;
    	border-bottom: 1px solid #333;
    	background-color: #909090;
    	background-image: url(../images/nav/p7exp_mbar.jpg);
    	background-repeat: repeat-x;
    /*Clears the floated menu items.
    Assigned to a BR tag placed just before
    menuwrapper's closing DIV tag*/
    .clearit {
    	clear: both;
    	height: 0;
    	line-height: 0.0;
    	font-size: 0;
    p7menubar is the root UL and p7menubar ul applies to all the sub-menu ULs.
    We set padding and margin to zero to eliminate all indentation, turn bullets off,
    and set a font-family different from the global font-family declared for the
    body element above. This sets font for just the menu. Do not add a font-size here.
    #p7menubar, #p7menubar ul {
    	padding: 0;
    	margin: 0;
    	list-style: none;
    	font-family: Arial, Helvetica, sans-serif;
    Root-Level Links.  Do not change the first two properties.
    Adjust padding values to make the root links taller and to offset them
    from the left and right edges of the link box. The border right creates a
    separator between links. Font-size is set here and will apply to all menu levels.
    Font color is set to light gray.
    #p7menubar a {
    	display: block;
    	text-decoration: none;
    	padding: 5px 10px 5px 10px;
    	border-right: 1px solid #333;
    	font-size: 1.4em;
    	color: #FFFFFF;
    Class assigned to those Root-Level links that have associated Sub-Menus.
    The top and bottom padding assigned this element must be the same as
    that assigned to the p7menubar a element. The right padding is increased
    to accomodate the display of background image depicting a downward
    pointing arrow.
    #p7menubar a.trigger {
    	padding: 5px 16px 5px 10px;
    	background-image: url(../images/nav/p7PM_dark_south.gif);
    	background-repeat: no-repeat;
    	background-position: right center;
    The Root-Level list items. Floating left allows
    them to appear horizontally. Width is for IE5 Mac. The last rule in
    this style sheet will set the width for this element to auto for all
    other browsers - hiding it from IE5 Mac. The width is proportional.
    As you add and edit root menu items, you will need to test this width
    to ensure it is wide enough to accomodate all text.
    #p7menubar li {
    	float: left;
    	width: 9em;
    Sets width for Sub-Menu box and the List Items inside - in proportional em units. 
    This allows the sub-menu width to expand if users resize the text in their browsers.
    #p7menubar li ul, #p7menubar ul li  {
    	width: 12em;
    The sub-menu links. We set color and turn off the right border, which
    would otherwise be inherited from the root link rule. We set top and 
    bottom padding less than the root items and increas the left padding
    to indent the sub-menu links a small amount in from the root links.
    #p7menubar ul li a  {
    	color: #565656;
    	border-right: 0;
    	padding: 3px 12px 3px 16px;
    Sub-Menu Unordered Lists describes each dropdown sub-menu grouping. 
    Positioned Absolutely to allow them to appear below their root trigger.
    Set to display none to hide them until trigger is moused over.
    Background Color must be set or problems will be encountered in MSIE.
    Right and bottom borders are set to simulate a raised look.
    A gradient background image is assigned.
    #p7menubar li ul {
    	position: absolute;
    	display: none;
    	background-color: #FFFFFF;
    	border-right: 1px solid #333333;
    	border-bottom: 1px solid #333333;
    	background-repeat: repeat-x;
    Changes the Text color and background color when the Root-Level
    menu items are moused over. The second selector sets color and background
    when Root-Level items are accessed with the keyboard tab key. The third
    selector sets an active state to support keyboard access in MSIE. The fourth 
    selector is assigned to IE5 and IE6 Windows via the P7_ExpMenu script.
    Note that IE7 supports hover on elements other than links and so behaves
    like Firefox, Opera, and Safari - making the menu operable even if JavaScript
    is not enabled.
    #p7menubar li:hover a, #p7menubar a:focus,
    #p7menubar a:active, #p7menubar li.p7hvr a {
    	color: #000000;
    	background-color: #A8B1B7;
    Set the Sub-Menu UL to be visible when its associated
    Root-Level link is moused over. The second selector is 
    assigned to IE5 and IE6 via the P7_ExpMenu script.
    #p7menubar li:hover ul, #p7menubar li.p7hvr ul {
    	display: block;
    Sets the Text color of the Sub-Level links when the Root-Level
    menu items are moused over. The second selector is 
    assigned to IE5 and IE6 via the P7_ExpMenu script.
    The color set should march the normal Sub-Level link color
    in the rule: #p7menubar ul li a. The background color must be
    transparent to allow the underlying gradient background on the UL
    to show through.
    #p7menubar li:hover ul a, #p7menubar li.p7hvr ul a {
    	color: #000000;
    	background-color: transparent;
    The normal hover class for Sub-Level links. The Important directive
    is required for older browsers. We set a background color, which shows
    over the gradient background. We set text color to white.
    #p7menubar ul a:hover {
    	background-color: #606060!important;
    	color: #FFFFFF!important;
    /* The single backslash \ character inside this comment
    causes IE5 Mac to ignore the following rule, which allows other
    browsers to render top-level menu items to their natural width.
    Do not edit this rule in any way. */
    #p7menubar li {width: auto;}

    <div id="menuwrapper">
    <div class="center">
    <ul id="p7menubar">
    <li><a href="#">Home</a></li>
    <li><a class="trigger" href="#">Trigger One</a>
    <li><a href="#">Sub 1.1</a></li>
    <li><a href="#">Sub 1.2</a></li>
    <li><a href="#">Sub 1.3</a></li>
    <li><a href="#">Sub 1.4</a></li>
    <li><a class="trigger" href="#">Trigger Two</a>
    <li><a href="#">Sub 2.1</a></li>
    <li><a href="#">Sub 2.2</a></li>
    <li><a href="#">Sub 2.3</a></li>
    <li><a href="#">Sub 2.4</a></li>
    <li><a href="#">Sub 2.5</a></li>
    <li><a class="trigger" href="#">Trigger Three</a>
    <li><a href="#">Sub 3.1</a></li>
    <li><a href="#">Sub 3.2</a></li>
    <li><a href="#">Sub 3.3</a></li>
    <li><a href="#">Sub 3.4</a></li>
    <li><a href="#">Sub 3.5</a></li>
    <li><a href="#">Sub 3.6</a></li>
    <li><a href="#">Sub 3.7</a></li>
    <li><a href="#">Sub 3.8</a></li>
    <br class="clearit">
    Note this is for our Intranet.
    Last edited by hmhair; 10-14-2010 at 06:32 AM.

  2. #2
    Join Date
    Jul 2007
    I'm not sure if this is the cause of your problem, but I think your DOCTYPE should be:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    Hope this will help ...

  3. #3
    Join Date
    Jun 2010
    Hi there

    That is what it was originally until I changed it hoping it might solve the problem.

    But from what I can see it has nothing to do with the error as to why the dropdown doesn’t work in IE6. I created a blank HTML page and started again and it still didn’t work in IE6. Could this be a CSS issue?

  4. #4
    Join Date
    Jun 2010
    Fixed it.

  5. #5
    Join Date
    Feb 2011
    I had this same problem so when I saw the last post "fixed it" I was pretty disappointed that they didn't describe how. My problem was not initializing the javascript in the body tag

    <body onLoad="P7_ExpMenu()">

    This fixed my IE6 problem. As usual hours of diagnosis for a simple fix.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09588 seconds
  • Memory Usage 2,901KB
  • Queries Executed 15 (?)
More Information
Template Usage (33):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (5)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates