Template:Template HD
From 2009.igem.org
(Difference between revisions)
Naoiwamoto (Talk | contribs) |
Naoiwamoto (Talk | contribs) m |
||
Line 408: | Line 408: | ||
</style> | </style> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | var url = document.URL; | ||
+ | var myNavi = document.getElementById('navigation'); | ||
+ | var myNaviElementmy = Navi.children[0].children[0]; | ||
+ | var myNaviLink; | ||
- | + | myNaviLink; | |
- | + | for (i = 0; i < myNavi.children[0].children.length; i++) { | |
- | for (i=0; i< | + | myNaviLink = myNaviElement.children[0]; |
- | { | + | if (myNaviLink.href == url.href) { |
- | + | myNaviLink.style.color = 'red'; | |
- | + | } | |
- | + | myNaviElement = myNaviElement.nextElementSibling; | |
- | + | ||
} | } | ||
- | |||
- | |||
</script> | </script> | ||
</head> | </head> |
Revision as of 21:42, 6 October 2009