Template:Lyon-INSA/homeCss
From 2012.igem.org
(Difference between revisions)
Line 295: | Line 295: | ||
#human:hover{ | #human:hover{ | ||
background:url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat; | background:url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat; | ||
- | + | ||
} | } | ||
#collaboration:hover{ | #collaboration:hover{ | ||
Line 306: | Line 306: | ||
$(".menuprinc").click(function(){ | $(".menuprinc").click(function(){ | ||
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
+ | }); | ||
+ | |||
+ | $(".menuprinc").mouseOut(function(){ | ||
+ | $(".menuprinc").css("background-position","-50px -50px"); | ||
+ | }); | ||
+ | |||
+ | $("#human").mouseEnter(function(){ | ||
+ | $("#human").css("background-position","99px 63px"); | ||
+ | }); | ||
+ | $("#lab").mouseEnter(function(){ | ||
+ | $("#lab").css("background-position","24px 63px"); | ||
+ | }); | ||
+ | $("#project").mouseEnter(function(){ | ||
+ | $("#project").css("background-position","49px 63px"); | ||
+ | }); | ||
+ | $("#collaboration").mouseEnter(function(){ | ||
+ | $("#collaboration").css("background-position","84px 63px"); | ||
+ | }); | ||
+ | $("#result").mouseEnter(function(){ | ||
+ | $("#result").css("background-position","44px 63px"); | ||
+ | }); | ||
+ | $("#teamtown").mouseEnter(function(){ | ||
+ | $("#teamtown").css("background-position","79px 63px"); | ||
}); | }); | ||
Line 319: | Line 342: | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
$("#divproject").fadeIn(); | $("#divproject").fadeIn(); | ||
+ | $("#project").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat"); | ||
+ | $("#project").css("background-position","79px 63px"); | ||
}); | }); | ||
$("#collaboration").click( | $("#collaboration").click( | ||
Line 324: | Line 349: | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
$("#divcollabo").fadeIn(); | $("#divcollabo").fadeIn(); | ||
+ | $("#collaboration").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat"); | ||
+ | $("#collaboration").css("background-position","79px 63px"); | ||
}); | }); | ||
$("#lab").click( | $("#lab").click( | ||
Line 329: | Line 356: | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
$("#divlab").fadeIn(); | $("#divlab").fadeIn(); | ||
+ | $("#lab").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat"); | ||
+ | $("#lab").css("background-position","79px 63px"); | ||
}); | }); | ||
$("#human").click( | $("#human").click( | ||
Line 334: | Line 363: | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
$("#divhuman").fadeIn(); | $("#divhuman").fadeIn(); | ||
+ | $("#human").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat"); | ||
+ | $("#human").css("background-position","79px 63px"); | ||
}); | }); | ||
$("#result").click( | $("#result").click( | ||
Line 339: | Line 370: | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
$("#divresult").fadeIn(); | $("#divresult").fadeIn(); | ||
+ | $("#result").css("background","url('https://static.igem.org/mediawiki/2012/9/98/Fleche2.png') no-repeat"); | ||
+ | $("#result").css("background-position","79px 63px"); | ||
}); | }); | ||
Revision as of 11:26, 20 October 2012