Template:Stockholm/Top9

From 2010.igem.org

(Difference between revisions)
m
m
Line 3: Line 3:
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
-
<style type="text/css">
+
  <script type="text/javascript">
-
.menutitle{
+
  $(document).ready(function(){
-
cursor:pointer;
+
-
margin-bottom: 5px;
+
-
background-color:#ECECFF;
+
-
color:#000000;
+
-
width:140px;
+
-
padding:2px;
+
-
text-align:center;
+
-
font-weight:bold;
+
-
float:left;
+
-
/*/*/border:1px solid #000000;/* */
+
-
}
+
-
#masterdiv {
+
-
width:800px;
+
-
}
+
-
.submenu{
+
-
margin-bottom: 0.5em;
+
-
text-align:left;
+
-
}
+
-
</style>
+
-
<script type="text/javascript">
+
    $(function(){
 +
    var path = location.pathname.substring(1);
 +
    var last = path.split("/");
 +
    if ( last[1] ) {
 +
      $('#headover ul li a[href*="' + last[1] + '"]').addClass("curlink").css("color","#ea8828");
 +
    }
 +
    else {
 +
      $('#headover ul li a[href$="' + path + '"]').addClass("curlink").css("color","#ea8828");
 +
    }
 +
    });
-
/***********************************************
+
    $('#menuback').mouseover(function() {
-
* Switch Menu script- by Martial B of http://getElementById.com/
+
    $('#headover').stop().animate({height:'150px',top:'0px'},1000);
-
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
+
    });
-
* Visit http://www.dynamicdrive.com/ for full source code
+
-
***********************************************/
+
-
var persistmenu="yes" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc)
+
    $('#menu').mouseleave(function() {
-
var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only
+
    $('.listhead').not('.curlink').css("color","#ffffff");
 +
    $('.listmain').not('.curlink').css("color","#dddddd");
 +
    $('#headover ul').fadeOut(500);
 +
    $('#headover').stop().animate({height:'50px',top:'100px'},1000);
 +
    });
-
if (document.getElementById){ //DynamicDrive.com change
+
    $('.listhead').mouseover(function(){
-
document.write('<style type="text/css">\n')
+
    $('.listhead').not('.curlink').css("color","#ffffff");
-
document.write('.submenu{display: none;}\n')
+
    $(this).css("color","#444444");
-
document.write('</style>\n')
+
    $('#headover ul').css("display","none");
-
}
+
    var vActive = $(this).attr("id");
 +
    $('.'+vActive).stop(true, true).fadeIn(500);
 +
    });
-
function SwitchMenu(obj){
+
    $('.listmain').mouseover(function(){
-
if(document.getElementById){
+
    $('.listmain').not('.curlink').css("color","#dddddd");
-
var el = document.getElementById(obj);
+
    $(this).css("color","#ea8828");
-
var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
+
    });
-
if(el.style.display != "block"){ //DynamicDrive.com change
+
-
for (var i=0; i<ar.length; i++){
+
-
if (ar[i].className=="submenu") //DynamicDrive.com change
+
-
ar[i].style.display = "none";
+
-
}
+
-
el.style.display = "block";
+
-
}else{
+
-
el.style.display = "none";
+
-
}
+
-
}
+
-
}
+
-
function get_cookie(Name) {  
+
    $('#headover').mouseleave(function(){
-
var search = Name + "="
+
    $('.listmain').not('.curlink').css("color","#dddddd");
-
var returnvalue = "";
+
    });
-
if (document.cookie.length > 0) {
+
-
offset = document.cookie.indexOf(search)
+
-
if (offset != -1) {
+
-
offset += search.length
+
-
end = document.cookie.indexOf(";", offset);
+
-
if (end == -1) end = document.cookie.length;
+
-
returnvalue=unescape(document.cookie.substring(offset, end))
+
-
}
+
-
}
+
-
return returnvalue;
+
-
}
+
-
function onloadfunction(){
+
  });
