/* 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] = "US losing war in Afghanistan: Taliban leader (AFP)";
arrFadeLinks[0] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/us_losing_war_in_afghanistan_taliban_leader";
arrFadeTitles[1] = "Fidel Castro says Cuban model no longer works (Reuters)";
arrFadeLinks[1] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/fidel_castro_says_cuban_model_no_longer_works";
arrFadeTitles[2] = "ADV: Win a Apple MacBook 13-inch Notebook Computer Now";
arrFadeLinks[2] = "http://tickermyfeed.com/adv.php/NTk=";
arrFadeTitles[3] = "Defiant Florida church says Koran burning to go ahead (AFP)";
arrFadeLinks[3] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/defiant_florida_church_says_koran_burning_to_go_ahead";
arrFadeTitles[4] = "Seven Mexican gunmen arrested in migrant massacre (Reuters)";
arrFadeLinks[4] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/seven_mexican_gunmen_arrested_in_migrant_massacre";
arrFadeTitles[5] = "ADV: Add a Breaking News Ticker to Your Web Browser";
arrFadeLinks[5] = "http://tickermyfeed.com/adv.php/NTg=";
arrFadeTitles[6] = "Economists cut U.S. growth forecast again (Reuters)";
arrFadeLinks[6] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/economists_cut_us_growth_forecast_again";
arrFadeTitles[7] = "Colorado wildfire destroys more than 130 homes (AP)";
arrFadeLinks[7] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/colorado_wildfire_destroys_more_than_130_homes";
arrFadeTitles[8] = "Appeals court lets government halt torture lawsuit (AP)";
arrFadeLinks[8] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/appeals_court_lets_government_halt_torture_lawsuit";
arrFadeTitles[9] = "Federer tops Soderling, reaches US Open semifinals (AP)";
arrFadeLinks[9] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/federer_tops_soderling_reaches_us_open_semifinals";
arrFadeTitles[10] = "Karzai aims to limit foreign role in probes: report (Reuters)";
arrFadeLinks[10] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/karzai_aims_to_limit_foreign_role_in_probes_report";
arrFadeTitles[11] = "BP report blames itself, others for oil spill (AP)";
arrFadeLinks[11] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/bp_report_blames_itself_others_for_oil_spill";
arrFadeTitles[12] = "AP Exclusive: Backers of NYC mosque appear divided (AP)";
arrFadeLinks[12] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/ap_exclusive_backers_of_nyc_mosque_appear_divided";
arrFadeTitles[13] = "Highway deaths fall to lowest level since 1950 (AP)";
arrFadeLinks[13] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/highway_deaths_fall_to_lowest_level_since_1950";
arrFadeTitles[14] = "Fla. minister determined to hold 9/11 Quran burn (AP)";
arrFadeLinks[14] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/fla_minister_determined_to_hold_9/11_quran_burn";
arrFadeTitles[15] = "Florida pastor not backing down on Koran-burning (Reuters)";
arrFadeLinks[15] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/florida_pastor_not_backing_down_on_koran-burning";
arrFadeTitles[16] = "BP points fingers in oil spill blame game (Reuters)";
arrFadeLinks[16] = "http://tickermyfeed.com/news.php/MHx8ZnJlZQ==/bp_points_fingers_in_oil_spill_blame_game";
}
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, 15);
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, 15);
}
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('
');