Team:AUC TURKEY
From 2013hs.igem.org
(Difference between revisions)
Line 18: | Line 18: | ||
var normal=["https://static.igem.org/mediawiki/2013hs/2/25/AUC_Turkey_Project.png","https://static.igem.org/mediawiki/2013hs/e/e8/AUC_Turkey_iGEMism.png","https://static.igem.org/mediawiki/2013hs/9/9f/AUC_Turkey_Flash_Game.png","https://static.igem.org/mediawiki/2013hs/f/fe/AUC_Turkey_Embassies.png","https://static.igem.org/mediawiki/2013hs/3/34/AUC_Turkey_Surveys.png","https://static.igem.org/mediawiki/2013hs/d/d0/AUC_Turkey_iGEMismTV.png"]; | var normal=["https://static.igem.org/mediawiki/2013hs/2/25/AUC_Turkey_Project.png","https://static.igem.org/mediawiki/2013hs/e/e8/AUC_Turkey_iGEMism.png","https://static.igem.org/mediawiki/2013hs/9/9f/AUC_Turkey_Flash_Game.png","https://static.igem.org/mediawiki/2013hs/f/fe/AUC_Turkey_Embassies.png","https://static.igem.org/mediawiki/2013hs/3/34/AUC_Turkey_Surveys.png","https://static.igem.org/mediawiki/2013hs/d/d0/AUC_Turkey_iGEMismTV.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"]; | 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 firstTime=0; | ||
function onBefore(curr, next, opts) { | function onBefore(curr, next, opts) { | ||
for(var i=0;i<6;i++) | for(var i=0;i<6;i++) | ||
Line 23: | Line 24: | ||
$("#links a:eq("+i+") img").attr("src",normal[i]).fadeTo(400,0.8); | $("#links a:eq("+i+") img").attr("src",normal[i]).fadeTo(400,0.8); | ||
} | } | ||
- | $("#links a:eq("+((opts.currSlide+ | + | $("#links a:eq("+((opts.currSlide+firstTime)%6)+") img").attr("src",active[(opts.currSlide+firstTime)%6]).fadeTo(400,1); |
+ | firstTime=1; | ||
} | } | ||
$(function() { | $(function() { |
Revision as of 14:19, 17 June 2013