Team:UC Davis/Projects
From 2010.igem.org
(Difference between revisions)
Line 47: | Line 47: | ||
{ | { | ||
case 1: | case 1: | ||
- | $("#projectContent").fadeOut("slow", function() { document.getElementById("projectContent").innerHTML =spatialContent;}).fadeIn("slow"); | + | $("#projectContent").stop(true, true).fadeOut("slow", function() { document.getElementById("projectContent").innerHTML =spatialContent;}).fadeIn("slow"); |
- | $("#projectBanner").fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/9/9d/SObanner2.jpg' width='689px' height='100px'>";}).fadeIn("slow"); | + | $("#projectBanner").stop(true, true).fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/9/9d/SObanner2.jpg' width='689px' height='100px'>";}).fadeIn("slow"); |
break; | break; | ||
case 2: | case 2: | ||
- | $("#projectContent").fadeOut("slow", function() { document.getElementById("projectContent").innerHTML = pHContent;}).fadeIn("slow"); | + | $("#projectContent").stop(true, true).fadeOut("slow", function() { document.getElementById("projectContent").innerHTML = pHContent;}).fadeIn("slow"); |
- | $("#projectBanner").fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/a/a8/PhBanner.jpg' width='689px'' height='100px'>";}).fadeIn("slow"); | + | $("#projectBanner").stop(true, true).fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/a/a8/PhBanner.jpg' width='689px'' height='100px'>";}).fadeIn("slow"); |
break; | break; | ||
case 3: | case 3: | ||
- | $("#projectContent").fadeOut("slow", function() { document.getElementById("projectContent").innerHTML = crosstalkContent;}).fadeIn("slow"); | + | $("#projectContent").stop(true, true).fadeOut("slow", function() { document.getElementById("projectContent").innerHTML = crosstalkContent;}).fadeIn("slow"); |
- | $("#projectBanner").fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/b/b1/CrosstalkBanner.jpg' width='689px' height='100px'>";}).fadeIn("slow"); | + | $("#projectBanner").stop(true, true).fadeOut("slow", function() { document.getElementById("projectBanner").innerHTML = "<img src='https://static.igem.org/mediawiki/2010/b/b1/CrosstalkBanner.jpg' width='689px' height='100px'>";}).fadeIn("slow"); |
break; | break; | ||
default: | default: |
Revision as of 12:39, 17 October 2010
|
|
|