|
|
Line 32: |
Line 32: |
| } | | } |
| </style> | | </style> |
| + | |
| + | <script type="text/javascript" src="https://2014.igem.org/Team:BNU-China/js/jquery.superbgimage.min.js?action=raw"></script> |
| | | |
| <script> | | <script> |
Line 40: |
Line 42: |
| { | | { |
| ph=document.body.clientWidth/picture_ratio | | ph=document.body.clientWidth/picture_ratio |
− | document.getElementById("background_picture_div").style.width=document.body.clientWidth | + | document.getElementById("background_picture").style.width=document.body.clientWidth |
− | document.getElementById("background_picture_div").style.height=ph | + | document.getElementById("background_picture").style.height=ph |
− | document.getElementById("background_picture_div").style.top=document.body.clientHeight-ph | + | document.getElementById("background_picture").style.top=document.body.clientHeight-ph |
| } | | } |
| else if (screen_ratio=pirture_ratio) | | else if (screen_ratio=pirture_ratio) |
| { | | { |
− | document.getElementById("background_picture_div").style.width=document.body.clientWidth | + | document.getElementById("background_picture").style.width=document.body.clientWidth |
− | document.getElementById("background_picture_div").style.height=document.body.clientHeight | + | document.getElementById("background_picture").style.height=document.body.clientHeight |
| } | | } |
| else | | else |
| { | | { |
| pw=document.body.clienHeighth*picture_ratio | | pw=document.body.clienHeighth*picture_ratio |
− | document.getElementById("background_picture_div").style.width=document.body.clientHeight | + | document.getElementById("background_picture").style.width=document.body.clientHeight |
− | document.getElementById("background_picture_div").style.height=pw | + | document.getElementById("background_picture").style.height=pw |
− | document.getElementById("background_picture_div").style.top=document.body.clientWidth-pw | + | document.getElementById("background_picture").style.top=document.body.clientWidth-pw |
| } | | } |
| } | | } |
Line 62: |
Line 64: |
| </head> | | </head> |
| <body class="home blog logged-in admin-bar no-customize-support" onload="Background_fitting()" onresize="Background_fitting()"> | | <body class="home blog logged-in admin-bar no-customize-support" onload="Background_fitting()" onresize="Background_fitting()"> |
− | <div id="background_picture_div" style="overflow: hidden; z-index: -1; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; "> | + | <div id="superbgimage" style="overflow: hidden; z-index: -1; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; "> |
| <img id="background_picture" src="http://www.azirquantum.com/wp-content/themes/slimwriter/static/css/testing_picture.jpg" style="position: absolute; display: block; left: 0px; top: 0px;"> | | <img id="background_picture" src="http://www.azirquantum.com/wp-content/themes/slimwriter/static/css/testing_picture.jpg" style="position: absolute; display: block; left: 0px; top: 0px;"> |
− | <div class="scanlines"></div>
| |
| </div> | | </div> |
| | | |