Template:Slider
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
+ | |||
<html> | <html> | ||
<body> | <body> | ||
Line 82: | Line 83: | ||
} | } | ||
}, | }, | ||
+ | function(){ | ||
+ | switch($(this).attr("class")){ | ||
+ | case "thumb_p": | ||
+ | $(this).attr("src",d+"https://static.igem.org/mediawiki/2014/a/ab/PoznanSoft_down.png"); | ||
+ | break; | ||
+ | case "thumb_num": | ||
+ | if(parseInt($(this).attr("alt")) != w){ | ||
+ | $(this).attr("src",d+"https://static.igem.org/mediawiki/2014/c/c1/Carousel_circle_normal.png"); | ||
+ | } | ||
+ | break; | ||
+ | case "thumb_n": | ||
+ | $(this).attr("src",d+"https://static.igem.org/mediawiki/2014/9/97/Arrow_r.png"); | ||
+ | break; | ||
+ | } | ||
+ | } | ||
); | ); | ||
x.find(".thumb_box").children("span").click( | x.find(".thumb_box").children("span").click( |
Revision as of 00:27, 18 October 2014