Template:Team:Paris Saclay/incl menu

From 2013.igem.org

(Difference between revisions)
(var ke)
(var ke)
Line 2: Line 2:
<script>
<script>
-
document.body.onload= initmenus;
+
document.body.onload= initmenu;
var menulst= new Array();
var menulst= new Array();
-
function initmenus()
+
function initmenu()
{
{
-
     var mnus= document.getElementById('psmenu');
+
    //alert(wgPageName)
-
     for(var i= 0 ; i<mnus.length ; i++)
+
     var mnu= document.getElementById('psmenu');
-
        init_mnu(mnus[i]);
+
     mnu_node(mnu);
}
}
-
function init_mnu(mnu)
+
function mnu_node(mnu)
{
{
-
     alert(wgPageName)
+
     var sn= mnu.childNodes;
 +
    for(var i= 0 ; i < sn.length ; ++i)
 +
    {
 +
        var child= sn[i];
 +
        alert(child.nodeName);
 +
    }
}
}

Revision as of 23:05, 23 July 2013