Team:XMU Software/Outreach/js

From 2013.igem.org

Revision as of 03:29, 27 October 2013 by LiKaiQiu (Talk | contribs)

function movetotop(){ h = window.innerHeight-180; t = $("#xmu_body").scrollTop(); if(t > h){

$('#outreach6').show(); }else{

$('#outreach6').hide(); } } $(document).ready(function(e) {

movetotop(); $('#outreach6').click(function(){ $("#xmu_body").scrollTop(0); })

}); function navi1(){

document.getElementById("outreach1").style.background="#ffd200";

} function navi11(){

document.getElementById("outreach1").style.background="#b3d465";

} function navi2(){

document.getElementById("outreach2").style.background="#ffd200";

} function navi21(){

document.getElementById("outreach2").style.background="#b3d465";

} function navi3(){

document.getElementById("outreach3").style.background="#ffd200";

} function navi31(){

document.getElementById("outreach3").style.background="#b3d465";

} function navi4(){

document.getElementById("outreach4").style.background="#ffd200";

} function navi41(){

document.getElementById("outreach4").style.background="#b3d465";

} function navi5(){

document.getElementById("outreach5").style.background="#ffd200";

} function navi51(){

document.getElementById("outreach5").style.background="#b3d465";

} function navi6(){

document.getElementById("outreach6").style.background="#ffd200";

} function navi61(){

document.getElementById("outreach6").style.background="#b3d465";

}