//alert("Hello world JS file"); document.getElementById("splashpage").onload = function() {myFunction()}; function myFunction() { var brainimg = document.getElementById('brainimg'); // change to match image ID var imageDir = 'images\stories\cnc\brain'; // change to match images folder var delayInSeconds = 16; // set number of seconds delay // list image names var images = ['http://www.psych.uic.edu/images/stories/cnc/brain/locations.png','http://www.psych.uic.edu/images/stories/cnc/brain/research.png', 'http://www.psych.uic.edu/images/stories/cnc/brain/participate.png', 'http://www.psych.uic.edu/images/stories/cnc/brain/getInvolved.png', 'http://www.psych.uic.edu/images/stories/cnc/brain/publications.png','http://www.psych.uic.edu/images/stories/cnc/brain/people.png', 'http://www.psych.uic.edu/images/stories/cnc/brain/training.png', 'http://www.psych.uic.edu/images/stories/cnc/brain/downloads.png']; // don't change below this line var num = 0; var changeImage = function() { var len = images.length; brainimg.src = images[num++]; if (num == len) { num = 0; } }; setInterval(changeImage, delayInSeconds * 100); } function mouseOverDownloads() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/downloads.png" ; } function showbrain() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/brain.png"; } function mouseOverLocations() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/locations.png" ; } function mouseOverResearch() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/research.png" ; } function mouseOverPResearch() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/participate.png" ; } function mouseOverPublications() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/publications.png" ; } function mouseOverResearch() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/research.png" ; } function mouseOvertraining() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/training.png" ; } function mouseOverpeople() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/people.png" ; } function mouseOverGetInvolved() { document.getElementById("brainimg").src = "http://www.psych.uic.edu/images/stories/cnc/brain/getInvolved.png" ; } " /> www.psych.uic.edu

www.psych.uic.edu

Articles

Cognitive Neuroscience Center

 


downloadslocationspeoplepublicationsresearchParticipate in ResearchtrainingGet Involved
You are here: Home