openside("News Tick");
echo "<script type='text/javascript' src='http://www.pompeyworld.co.uk/marquee.js'></script>
<center>
<div id='fade_base' style='width:850px;border:1px dotted black;padding:5px;height:80px;line-height:1.8em;'>
Latest News:<br>
<strong><em><a id='fade_link'></a></em></strong>
</div>
<p>
</div><p></center>" ;
closeside();
function setupFadeLinks() {
arrFadeLinks[0] = '';
arrFadeTitles[0] = 'Helo Everyone';
arrFadeLinks[1] = 'This is a test';
arrFadeTitles[1] = 'Hope you like it';
arrFadeLinks[2] = 'This is our news';
arrFadeTitles[2] = 'Please Read it';
}
// 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 = 1600;
var m_bFadeOut = true;
var m_iFadeInterval;
window.onload = Fadewl;
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;
}
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;
m_bFadeOut = false;
}
} else {
m_Fade-=m_FadeStep;
if (m_Fade<m_FadeIn) {
clearInterval(m_iFadeInterval);
setTimeout(Faderesume, m_FadeWait);
setFadeLink();
m_bFadeOut=true;
}
}
var ilink = document.getElementById("fade_link");
if ((m_Fade<m_FadeOut)&&(m_Fade>m_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)
{
}
}
add_to_head("<script type='text/javascript' src='http://www.pompeyworld.co.uk/marquee.js'></script>");
openside("News Tick");
echo "
<center>
<div id='fade_base' style='width:850px;border:1px dotted black;padding:5px;height:80px;line-height:1.8em;'>
Latest News:<br>
<strong><em><a id='fade_link'></a></em></strong>
</div>
<p>
</div><p></center>" ;
closeside();
Category Forum
Panels and InfusionsLabels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions