User:Cshadd/monobook.js: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
/*Change the scrollbar color*/
/*Change the scrollbar color*/
function changeScrollbarColor(C) {
if (document.all) {
document.body.style.scrollbarBaseColor = C;
  }
}


function Func1()
function Func1()
{
{
changeScrollbarColor('#FF0000')
document.body.style.scrollbarFaceColor="Green"
}  
}  


Line 15: Line 9:
{
{
setTimeout("Func1()", 3000);
setTimeout("Func1()", 3000);
changeScrollbarColor('#FF8000')
document.body.style.scrollbarFaceColor="Yellow"
}
}


Line 21: Line 15:
{
{
setTimeout("Func1Delay()", 3000);
setTimeout("Func1Delay()", 3000);
changeScrollbarColor('#FFFF00')
document.body.style.scrollbarFaceColor="Blue"
}
}


Line 27: Line 21:
{
{
setTimeout("Func2Delay()", 3000);
setTimeout("Func2Delay()", 3000);
changeScrollbarColor('#00FF00')
Func1Delay();
}
 
function Func4Delay()
{
setTimeout("Func3Delay()", 3000);
changeScrollbarColor('#4444FF')
}
 
function Func5Delay()
{
setTimeout("Func4Delay()", 5000);
Func1Delay()
}
}


window.onload = Func1Delay();
window.onload = Func1Delay();

Revision as of 16:39, August 12, 2010

/*Change the scrollbar color*/

function Func1()
{
document.body.style.scrollbarFaceColor="Green"
} 

function Func1Delay()
{
setTimeout("Func1()", 3000);
document.body.style.scrollbarFaceColor="Yellow"
}

function Func2Delay()
{
setTimeout("Func1Delay()", 3000);
document.body.style.scrollbarFaceColor="Blue"
}

function Func3Delay()
{
setTimeout("Func2Delay()", 3000);
Func1Delay();
}

window.onload = Func1Delay();