Template:Template HD

From 2009.igem.org

(Difference between revisions)
m
Line 404: Line 404:
/*...............................................................................................*/
/*...............................................................................................*/
-
/* body#home #mainHome a, body#team #mainTeam a, body#project #mainProject a,body#notebook #mainNotebook a, body#modeling #mainModeling a, body#sponsor #mainSponsors a, body#misc #mainMisc a, body#parts #mainParts a { color: #F08F03; cursor: default; } */
+
body#home #mainHome a, /* body#team #mainTeam a, body#project #mainProject a,body#notebook #mainNotebook a, body#modeling #mainModeling a, body#sponsor #mainSponsors a, body#misc #mainMisc a, body#parts #mainParts a */
 +
{ color: #F08F03; cursor: default; }
</style>
</style>
-
<script type="text/javascript">
 
-
var url = window.location
 
-
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++) {
 
-
        myNaviLink = myNaviElement.children[0];
 
-
        if (myNaviLink.href == url.href) {
 
-
                myNaviLink.style.color = 'red';
 
-
        }
 
-
        myNaviElement = myNaviElement.nextElementSibling;
 
-
}
 
-
</script>
 
</head>
</head>

Revision as of 21:45, 6 October 2009