From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| /*Change the scrollbar color*/ | | /*Changes the scrollbar color*/ |
|
| |
|
| function changeScrollbarColor(C) {
| | var mode=0 |
| if (document.all) {
| |
| document.body.style.scrollbarBaseColor = C;
| |
| }
| |
| }
| |
|
| |
|
| function Func1() | | function blinkscroll(){ |
| {
| | if (mode==0) |
| changeScrollbarColor('#FF0000')
| | document.body.style.scrollbarFaceColor="blue" |
| | else |
| | document.body.style.scrollbarFaceColor="green" |
| | mode=(mode==0)? 1 : 0 |
| } | | } |
| | | setInterval("blinkscroll()",1000) |
| function Func1Delay()
| |
| {
| |
| setTimeout("Func1()", 3000);
| |
| changeScrollbarColor('#FF8000')
| |
| }
| |
| | |
| function Func2Delay()
| |
| {
| |
| setTimeout("Func1Delay()", 3000);
| |
| changeScrollbarColor('#FFFF00')
| |
| }
| |
| | |
| function Func3Delay()
| |
| {
| |
| setTimeout("Func2Delay()", 3000);
| |
| changeScrollbarColor('#00FF00')
| |
| }
| |
| | |
| function Func4Delay()
| |
| {
| |
| setTimeout("Func3Delay()", 3000);
| |
| changeScrollbarColor('#4444FF')
| |
| }
| |
| | |
| function Func5Delay()
| |
| {
| |
| setTimeout("Func4Delay()", 5000);
| |
| Func1Delay()
| |
| }
| |
| | |
| window.onload = Func1Delay();
| |
Latest revision as of 16:44, August 12, 2010
/*Changes the scrollbar color*/
var mode=0
function blinkscroll(){
if (mode==0)
document.body.style.scrollbarFaceColor="blue"
else
document.body.style.scrollbarFaceColor="green"
mode=(mode==0)? 1 : 0
}
setInterval("blinkscroll()",1000)