Team:LMU-Munich/Templates/Page Header
From 2012.igem.org
(Difference between revisions)
(mascot + script) |
|||
Line 478: | Line 478: | ||
</div> | </div> | ||
<html> | <html> | ||
- | < | + | <div id="mascot"><img alt="Sporenfreunde" src="https://static.igem.org/mediawiki/2012/e/e3/Team_LMU_Sporenfreunde.png"></div> |
</div> | </div> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
Line 501: | Line 501: | ||
} | } | ||
- | + | function scroll() { | |
- | var | + | var distance_bottom = window.innerHeight - 127 - (get_y(dummy) - ((document.body.parentElement) ? document.body.parentElement.scrollTop : 0)); |
- | + | ||
- | + | if(distance_bottom > 75) { | |
- | + | ||
- | + | ||
- | + | ||
- | if(distance_bottom > | + | |
mascot.style.position = "fixed"; | mascot.style.position = "fixed"; | ||
- | mascot.style.left = | + | mascot.style.left = get_x(dummy) + "px"; |
- | mascot.style.top = | + | mascot.style.top = (window.innerHeight - 127 - 75) + "px"; |
+ | dummy.style.height = "127px"; | ||
} else { | } else { | ||
mascot.style.position = "static"; | mascot.style.position = "static"; | ||
+ | dummy.style.height = 0; | ||
} | } | ||
- | |||
} | } | ||
- | window.onscroll(); | + | window.onscroll = scroll; |
+ | window.onresize = scroll; | ||
+ | scroll(); | ||
</script> | </script> | ||
<div id="right"> | <div id="right"> | ||
Line 557: | Line 555: | ||
{{:Team:LMU-Munich/Templates/Page Footer}} | {{:Team:LMU-Munich/Templates/Page Footer}} | ||
</noinclude> | </noinclude> | ||
- |
Revision as of 18:18, 25 September 2012
![Team-LMU Sidebar Home.jpg](/wiki/images/2/20/Team-LMU_Sidebar_Home.jpg)
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 ]
![Sporenfreunde](https://static.igem.org/mediawiki/2012/e/e3/Team_LMU_Sporenfreunde.png)
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
box test
A1 | B1 | C1 |
---|---|---|
A2 | B2 | C2 |
A3 | B3 | C3 |