IGEM:IMPERIAL/2009/Sandbox

=Imperial College iGEM 09=

Menu 1


function TableauDynamique(e){ //recupère le deplacement du curseur sur l'axe des y  y = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;

//remarque: si ajout de ligne dans le menu, penser à modifier le calcul si nécessaire var taille="";

if (y<250){ taille =Math.floor(y/110)*100; } else if (y<750){ taille =Math.floor(y/110)*100+50; } else if (y<850){ taille =Math.floor(y/110)*100+75; } else{ taille =Math.floor(y/110)*100+100; }  document.getElementById("cellule").style.height=taille; } if (navigator.appName.substring(0,3) == "Net") document.captureEvents(Event.MOUSEMOVE); document.onmousemove = TableauDynamique;



Menu 2
   About

 This lightweight (1.2 KB) JavaScript accordion can easily be customized to integrate with any website. For more information visit leigeber.com.  Instructions  To initialize an accordion use the following code:

The init function takes 3 parameters: the id of the "dl", the location of the initially expanded section (optional) and the class for the active header (optional).  Licensing &amp; Support</dt> 

This script is provided as-is with no warranty or guarantee. It is available at no cost for any project, non-commercial or commercial. Paid support is available by <a href="http://www.leigeber.com/contact/">clicking here</a>. </dd> </dl> <dl class="accordion2" id="slider2"> About</dt> 

This lightweight (1.2 KB) JavaScript accordion can easily be customized to integrate with any website. For more information visit <a href="http://www.leigeber.com">leigeber.com</a>/ </dd> Instructions</dt>  To initialize an accordion use the following code:

The init function takes 3 parameters: the id of the "dl", the location of the initially expanded section (optional) and the class for the active header (optional). </dd> Licensing &amp; Support</dt>  This script is provided as-is with no warranty or guarantee. It is available at no cost for any project, non-commercial or commercial. Paid support is available by <a href="http://www.leigeber.com/contact/">clicking here</a>.

</dd> </dl>

<script type="text/javascript"> var slider1=new accordion.slider("slider1"); slider1.init("slider");

var slider2=new accordion.slider("slider2"); slider2.init("slider2",0,"open");