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 = window.location | var url = window.location | ||
var myNavi, myNaviElement, myNaviLink; | var myNavi, myNaviElement, myNaviLink; | ||
- | |||
myNavi = document.getElementById('navi'); | myNavi = document.getElementById('navi'); | ||
- | + | myNaviElement = myNavi.children[0].children[0]; | |
- | myNaviElement = myNavi.children[0].children[0]; | + | |
myNaviLink; | myNaviLink; | ||
for (i = 0; i < myNavi.children[0].children.length; i++) { | for (i = 0; i < myNavi.children[0].children.length; i++) { | ||
- | myNaviLink = myNaviElement.children[0]; | + | myNaviLink = myNaviElement.children[0]; |
if (myNaviLink.href == url.href) { | if (myNaviLink.href == url.href) { | ||
myNaviLink.style.color = 'red'; | myNaviLink.style.color = 'red'; | ||
- | |||
- | |||
- | |||
- | |||
- | |||
} | } | ||
myNaviElement = myNaviElement.nextElementSibling; | myNaviElement = myNaviElement.nextElementSibling; | ||
} | } | ||
+ | --> | ||
</script> | </script> | ||
</head> | </head> |
Revision as of 21:25, 6 October 2009