Difference between revisions of "Template:China Tongji Foot"

 
(2 intermediate revisions by the same user not shown)
Line 35: Line 35:
 
#copyrightText{
 
#copyrightText{
 
text-align:center;
 
text-align:center;
 +
}
 +
 +
#sponsorGENEWIZ{
 +
float:left;
 +
}
 +
#sponsorTHORLABS{
 +
float:right;
 
}
 
}
  
Line 46: Line 53:
 
<!--foot start-->
 
<!--foot start-->
 
<div class="foot">
 
<div class="foot">
 +
<div id="sponsorGENEWIZ">
 +
<!--        <a href="http://www.genewiz.com" target="_blank">-->
 +
        <img height="100" id="GENEWIZlogo" src="https://static.igem.org/mediawiki/2015/9/96/China-Tongji-Team-sponser-GENEWIZ.jpg"/>
 +
    </div>   
 +
    <div id="sponsorTHORLABS">
 +
<!--        <a href="http://www.thorlabs.com" target="_blank">-->
 +
        <img height="100" id="THORLABSlogo" src="https://static.igem.org/mediawiki/2015/f/f5/China-Tongji-Team-sponser-THORLABS.jpg"/>
 +
    </div>
 
     <div class="navFoot" align="center">
 
     <div class="navFoot" align="center">
 
     <tr align="center">
 
     <tr align="center">
Line 60: Line 75:
 
</div>
 
</div>
  
 
+
<!-- ------------javascript code ----------------- -->
 +
<script type="text/javascript">
 +
//页面跳转后根据地址栏中的参数定位
 +
$(function() {
 +
var startIndex = location.href.indexOf("=");
 +
if (startIndex > 0) {  //判断对象是否存在
 +
var locationId = location.href.substring(startIndex+1); //获得锚点  
 +
setTimeout(function(){$('html,body').animate({scrollTop: $("#"+locationId).offset().top-78}, 1500);},200);
 +
    }
 +
});
 +
</script>
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 18:08, 16 September 2015