Template:Team:Paris-Saclay/left-column
From 2012.igem.org
(Difference between revisions)
YohannPetiot (Talk | contribs) |
YohannPetiot (Talk | contribs) |
||
Line 18: | Line 18: | ||
function mouseOver() | function mouseOver() | ||
{ | { | ||
- | $(" | + | $("#circle").css("backgroundColor","#B9D3EE"); |
} | } | ||
function mouseOut() | function mouseOut() | ||
{ | { | ||
- | $(" | + | $("#circle").css("backgroundColor","rgb(60,60,60)"); |
} | } | ||
Line 73: | Line 73: | ||
var Article = $(this).attr("title").substring(idxArticle+1); | var Article = $(this).attr("title").substring(idxArticle+1); | ||
var linkArticle = "https://2012.igem.org/"+$(this).attr("title"); | var linkArticle = "https://2012.igem.org/"+$(this).attr("title"); | ||
- | $("ul#ltArticles").append('<li>' + '<div id="circle">'+ '<h2>'+ count + '</h2>' + '</div>' + '<a href="' + linkArticle + '">' + Article + '</a>'+ '</li>'); | + | $("ul#ltArticles").append('<li onmouseover="onmouseOver()" onmouseout="onmouseOut()" >' + '<div id="circle">'+ '<h2>'+ count + '</h2>' + '</div>' + '<a href="' + linkArticle + '">' + Article + '</a>'+ '</li>'); |
count += 1; | count += 1; | ||
} ) | } ) |
Revision as of 13:15, 21 August 2012
Follow us !