Team:Groningen/DesignTest
From 2012.igem.org
(Difference between revisions)
Line 287: | Line 287: | ||
<span>sponsors</span> | <span>sponsors</span> | ||
</a> | </a> | ||
- | + | ||
<img id="img1" img src="https://static.igem.org/mediawiki/2012/e/e4/Groningen2012_AD_20120802_WindmillArms.png" width="120"height="104" /> | <img id="img1" img src="https://static.igem.org/mediawiki/2012/e/e4/Groningen2012_AD_20120802_WindmillArms.png" width="120"height="104" /> | ||
- | |||
- | |||
</script> | </script> | ||
Line 305: | Line 303: | ||
$("ul#navigation").mouseenter(function(){ | $("ul#navigation").mouseenter(function(){ | ||
cog = 1; | cog = 1; | ||
- | |||
}); | }); | ||
$("ul#navigation").mouseleave(function(){ | $("ul#navigation").mouseleave(function(){ | ||
cog = 0; | cog = 0; | ||
- | + | angle = 0; | |
}); | }); | ||
$("li#menuhome").mouseenter(function(){ | $("li#menuhome").mouseenter(function(){ | ||
Line 331: | Line 328: | ||
$("li#menusponsors").mouseenter(function(){ | $("li#menusponsors").mouseenter(function(){ | ||
target = "#cogbigsponsors"; | target = "#cogbigsponsors"; | ||
- | + | ||
- | + | ||
- | + | ||
}); | }); | ||
}); | }); | ||
Line 339: | Line 334: | ||
var cogangle = 0; | var cogangle = 0; | ||
var cog = 0; | var cog = 0; | ||
- | |||
var angle = 0; | var angle = 0; | ||
var target = ".cogbig"; | var target = ".cogbig"; | ||
- | |||
setInterval(function(){ | setInterval(function(){ | ||
- | |||
cogangle-=cog; | cogangle-=cog; | ||
$(target).rotate(cogangle); | $(target).rotate(cogangle); | ||
- | + | if (target=="#cogbigsponsors") | |
+ | { | ||
+ | $("#img1").rotate(-cogangle); | ||
+ | } | ||
+ | |||
},30); | },30); | ||
</script> | </script> |
Revision as of 14:16, 18 August 2012