-
if (persistmenu=="yes"){
+
  </script>
-
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
+
  <style type="text/css">
-
var cookievalue=get_cookie(cookiename)
+
-
if (cookievalue!="")
+
-
document.getElementById(cookievalue).style.display="block"
+
-
}
+
-
}
+
-
function savemenustate(){
+
  a:link {color:#20548f;}
-
var inc=1, blockid=""
+
  a:visited {color:#20548f;}
-
while (document.getElementById("sub"+inc)){
+
  a:hover {color:#20548f;}
-
if (document.getElementById("sub"+inc).style.display=="block"){
+
  a:active {color:#20548f;}
-
blockid="sub"+inc
+
-
break
+
-
}
+
-
inc++
+
-
}
+
-
var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname
+
-
var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid
+
-
document.cookie=cookiename+"="+cookievalue
+
-
}
+
-
if (window.addEventListener)
+
  #top-section {
-
window.addEventListener("load", onloadfunction, false)
+
  background-color: #ffffff;
-
else if (window.attachEvent)
+
  height: 100px;
-
window.attachEvent("onload", onloadfunction)
+
  border: none;
-
else if (document.getElementById)
+
  width:910px;
-
window.onload=onloadfunction
+
  height:20px}
-
if (persistmenu=="yes" && document.getElementById)
+
  #p-logo {
-
window.onunload=savemenustate
+
  position: absolute;
 +
  display: none;}
-
</script>
+
  #search-controls {
-
</head>
+
  display: none;}
-
<body>
+
-
  <ul id="masterdiv">
+
-
<li class="menutitle" onclick="SwitchMenu('sub1')">Site Menu
+
  #menubar.left-menu {
-
<span class="submenu" id="sub1">
+
  position: absolute;
-
- <a href="new.htm">What's New</a><br>
+
  top:0px;
-
- <a href="hot.htm">What's hot</a><br>
+
  left:0px;}
-
- <a href="revised.htm">Revised Scripts</a><br>
+
-
- <a href="morezone/">More Zone</a>
+
-
</span>
+
-
</li>
+
-
<li class="menutitle" onclick="SwitchMenu('sub2')">FAQ/Help
+
  #menubar.right-menu {
-
<span class="submenu" id="sub2">
+
  position: absolute;
-
- <a href="notice.htm">Usage Terms</a><br>
+
  top:0px;
-
- <a href="faqs.htm">DHTML FAQs</a><br>
+
  right:0px;}
-
- <a href="help.htm">Scripts FAQs</a>
+
-
</span>
+
-
</li>
+
-
<li class="menutitle" onclick="SwitchMenu('sub3')">Help Forum
 
-
<span class="submenu" id="sub3">
 
-
- <a href="http://www.codingforums.com">Coding Forums</a><br>
 
-
</span>
 
-
<li class="menutitle" onclick="SwitchMenu('sub4')">Cool Links
+
  #menubar a:active,#menubar a:hover,#menubar a:link,#menubar a:visited {
-
<span class="submenu" id="sub4">
+
  color: #000000;}
-
- <a href="http://www.javascriptkit.com">JavaScript Kit</a><br>
+
-
- <a href="http://www.freewarejava.com">Freewarejava</a><br>
+
-
- <a href="http://www.cooltext.com">Cool Text</a><br>
+
-
- <a href="http://www.google.com">Google.com</a>
+
-
</span>
+
-
</li>
+
-
</ul>
+
  #footer-box {
 +
  width:900px;}
 +
  body {
 +
  background-color: #555555}
 +
  .firstHeading {
 +
    display: none;}
 +
  #content {
 +
    width: 900px;
 +
    border: none;
 +
    font-family: helvetica, arial, sans-serif;
 +
    color: #555555}
 +
 +
  #title {
 +
    width:900px;
 +
    height:55px;
 +
    position: relative;
 +
    top: 0px;
 +
    left: 0px;}
 +
 +
  #paralogo {
 +
    width:400px;
 +
    height:50px;
 +
    position: relative;
 +
    top: 0px;
 +
    left: 20px;}
 +
 +
  #implogo {
 +
    width:200px;
 +
    height:50px;
 +
    position: absolute;
 +
    top: 0px;
 +
    left: 435px;}
 +
 +
  #igemlogo {
 +
    width:84px;
 +
    height:50px;
 +
    position:absolute;
 +
    top:0px;
 +
    left:615px;}
 +
 +
  #csynbilogo {
 +
    width:205px;
 +
    height:50px;
 +
    position:absolute;
 +
    top:0px;
 +
    left:695px;}
 +
 +
  #menu {
 +
    width:900px;
 +
    height:150px;
 +
    position: relative;
 +
    top: 20px;
 +
    left: 0px;}
 +
 +
  #menuback {
 +
    width:100px;
 +
    height:150px;
 +
    position: absolute;
 +
    top: 0px;
 +
    left: 0px;
 +
    background-color: #ea8828}
 +
 +
 
 +
 +
  a {
 +
    outline:none;}
 +
 +
  #headtit{
 +
    font-family: helvetica, arial, sans-serif;
 +
    font-size: 1.2em;
 +
    color: #ffffff;
 +
    position: absolute;
 +
    top: 0.5em;
 +
    right: 1.4em;}
 +
 +
  .dark{
 +
    color: #dddddd;}
 +
 +
  .highlight{
 +
    color: #ea8828;}
 +
 +
  #menulist{
 +
    position: absolute;
 +
    top: 16px;
 +
    left: 3px;
 +
    list-style: none;}
 +
 +
  #menulist li{
 +
    height: 30px;
 +
    }
 +
 +
  #menulist li a{
 +
    font-weight: 100;
 +
    font-size: 1.2em;
 +
    text-decoration: none;
 +
    font-family: helvetica, arial, sans-serif;
 +
    color: #ffffff;}
 +
 +
  #headover ul{
 +
    list-style: none;
 +
    display: none;
 +
    position: absolute;
 +
    top: 1.2em;
 +
    left: 0.2em;
 +
    }
 +
 +
  #headover ul ul{
 +
    position: absolute;
 +
    top:-0.2em;
 +
    left: 10em;}
 +
 +
  #headover ul li{
 +
    height: 2.4em;
 +
    }
 +
 +
  #headover ul li a{
 +
    font-weight: 100;
 +
    font-size: 1.2em;
 +
    text-decoration: none;
 +
    font-family: helvetica, arial, sans-serif;
 +
    color: #dddddd;}
 +
 +
  </style>
 +
