|
|
Line 3: |
Line 3: |
| {{:Team:Freiburg_Bioware/menu_home}} | | {{:Team:Freiburg_Bioware/menu_home}} |
| <html> | | <html> |
- | <script language="JavaScript1.1">
| + | <div id='siteLoader'> |
- | <!-- | + | <div id='siteDetailLoader'> |
- | var locationAfterPreload = "nichtvorhanden.htm"
| + | <img src="https://static.igem.org/mediawiki/2010/a/a4/Freiburg10_PleaseWait.gif" border='0'> |
- | var lengthOfPreloadBar = 300
| + | Please wait while the page loads...<br /> <br /> |
- | var heightOfPreloadBar = 20
| + | </div> |
- | var yourImages = new Array("https://static.igem.org/mediawiki/2010/0/03/Freiburg10_AAVassem500-100.gif")
| + | </div> |
- | | + | <div id="container"> |
- | if (document.images) {
| + | |
- | var dots = new Array()
| + | |
- | dots[0] = new Image(1,1)
| + | |
- | dots[0].src = "https://static.igem.org/mediawiki/2010/c/c1/Freiburg10_vorladeng.gif"
| + | |
- | dots[1] = new Image(1,1)
| + | |
- | dots[1].src = "https://static.igem.org/mediawiki/2010/7/7c/Freiburg10_vorladenr.gif"
| + | |
- | var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
| + | |
- | var loaded = new Array(),i,covered,timerID
| + | |
- | var leftOverWidth = lengthOfPreloadBar%coverage
| + | |
- | }
| + | |
- | function loadImages() {
| + | |
- | for (i = 0; i < yourImages.length; i++) {
| + | |
- | preImages[i] = new Image()
| + | |
- | preImages[i].src = yourImages[i]
| + | |
- | }
| + | |
- | for (i = 0; i < preImages.length; i++) {
| + | |
- | loaded[i] = false
| + | |
- | }
| + | |
- | checkLoad()
| + | |
- | }
| + | |
- | function checkLoad() {
| + | |
- | if (currCount == preImages.length) {
| + | |
- | location.replace(locationAfterPreload)
| + | |
- | return
| + | |
- | }
| + | |
- | for (i = 0; i <= preImages.length; i++) {
| + | |
- | if (loaded[i] == false && preImages[i].complete) {
| + | |
- | loaded[i] = true
| + | |
- | eval("document.img" + currCount + ".src=dots[1].src")
| + | |
- | currCount++
| + | |
- | }
| + | |
- | }
| + | |
- | timerID = setTimeout("checkLoad()",10)
| + | |
- | }
| + | |
- | // -->
| + | |
- | </script>
| + | |
- | | + | |
- | | + | |
- | | + | |
| <h1>Structure Modeling</h1> | | <h1>Structure Modeling</h1> |
| <br> | | <br> |
Line 70: |
Line 31: |
| </tbody> | | </tbody> |
| </table> | | </table> |
| + | |
| + | </div> |
| <br> | | <br> |
| + | <script> |
| + | window.onload = function() { |
| + | document.getElementById("siteLoader").style.display = "none"; |
| + | document.getElementById("container").style.display = "block"; |
| + | } |
| + | </script> |
| | | |
| | | |
- | <script language="JavaScript1.1">
| |
- | <!--
| |
- | if (document.images) {
| |
- | var preloadBar = ''
| |
- | for (i = 0; i < yourImages.length-1; i++) {
| |
- | preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
| |
- | }
| |
- | preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
| |
- | document.write(preloadBar)
| |
- | loadImages()
| |
- | }
| |
- | document.write('<p><div align="center"><a href="javascript:window.location=locationAfterPreload">vorladen überspringen</a></div></p>')
| |
- | // -->
| |
- | </script>
| |
| </html> | | </html> |
| | | |
| {{:Team:Freiburg_Bioware/Footer}} | | {{:Team:Freiburg_Bioware/Footer}} |