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= | + | document.body.onload= initmenu; |
var menulst= new Array(); | var menulst= new Array(); | ||
- | function | + | function initmenu() |
{ | { | ||
- | var | + | //alert(wgPageName) |
- | + | var mnu= document.getElementById('psmenu'); | |
- | + | mnu_node(mnu); | |
} | } | ||
- | function | + | function mnu_node(mnu) |
{ | { | ||
- | alert( | + | 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