</head>
 +
<body>
 +
  <div id='title'>
 +
  <div id='paralogo'>
 +
    <a href='https://2010.igem.org/Team:Imperial_College_London'>
 +
    <img src='https://static.igem.org/mediawiki/2010/9/9f/ICparalogo.png'>
 +
    </a>
 +
  </div>
 +
  <div id='implogo'>
 +
    <a href='http://www3.imperial.ac.uk/'>
 +
    <img src='https://static.igem.org/mediawiki/2010/8/84/ICLlogo1.png'>
 +
    </a>
 +
  </div>
 +
  <div id='igemlogo'>
 +
    <a href='https://2010.igem.org/Main_Page'>
 +
    <img src='https://static.igem.org/mediawiki/2010/7/7d/ICLlogo2.png'>
 +
    </a>
 +
  </div>
 +
  <div id='csynbilogo'>
 +
    <a href='http://www3.imperial.ac.uk/syntheticbiology'>
 +
    <img src='https://static.igem.org/mediawiki/2010/7/7f/ICLlogo3.png'>
 +
    </a>
 +
  </div>
 +
  </div>
 +
  <div id='menu'>
 +
  <div id='menuback'>
 +
    <ul id='menulist'>
 +
    <li><a href='#' class='listhead' id='project'>Project</a></li>
 +
    <li><a href='#' class='listhead' id='plan'>Plan</a></li>
 +
    <li><a href='#' class='listhead' id='results'>Results</a></li>
 +
    <li><a href='#' class='listhead' id='extra'>Extras</a></li>
 +
    </ul>
 +
  </div>
 +
  <div id='headpic'>
 +
    <div id='headover'>
 +
    <p id='headtit'>Parasight<span class='dark'> &nbsp;<span class='highlight'>|</span>&nbsp;&nbsp;Parasite detection with a rapid response</span></p>
 +
    <ul class='project'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London' class='listmain' id='results'>Overview</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Modules' class='listmain' id='results'>Modules</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Diary/Week_One' class='listmain' id='project'>Diary</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Human_Practices/Workshop' class='listmain' id='results'>Human Practices</a></li>
 +
      <ul class='project'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Chassis' class='listmain' id='results'>Chassis</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Schistosoma' class='listmain' id='results'>Schistosoma</a></li>     
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Research' class='listmain' id='results'>Research</a></li>
 +
      </ul>
 +
    </ul>
 +
    <ul class='plan'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Strategy' class='listmain' id='results'>Strategy</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Modelling' class='listmain' id='results'>Modelling</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Protocol' class='listmain' id='results'>Lab Protocols</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Lab_Diaries/XylE_team' class='listmain' id='results'>Lab Diaries</a></li>
 +
      <ul class='plan'>
 +
      </ul>
 +
    </ul>
 +
    <ul class='results'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Results' class='listmain' id='results'>Results</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Parts' class='listmain' id='results'>Parts</a></li>
 +
    </ul>
 +
    <ul class='extra'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/The_Team' class='listmain' id='results'>The Team</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Media/Videos' class='listmain' id='results'>Media</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/School_Workshops' class='listmain' id='results'>School Workshops</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Software_Tool' class='listmain' id='results'>Software Tool</a></li>
 +
      <ul class='extra'>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Acknowledgments' class='listmain' id='results'>Acknowledgments</a></li>
 +
      <li><a href='https://2010.igem.org/Team:Imperial_College_London/Brainstorming' class='listmain' id='results'>Brainstorming</a></li>
 +
      </ul>
 +
    </ul>
 +
    </div>
 +
  </div>
 +
  </div>
  </body>
  </body>
</html>
</html>

Revision as of 13:58, 23 October 2010