Template:Peking2012 CSS

From 2012.igem.org

(Difference between revisions)
m
m
Line 81: Line 81:
   margin: 0px auto;
   margin: 0px auto;
   top: 0px;
   top: 0px;
-
//  left: 100%;
 
   width: 965px;
   width: 965px;
   height: 20px;
   height: 20px;
Line 197: Line 196:
<script type="text/javascript" >
<script type="text/javascript" >
-
/*if (window.innerWidth!=undefined) /* Standard */
 
-
{
 
-
  document.getElementById('PKU_menubar').style.left = (window.innerWidth - 975)/2. + 'px';
 
-
}
 
-
else if (document.documentElement.clientWidth!=undefined) /* IE */
 
-
{
 
-
  document.getElementById('PKU_menubar').style.left = (window.documentElement.clientWidth - 975)/2. + 'px';
 
-
}
 
-
else if (document.body.clientWidth!=undefined) /*IE6 without a DOCTYPE*/
 
-
{
 
-
  document.getElementById('PKU_menubar').style.left = (window.body.clientWidth - 975)/2. + 'px';
 
-
}*/
 
-
 
 
var thispage = document.location.toString().slice("https://2012.igem.org/".length); /* relative location */
var thispage = document.location.toString().slice("https://2012.igem.org/".length); /* relative location */
document.getElementById('PKU_menubar_ViewSource_span').href = 'https://2012.igem.org/wiki/index.php?title=' + thispage + '&'.substring(0,1) + 'action=edit';
document.getElementById('PKU_menubar_ViewSource_span').href = 'https://2012.igem.org/wiki/index.php?title=' + thispage + '&'.substring(0,1) + 'action=edit';

Revision as of 13:33, 26 July 2012