Team:BIT/index.js
From 2014.igem.org
Line 122: | Line 122: | ||
}); | }); | ||
}); | }); | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- |
Revision as of 13:33, 21 August 2014
// JavaScript Document /*横向二级导航*/ $(document).ready(function(){ $('ul.one').hide();
//Open Menu $('.nav li').hover( function(){ var openMenu= $(this).children('ul.one'); $(openMenu).show(); }, function(){ var openMenu= $(this).children('ul.one'); $(openMenu).hide(); });
//Open Sub Menu /* $('.one#sub-menu').css({ 'left':'80%', 'top':'0' }); $('.one li').hover( function(){ var subMenu=$(this).children('.one#sub-menu'); $(subMenu).css({ 'left':'100%', 'top':'10%', }) });*/
});
/*图片变色*/
$(document).ready(function(){
$("#project").mouseover(function(){ $("#project").attr("src","");
$("#tooltip1").css("margin-top",50); $("#tooltip1").css("margin-left",150); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#project").mouseout(function(){ $("#project").attr("src",""); });
}); $(document).ready(function(){
$("#team").mouseover(function(){ $("#team").attr("src","");
$("#tooltip2").css("margin-top",-40); $("#tooltip2").css("margin-left",430); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#team").mouseout(function(){ $("#team").attr("src","");
});
}); $(document).ready(function(){
$("#notebook").mouseover(function(){ $("#notebook").attr("src","");
$("#tooltip6").css("margin-top",380); $("#tooltip6").css("margin-left",100); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#notebook").mouseout(function(){ $("#notebook").attr("src",""); });
}); $(document).ready(function(){
$("#human").mouseover(function(){ $("#human").attr("src","");
$("#tooltip4").css("margin-top",580); $("#tooltip4").css("margin-left",700); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#human").mouseout(function(){ $("#human").attr("src",""); });
}); $(document).ready(function(){
$("#inter").mouseover(function(){ $("#inter").attr("src","");
$("#tooltip5").css("margin-top",360); $("#tooltip5").css("margin-left",700); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#inter").mouseout(function(){ $("#inter").attr("src",""); });
}); $(document).ready(function(){
$("#model").mouseover(function(){ $("#model").attr("src","");
$("#tooltip7").css("margin-top",480); $("#tooltip7").css("margin-left",450); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#model").mouseout(function(){ $("#model").attr("src",""); });
}); $(document).ready(function(){
$("#device").mouseover(function(){ $("#device").attr("src","");
$("#tooltip3").css("margin-top",50); $("#tooltip3").css("margin-left",680); $("#tip").html("to amplifier then and brought the amplifier into operation. Thus the amplifier would produce high massi"); });
$("#device").mouseout(function(){ $("#device").attr("src",""); });
});
/*横向导航*/
$(document).ready(function(){
$(".nav li").mouseover(function(){
$(this).css("background","rgba(255,255,255,0.5)")
});
$(".nav li").mouseout(function(){
$(this).css("background","none")
});
});