|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
#1
|
|||
|
|||
|
1) Script Title: Glossy Accordian menu
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...enu-glossy.htm 3) Describe problem: I have successfully got the menu working and everything is fine in FF. however IE6 and IE7 are behaving very stranegly. I have modified the code very slightly to enable me to have a third tier of menu (sub submenu if you will). When you click the subsubmenu it opens and displays as I want. However the plus and minus icon on the subsubmenu starts moving randomly all over the place with each subsequent click of the mouse. Any ideas? CSS: /* --- SUBMENU2 STARTS --- */ .submenu ul li .subsubmenuheader{ /*CSS for Sub sub Menu HEADER*/ display: block; font: normal 12px Arial, Helvetica, sans-serif; color: white; text-decoration: none; text-align: right; padding: 2px 7px 0 0; background-color: #728e30; cursor: hand; border-bottom: 1px solid #333; } .statusicon2{ /*CSS for icon image that gets dynamically added to headers*/ position: relative; margin:0 0 0 2px; border: none; } .submenu .submenu2{ /*DIV that contains each sub menu*/ background: #999; } .submenu .submenu2 ul{ /*UL of each sub menu*/ list-style-type: none; margin: 0; padding: 0; } .submenu .submenu2 ul li{border-bottom: 1px solid #666;} .submenu .submenu2 ul li a{display: block;} .submenu .submenu2 ul li a:hover{ background: #333; color: red; } JAVASCRIPT IN PAGE:ddaccordion.init({ headerclass: "subsubmenuheader", //Shared CSS class name of headers group contentclass: "submenu2", //Shared CSS class name of contents group revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover 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: true, //persist state of opened contents within browser session? toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"] togglehtml: ["suffix", "<img src='plus2.gif' class='statusicon2' />", "<img src='minus2.gif' class='statusicon2' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs) animatespeed: "normal", //speed of animation: "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 } }) HTML MENU: <div class="glossymenu"> <a class="menuitem" href="index.shtml">HOME<p class="menu-tag">START HERE</p></a> <a class="menuitem submenuheader" href="#" >ABOUT US<p class="menu-tag">COMPANY PROFILE</p></a> <div class="submenu"> <ul> <li><a href="about.shtml">WHO ARE WE?</a></li> <li><a href="annual.shtml">ANNUAL REPORT</a></li> <div class="submenu"> <ul> <li><div href="#" class="subsubmenuheader">INFORMATION FOR VENDORS</div> <ul class="submenu2"> <li><a href="info.shtml">HOW WE DO BUSINESS</a></li> <li><a href="policy.shtml">NATIONAL POLICIES</a></li> <li><a href="procurement.shtml">PROCUREMENT</a></li> <li><a href="invoicing.shtml">INVOICING</a></li> <li><a href="payments.shtml">PAYMENTS</a></li> <li><a href="terms.shtml">TERMS OF TRADE</a></li> <li><a href="downloads.shtml">FORMS & GUIDELINES</a></li> </ul> </li> <li><div href="#" class="subsubmenuheader">WORKING WITH YOU</div> <ul class="submenu2"> <li><a href="policy.shtml">PRODUCT RANGING</a></li> <li><a href="procurement.shtml">BUSINESS REVIEWS</a></li> <li><a href="invoicing.shtml">INCENTIVES</a></li> <li><a href="payments.shtml">KPI'S</a></li> <li><a href="trade.shtml">OVER STOCKS</a></li> <li><a href="forms.shtml">DISCOUNTINUED PRODUCTS</a></li> </ul> </li> <li><a href="faqs.shtml">FAQs</a></li> </ul> </div> <a class="menuitem" href="contact.shtml">GET IN TOUCH<p class="menu-tag">CONTACT US</p></a> </div> |
|
#2
|
||||
|
||||
|
This sounds like a CSS issue actually, since the arrows are absolutely positioned using CSS- the script merely changes the arrow image's src property, nothing more.
It'll be a lot easier seeing a live example of the problem- Please post a link to the page on your site that contains the problematic script so we can check it out. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|