Team:LMU-Munich/Templates/Page Header
From 2012.igem.org
(Difference between revisions)
m (i hate editing stuff in a browser…) |
(hopefully fixed some IE8 menu bugs (i'll be able to test this tomorrow, let's hope it does not break anything)) |
||
Line 158: | Line 158: | ||
position: absolute; | position: absolute; | ||
margin-top: 0; | margin-top: 0; | ||
- | + | border-top: .2em solid #7b406c; | |
top: 2.5em; | top: 2.5em; | ||
width: auto; | width: auto; | ||
Line 302: | Line 302: | ||
if(ele.my_opacity > 0.0) { | if(ele.my_opacity > 0.0) { | ||
ele.setAttribute("class", "over"); | ele.setAttribute("class", "over"); | ||
+ | ele.className = "over"; | ||
} else { | } else { | ||
ele.setAttribute("class", ""); | ele.setAttribute("class", ""); | ||
+ | ele.className = ""; | ||
} | } | ||
+ | } | ||
+ | |||
+ | function addEvent(ele, evnt, func) { | ||
+ | if (ele.addEventListener) { | ||
+ | ele.addEventListener(evnt,func,false); | ||
+ | } else if (ele.attachEvent) { | ||
+ | ele.attachEvent("on"+evnt, func); | ||
+ | } | ||
} | } | ||
Line 311: | Line 321: | ||
var li = lis[i]; | var li = lis[i]; | ||
li.my_opacity = 0.0; | li.my_opacity = 0.0; | ||
- | + | addEvent(li, "mouseover", function() { | |
if(this.timeout != null) { | if(this.timeout != null) { | ||
window.clearTimeout(this.timeout); | window.clearTimeout(this.timeout); | ||
Line 323: | Line 333: | ||
}, timeout); | }, timeout); | ||
}); | }); | ||
- | + | addEvent(li, "mouseout", function() { | |
if(this.timeout != null) { | if(this.timeout != null) { | ||
window.clearTimeout(this.timeout); | window.clearTimeout(this.timeout); |
Revision as of 19:49, 7 August 2012
The LMU-Munich team is exuberantly happy about the great success at the World Championship Jamboree in Boston. Our project Beadzillus finished 4th and won the prize for the "Best Wiki" (with Slovenia) and "Best New Application Project".
[ more news ]
Page title
List of templates:
- Team:LMU-Munich/Templates/Page Header
- this page, include at the start of every page, the first parameter specifies the image to be shown in the sidebar
- Team:LMU-Munich/Templates/Page Footer
- include at the end of every page
- Team:LMU-Munich/Templates/Navigation
- edit the menu here
- Team:LMU-Munich/Templates/News
- the text in the sidebar