Team:AUC TURKEY
From 2013hs.igem.org
(Difference between revisions)
Line 19: | Line 19: | ||
var active=["https://static.igem.org/mediawiki/2013hs/1/1a/AUC_Turkey_Project_Active.png","https://static.igem.org/mediawiki/2013hs/a/a1/AUC_Turkey_iGEMism_Active.png","https://static.igem.org/mediawiki/2013hs/9/95/AUC_Turkey_Flash_Game_Active.png","https://static.igem.org/mediawiki/2013hs/c/c6/AUC_Turkey_Embassies_Active.png","https://static.igem.org/mediawiki/2013hs/f/fc/AUC_Turkey_Surveys_Active.png","https://static.igem.org/mediawiki/2013hs/b/b9/AUC_Turkey_iGEMismTV_Active.png"]; | var active=["https://static.igem.org/mediawiki/2013hs/1/1a/AUC_Turkey_Project_Active.png","https://static.igem.org/mediawiki/2013hs/a/a1/AUC_Turkey_iGEMism_Active.png","https://static.igem.org/mediawiki/2013hs/9/95/AUC_Turkey_Flash_Game_Active.png","https://static.igem.org/mediawiki/2013hs/c/c6/AUC_Turkey_Embassies_Active.png","https://static.igem.org/mediawiki/2013hs/f/fc/AUC_Turkey_Surveys_Active.png","https://static.igem.org/mediawiki/2013hs/b/b9/AUC_Turkey_iGEMismTV_Active.png"]; | ||
$(function() { | $(function() { | ||
- | $("#pics").cycle(); | + | function onAfter(curr, next, opts) |
+ | { | ||
+ | for(var i=0;i<6;i++) | ||
+ | { | ||
+ | var sliderDot=$(".slider-dot-container div:eq("+i+")"); | ||
+ | sliderDot.removeClass("active-dot"); | ||
+ | } | ||
+ | $(".slider-dot-container div:eq("+opts.currSlide+")").addClass("active-dot"); | ||
+ | } | ||
+ | $("#pics").cycle({after: onAfter}); | ||
for(var i=0;i<6;i++) | for(var i=0;i<6;i++) | ||
{ | { | ||
+ | var sliderDot=$(".slider-dot-container div:eq("+i+")"); | ||
+ | sliderDot.attr("num",i); | ||
+ | sliderDot.click(function(){ | ||
+ | $("#pics").cycle($(this).attr("num")); | ||
+ | }); | ||
var link=$("#links a:eq("+i+") img"); | var link=$("#links a:eq("+i+") img"); | ||
link.attr("num",i); | link.attr("num",i); |
Revision as of 12:51, 20 June 2013