Template:Peking2012 Color Prologue

From 2012.igem.org

(Difference between revisions)
m
m
Line 558: Line 558:
   </li>
   </li>
   <li>
   <li>
-
     <ul onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:170px;display:block;">
+
     <ul onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:120px;display:block;">
     <li class="submenu_team">
     <li class="submenu_team">
       <a href="/Team:Peking/Team/Members">
       <a href="/Team:Peking/Team/Members">
Line 582: Line 582:
   </li>
   </li>
   <li>
   <li>
-
     <ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;display:block;">
+
     <ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:200px;display:block;">
     <li class="submenu_project">
     <li class="submenu_project">
       <a href="/Team:Peking/Project/Luminesensor">
       <a href="/Team:Peking/Project/Luminesensor">
Line 595: Line 595:
     <li class="submenu_project">
     <li class="submenu_project">
       <a href="/Team:Peking/Project/Synthetic3D">
       <a href="/Team:Peking/Project/Synthetic3D">
-
Synthetic Biology in 3D
+
Synbio in 2D & 3D
       </a>
       </a>
     </li>
     </li>
Line 606: Line 606:
   </li>
   </li>
   <li>
   <li>
-
     <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;display:block;">
+
     <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:240px;display:block;">
     <li class="submenu_modeling">
     <li class="submenu_modeling">
       <a href="/Team:Peking/Modeling/Luminesensor">
       <a href="/Team:Peking/Modeling/Luminesensor">
Line 630: Line 630:
   </li>
   </li>
   <li>
   <li>
-
     <ul onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:300px;display:block;">
+
     <ul onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:320px;display:block;">
     <li class="submenu_humanpractice">
     <li class="submenu_humanpractice">
       <a href="/Team:Peking/HumanPractice/SowingTomorrowSyntheticBiologists">
       <a href="/Team:Peking/HumanPractice/SowingTomorrowSyntheticBiologists">
Line 651: Line 651:
  </div>
  </div>
</div>
</div>
-
<p id="console" style="position:relative;top:-40px;"></p>
 
-
<p id="terminal" style="position:relative;top:-40px;"></p>
 
<script type="text/javascript" >
<script type="text/javascript" >
Line 665: Line 663:
var Submenu_Item_Des = 0;
var Submenu_Item_Des = 0;
var Submenu_Item_Cur = 0;
var Submenu_Item_Cur = 0;
-
var Submenu_BlankWidth = [0, 430, 460, 500, 600]; //Unit: Pixel
+
var Submenu_BlankWidth = [0, 440, 480, 570, 600]; //Unit: Pixel
var Submenu_ListHeight = [120, 120, 120, 90, 90]; //Unit: Pixel
var Submenu_ListHeight = [120, 120, 120, 90, 90]; //Unit: Pixel
var Submenu_Handle_State = 0; //0:Null, 1:Growth, 2:Waiting, 3:Wither
var Submenu_Handle_State = 0; //0:Null, 1:Growth, 2:Waiting, 3:Wither
Line 680: Line 678:
function ItemGrowth()
function ItemGrowth()
{
{
-
document.getElementById('console').innerHTML="Growth";
 
-
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
 
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 + Submenu_ListHeight[Submenu_Item_Cur] * 1.05 * 0.4;
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 + Submenu_ListHeight[Submenu_Item_Cur] * 1.05 * 0.4;
   if (Submenu_Size_Cur[Submenu_Item_Cur]>=Submenu_ListHeight[Submenu_Item_Cur])
   if (Submenu_Size_Cur[Submenu_Item_Cur]>=Submenu_ListHeight[Submenu_Item_Cur])
Line 688: Line 684:
     Submenu_Handle = null;
     Submenu_Handle = null;
     Submenu_Handle_State = 0;
     Submenu_Handle_State = 0;
-
document.getElementById('console').innerHTML="GrowthOver";
 
   }
   }
   else
   else
Line 698: Line 693:
function ItemWither()
function ItemWither()
{
{
-
document.getElementById('console').innerHTML="Wither";
 
-
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
 
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 - 0.5 * 0.4;
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 - 0.5 * 0.4;
   if (Submenu_Size_Cur[Submenu_Item_Cur]<=0)
   if (Submenu_Size_Cur[Submenu_Item_Cur]<=0)
Line 721: Line 714:
       Submenu.style.zIndex = -1;
       Submenu.style.zIndex = -1;
     }
     }
-
document.getElementById('console').innerHTML="WitherOver";
 
   }
   }
   else
   else
Line 731: Line 723:
function ToWither()
function ToWither()
{
{
-
document.getElementById('console').innerHTML="Waiting";
 
-
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
 
   Submenu_Handle_State = 3;
   Submenu_Handle_State = 3;
   ItemWither();
   ItemWither();
Line 808: Line 798:
     }
     }
   }
   }
-
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+' '+i+"<br />";
 
}
}
</script>
</script>
<div id="text-body">
<div id="text-body">
</html>
</html>

Revision as of 15:31, 10 September 2012