\n'); } //here's the code for the news flasher //we are embedding the bold "News:" //in the array elements //becuase it doesn't want to format //correctly otherwise //set this one to the first clip var $textsource = 'News: Asteroid XF11 not headed for Earth after all...'; var $newsclips = new Array(); //you could, of course, make //element zero null for clarity //we are making the arrays //of dots into hyperlinks $newsclips[0] = "News: Science's Doomsday Team vs. the Asteroids..."; $newsclips[1] = "News: Mystery Minerals Formed In Fireball From Colliding Asteroid That Destroyed The Dinosaurs..."; $newsclips[2] = "News: Fireball caused rock to vaporise..."; $newsclips[3] = "News: Scientists: Asteroid impact fueled global rain of BBs..."; $newsclips[4] = "News: Meet Chris Russell, Principal Investigator for the Dawn mission..."; //initialize the counter var $textCounter = 0; function textChange(){ //find the news element document.getElementById('changer').innerHTML=$newsclips[$textCounter]; //increment the counter $textCounter++; if($textCounter == $newsclips.length){ //reset the counter $textCounter = 0; } //change every five seconds setTimeout('textChange()', 5000); }
![]() |
|||
|
News: loading...
|
/ name / home / info / login / faq / whois / contact /
©2009, Dot-Comet Creations. All rights
reserved.