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"]; | ||
var firstTime=0; | var firstTime=0; | ||
- | + | for(var i=0;i<6;i++) | |
- | + | { | |
- | + | ||
- | + | $("#links a:eq("+i+") img").hover( | |
- | + | function () { | |
- | $( | + | $(this).fadeTo(400,100).attr("src",active[i]); |
- | + | }, | |
- | } | + | function () { |
+ | $(this).removeClass("hover"); | ||
+ | } | ||
+ | ); | ||
+ | }; | ||
$(function() { | $(function() { | ||
- | $("#pics").cycle( | + | $("#pics").cycle(); |
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> |
Revision as of 15:31, 18 June 2013