Wordpress Help

Discussion in 'HTML & Website Design' started by amith.gotamey, Oct 14, 2008.

  1. #1
    Yo people in the forum...i need to display the subpages on the subpage in Wordpress...I use the following code to do so...


    <ul id="dropmenu">
    <li><a href="<?php bloginfo('url'); ?>">Home</a></li>
    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
    </ul>


    where #dropmenu is the stylesheet id:

    #dropmenu, #dropmenu ul {margin:0; padding:0; list-style-type:none; list-style-position:eek:utside; position:relative; line-height:1.5em; z-index:300; width:100%; background:#fff; font-weight:bold;}
    #dropmenu a {display:block; padding:0.25em 8px; color:#686868; border-right:1px solid #c8c8c8; text-decoration:none; background:url('img/drop_back.png') repeat-x;}
    #dropmenu a:hover {background:#00CC66; color:#fff;}
    #dropmenu li {float:left; position:relative;}
    #dropmenu li.logo a {border:none; border-top:4px solid #ffbe10; background:#f85c00; color:#ffbe10; font-size:1.68em; line-height:1.48em; font-weight:bold; padding:0 0.68em 1px 0.68em; margin:-8px 0 0 -1px; -moz-border-radius:0 0 7px 7px; -webkit-border-radius:0 0 7px 7px;}
    #dropmenu ul {position:absolute; display:none; width:12em; top:1.9em;}
    #dropmenu ul a {border-left:1px solid #c8c8c8;}
    #dropmenu li ul {border-top:1px solid #c8c8c8; width:13.7em;}
    #dropmenu li ul a {width:12em; height:auto; float:left; border-bottom:1px solid #c8c8c8;}
    #dropmenu ul ul {top:auto;}
    #dropmenu li ul ul {left:12em; margin:0px 0 0 10px;}
    #dropmenu li:hover ul ul, #dropmenu li.over ul ul, #dropmenu li:hover ul ul ul, #dropmenu li.over ul ul ul, #dropmenu li:hover ul ul ul ul {display:none;}
    #dropmenu li:hover ul, #dropmenu li.over ul, #dropmenu li li:hover ul, #dropmenu li li.over ul, #dropmenu li li li:hover ul, #dropmenu li li li.over ul, #dropmenu li li li li:hover ul, #dropmenu li li li li.over ul {display:block;}



    The javascript i used for correcting problems in Internet Explorer X is:


    <script type="text/javascript">
    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("dropmenu");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes;
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" over";
    }
    node.onmouseout=function() {
    this.className=this.className.replace(" over", "");
    }
    }
    }
    }
    }
    window.onload=startList;
    </script>


    It works fine for the first level of dropdown but IE doesnt display the second level and so on....
    Please suggest something you guys...its really important and Urgent
    Thanks in Advance
     
    amith.gotamey, Oct 14, 2008 IP