Difference between revisions of "Template:China Tongji Foot"

 
(6 intermediate revisions by the same user not shown)
Line 34: Line 34:
 
}
 
}
 
#copyrightText{
 
#copyrightText{
        align:center;
+
text-align:center;
 
}
 
}
 +
 +
#sponsorGENEWIZ{
 +
float:left;
 +
}
 +
#sponsorTHORLABS{
 +
float:right;
 +
}
 +
 
</style>
 
</style>
  
Line 45: 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 59: Line 75:
 
</div>
 
</div>
  
<!--当前页面指示-->
+
<!-- ------------javascript code ----------------- -->
<script defer>
+
<script type="text/javascript">
 
+
//页面跳转后根据地址栏中的参数定位
var keyWord = location.href.substring(39);
+
$(function() {  
switch (keyWord)
+
var startIndex = location.href.indexOf("=");
{
+
if (startIndex > 0) {  //判断对象是否存在
  case "ome":
+
var locationId = location.href.substring(startIndex+1); //获得锚点    
document.getElementById("divHome").style.borderBottom = "4px solid #F0F";
+
setTimeout(function(){$('html,body').animate({scrollTop: $("#"+locationId).offset().top-78}, 1500);},200);
break;
+
    }  
  case "Project":
+
});
document.getElementById("divProject").style.borderBottom = "4px solid #F0F";
+
break;
+
  case "Notebook":
+
document.getElementById("divNotebook").style.borderBottom = "4px solid #F0F";
+
break;
+
   case "Achivement":
+
document.getElementById("divAchivement").style.borderBottom = "4px solid #F0F";
+
break;
+
  case "Team":
+
document.getElementById("divTeam").style.borderBottom = "4px solid #F0F";
+
break;
+
  case "Outreach":
+
document.getElementById("divOutreach").style.borderBottom = "4px solid #F0F";
+
break;
+
  case "Safety":
+
document.getElementById("divSafety").style.borderBottom = "4px solid #F0F";
+
break;
+
}
+
 
+
 
</script>
 
</script>
 
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 18:08, 16 September 2015