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: | + | <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: | + | <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"> | ||
- | + | 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: | + | <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: | + | <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> | ||
- | |||
- | |||
<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, | + | 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() | ||
{ | { | ||
- | |||
- | |||
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; | ||
- | |||
} | } | ||
else | else | ||
Line 698: | Line 693: | ||
function ItemWither() | function ItemWither() | ||
{ | { | ||
- | |||
- | |||
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; | ||
} | } | ||
- | |||
} | } | ||
else | else | ||
Line 731: | Line 723: | ||
function ToWither() | function ToWither() | ||
{ | { | ||
- | |||
- | |||
Submenu_Handle_State = 3; | Submenu_Handle_State = 3; | ||
ItemWither(); | ItemWither(); | ||
Line 808: | Line 798: | ||
} | } | ||
} | } | ||
- | |||
} | } | ||
</script> | </script> | ||
<div id="text-body"> | <div id="text-body"> | ||
</html> | </html> |
Revision as of 15:31, 10 September 2012