/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Mike Hudson :: http://www.afrozeus.com */
function setupFadeLinks() {
arrFadeTitles[0] = "Key powers push for tougher sanctions against Iran (AFP)";
arrFadeLinks[0] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/key_powers_push_for_tougher_sanctions_against_iran";
arrFadeTitles[1] = "ADV: Win a Apple MacBook 13-inch Notebook Computer Now";
arrFadeLinks[1] = "http://tickermyfeed.com/adv.php/NTk=";
arrFadeTitles[2] = "Super Bowl is most watched TV show ever (AP)";
arrFadeLinks[2] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/super_bowl_is_most_watched_tv_show_ever";
arrFadeTitles[3] = "ADV: Add a Breaking News Ticker to Your Web Browser";
arrFadeLinks[3] = "http://tickermyfeed.com/adv.php/NTg=";
arrFadeTitles[4] = "Toyota to recall new Prius, other hybrids in Japan (AFP)";
arrFadeLinks[4] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/toyota_to_recall_new_prius_other_hybrids_in_japan";
arrFadeTitles[5] = "Workers accounted for at Connecticut blast (Reuters)";
arrFadeLinks[5] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/workers_accounted_for_at_connecticut_blast";
arrFadeTitles[6] = "Weather closes government offices a second day (Reuters)";
arrFadeLinks[6] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/weather_closes_government_offices_a_second_day";
arrFadeTitles[7] = "U.S. missionary in Haiti says trusts God to free her (Reuters)";
arrFadeLinks[7] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/us_missionary_in_haiti_says_trusts_god_to_free_her";
arrFadeTitles[8] = "John Murtha, defense appropriations chair, dies (Reuters)";
arrFadeLinks[8] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/john_murtha_defense_appropriations_chair_dies";
arrFadeTitles[9] = "Toyota to recall 436,000 hybrids globally (Reuters)";
arrFadeLinks[9] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/toyota_to_recall_436000_hybrids_globally";
arrFadeTitles[10] = "Rep. John Murtha, voice for veterans, dies at 77 (AP)";
arrFadeLinks[10] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/rep_john_murtha_voice_for_veterans_dies_at_77";
arrFadeTitles[11] = "Iran moves closer to nuke warhead capacity (AP)";
arrFadeLinks[11] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/iran_moves_closer_to_nuke_warhead_capacity";
arrFadeTitles[12] = "Seats at a premium on planes, trains out of DC (AP)";
arrFadeLinks[12] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/seats_at_a_premium_on_planes_trains_out_of_dc";
arrFadeTitles[13] = "Ukraine awaits Tymoshenko concession or legal fight (Reuters)";
arrFadeLinks[13] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/ukraine_awaits_tymoshenko_concession_or_legal_fight";
arrFadeTitles[14] = "Lawyer: Wife mulled extorting Ill. murder suspect (AP)";
arrFadeLinks[14] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/lawyer_wife_mulled_extorting_ill_murder_suspect";
}
window.onload = Fadewl;
// You can also play with these variables to control fade speed, fade color, and how fast the colors jump.
var m_FadeOut = 255;
var m_FadeIn=0;
var m_Fade = 0;
var m_FadeStep = 3;
var m_FadeWait = 2000;
var m_bFadeOut = true;
var m_iFadeInterval;
var arrFadeLinks;
var arrFadeTitles;
var arrFadeCursor = 0;
var arrFadeMax;
function Fadewl() {
m_iFadeInterval = setInterval(fade_ontimer, 10);
arrFadeLinks = new Array();
arrFadeTitles = new Array();
setupFadeLinks();
arrFadeMax = arrFadeLinks.length-1;
setFadeLink();
}
function setFadeLink() {
var ilink = document.getElementById("fade_link");
ilink.innerHTML = arrFadeTitles[arrFadeCursor];
ilink.href = arrFadeLinks[arrFadeCursor];
}
function fade_ontimer() {
if (m_bFadeOut) {
m_Fade+=m_FadeStep;
if (m_Fade>m_FadeOut) {
arrFadeCursor++;
if (arrFadeCursor>arrFadeMax)
arrFadeCursor=0;
setFadeLink();
m_bFadeOut = false;
}
} else {
m_Fade-=m_FadeStep;
if (m_Fadem_FadeIn))
ilink.style.color = "#" + ToHex(m_Fade);
}
function Faderesume() {
m_iFadeInterval = setInterval(fade_ontimer, 10);
}
function ToHex(strValue) {
try {
var result= (parseInt(strValue).toString(16));
while (result.length !=2)
result= ("0" +result);
result = result + result + result;
return result.toUpperCase();
}
catch(e)
{
}
}
document.write('');
document.write('');
document.write('');
document.write('
');
document.write('
');