Template:Lyon-INSA/homeCss
From 2012.igem.org
(Difference between revisions)
Line 286: | Line 286: | ||
<script> | <script> | ||
- | var | + | var btnClicked; |
$(".menuprinc").mouseout(function(){ | $(".menuprinc").mouseout(function(){ | ||
Line 320: | Line 320: | ||
$("#teamtown").click( | $("#teamtown").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
Line 328: | Line 328: | ||
$("#project").click( | $("#project").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
Line 336: | Line 336: | ||
$("#collaboration").click( | $("#collaboration").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
Line 345: | Line 345: | ||
$("#lab").click( | $("#lab").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
Line 354: | Line 354: | ||
$("#human").click( | $("#human").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); | ||
Line 363: | Line 363: | ||
$("#result").click( | $("#result").click( | ||
function(){ | function(){ | ||
- | + | btnClicked = $(this).attr('id'); | |
$(".menuprinc").css("background-position","-50px -50px"); | $(".menuprinc").css("background-position","-50px -50px"); | ||
$(".sousMenu").hide(); | $(".sousMenu").hide(); |
Revision as of 11:47, 20 October 2012