Results 1 to 4 of 4

Thread: Help with DDaccordion (v1.9) script in IE8

  1. #1
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help with DDaccordion (v1.9) script in IE8

    1) Script Title: ddaccordion.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...daccordion.htm

    3) Describe problem: I am having a problem in IE8 only where when the accordion menu collapses, the spaces between the menu items disappear. Since v1.9 is suppose to address this issue, I am wondering if it is how I have the menu set up...

    The menu in question is at:
    http://www.1iopenproductions.com/DWS/index.htm
    ('DWS' needs to be capitalized)

    Here is the CSS I am using:
    Code:
    .navmenu{
    	float: left;
    	margin-top:20px;
    	width: 200px; /*width of accordion menu*/
    /*	background-color:#000000;*/
    }
    .navmenu div.menuheader{ /*CSS class for menu headers in general (expanding or not!)*/
    	font: bold 14px Arial;
    	width:inherit;
    	height: 18px;
    	background: transparent url('../images/navbtn_a.gif') repeat-x top left;
    	margin-bottom: 10px; /*bottom spacing between header and rest of content*/
    	text-transform: uppercase;
    	padding: 6px 0 5px 15px; /*header text is indented 15px*/
    	cursor: hand;
    	cursor: pointer;
    }
    .navmenu div.menuheader a{
    	text-decoration:none;
    	color:#FFFFFF;
    }
    .navmenu div.menuheader:hover { /*CSS class for menu headers in general (expanding or not!)*/
    	background-image: url('../images/navbtn_02.gif');
    	background-position:left top;
    	background-repeat:repeat-x;
    }
    .navmenu .openheader{ /*CSS class to apply to expandable header when it's expanded*/
    	background-image: url('../images/navbtn_02.gif');
    	background-position:left top;
    	background-repeat:repeat-x;
    }
    
    .navmenu div.submenu .opensubmenu {
    	margin:0;
    	padding:0;
    }
    
    .navmenu ul{ /*CSS for UL of each sub menu*/
    	list-style-type: none;
    	margin: 0;
    	padding: 0;
    	margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
    }
    	list-style-type: none;
    	margin: 0;
    	padding: 0;
    	margin-bottom: 8px; /*bottom spacing between each UL and rest of content*/
    }
    .navmenu ul li{
    	padding-bottom: 2px; /*bottom spacing between menu items*/
    }
    .navmenu ul li a{
    	color: #437B43;
    	background: url('../images/bullet.png') no-repeat center left; /*custom bullet list image*/
    	display: block;
    	padding: 2px 0;
    	padding-left: 19px; /*link text is indented 19px*/
    	text-decoration: none;
    	font-weight: bold;
    	border-bottom: 1px solid #F0DCB5;
    	font-size: 90%;
    }
    .navmenu ul li a:link{
    	text-decoration:none;
    	color: #437B43;
    }
    .navmenu ul li a:visited{
    	text-decoration:none;
    	color: #437B43;
    }
    .navmenu ul li a:hover{ /*hover state CSS*/
    	text-decoration:none;
    	color: #437B43;
    	background-color: #F3F3F3;
    }
    Here is the HTML I am using:
    Code:
    		<div class="navmenu">
    			<div class="menuheader"><a href="index.htm">Home</a></div>
    				<div class="submenu"></div>
    			<div class="menuheader"><a href="#">Services</a></div>
    				<div class="submenu">
    					<ul>
    						<li><a href="digitalmedia.htm">Digital Media Production</a></li>
    						<li><a href="eventcoverage.htm">Event Coverage</a></li>
    						<li><a href="personalvideoedit.htm">Personal Video Editing</a></li>
    						<li><a href="webdesign.htm">Web Design</a></li>
    						<li><a href="graphicdesign.htm">Graphic Design</a></li>
    						<li><a href="rtr.htm">Real-Time Remote Video Production/Upload</a></li>
    					</ul>
    				</div>
    			<div class="menuheader"><a href="video.htm">Digital Media</a></div>
    				<div class="submenu"></div>
    			<div class="menuheader"><a href="news.htm">News</a></div>
    				<div class="submenu"></div>
    			<div class="menuheader"><a href="#">Company</a></div>
    				<div class="submenu">
    					<ul>
    						<li><a href="about.htm">About Us</a></li>
    						<li><a href="contact.htm">Contact Us</a></li>
    					</ul>
    				</div>
    			<div class="menuheader"><a href="links.htm">Links</a></div>
    				<div class="submenu"></div>
    			<div class="menuheader"><a href="series.htm">Web Series Episodes</a></div>
    			<br/>
    		</div>
    Here are the parameters I am using for the script:
    Code:
    ddaccordion.init({
    	headerclass: "menuheader", //Shared CSS class name of headers group that are expandable
    	contentclass: "submenu", //Shared CSS class name of contents group
    	revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
    	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
    	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
    	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
    	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    	animatedefault: false, //Should contents open by default be animated into view?
    	persiststate: false, //persist state of opened contents within browser session?
    	toggleclass: ["opensubmenu", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    	togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
    	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
    	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
    		//do nothing
    	},
    	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
    		//do nothing
    	}
    })
    Any help would be greatly appreciated.
    Regards,
    DWS

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    You nearly gave me a heart attack. To anybody else wanting to be helpful : turn down the speakers

  3. #3
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    @azoomer:
    my apologies to all that may be trying to help. the volume wasn't set in the variables for the player. I have now set it to '50' so no heart attacks occur. Oi!
    Thanks for bringing it to my attention.

  4. #4
    Join Date
    Sep 2010
    Posts
    3
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    The workaround I use is to put the following in the head tag:

    Code:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

Bookmarks

Posting Permissions

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