Team:TU Delft/menu test
From 2010.igem.org
(Difference between revisions)
(New page: <html> <ul id="navlist"> <li class="home"><a href="https://2010.igem.org/Team:TU_Delft" title="Home"> </a></li> <li class="blog"><a href="https://2010.igem.org/Team:TU_Delft/blog" title...) |
|||
Line 11: | Line 11: | ||
</ul> | </ul> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | $("#navlist > *"). | + | $("#navlist > * > *").each (function() { |
+ | // load URL from link element | ||
+ | var url = $(this).attr("href"); | ||
+ | |||
+ | alert(url); | ||
+ | |||
+ | // create normal div with click action | ||
+ | // $(this).text(url); | ||
+ | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 13:34, 4 June 2010