Team:Grenoble/Templates/Team:Grenoble Rawhide

From 2011.igem.org

(Difference between revisions)
Line 498: Line 498:
<body>
<body>
-
<div class="menu">
+
<div class="menu" id="menu">
<ul>
<ul>
Line 602: Line 602:
document.getElementById('p-logo').innerHTML = '<a href=\"/Main_Page\" title=\"Main Page\">  <img class=\"blabla\" src=\'http://farm4.static.flickr.com/3067/3084131521_36c059f6f0_b.jpg\'> </a>'
document.getElementById('p-logo').innerHTML = '<a href=\"/Main_Page\" title=\"Main Page\">  <img class=\"blabla\" src=\'http://farm4.static.flickr.com/3067/3084131521_36c059f6f0_b.jpg\'> </a>'
 +
 +
</script>
 +
 +
<script type="text/javascript">
 +
sfHover = function() {
 +
        var sfEls = document.getElementById("menu").getElementsByTagName("LI");
 +
        for (var i=0; i<sfEls.length; i++) {
 +
                sfEls[i].onmouseover=function() {
 +
                        this.className+=" sfhover";
 +
                }
 +
                sfEls[i].onmouseout=function() {
 +
                        this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
 +
                }
 +
        }
 +
}
 +
if (window.attachEvent) window.attachEvent("onload", sfHover);
</script>
</script>
</body>
</body>
</html>
</html>

Revision as of 13:17, 29 July 2011

TEAM:Grenoble