<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
<!--
.menu {
display: block;
width: 200px;
height: 30px;
background-color: rgb(0,0,102);
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
text-transform: capitalize;
text-align: center;
text-decoration: none;
padding: 5px;
}
-->
</style>
<script type="text/javascript">
<!--
/*
.......
..&MMMMMMMMMMMMMMNa..
.MMMMMMMa&.. .JMMMMMMMMM""""""WMMMMMMMMN&. ..&MMMMMMMN.
JMMD!` .!?""MMa. .JMMMMMMMY^` ."WMMMMMMMa. ..MM#""!! !"MMF
.MF ."MMMMMMMMY' ?WMMMMMMM"^ JMF
JM. .TMMMD .YMM"^ J#
Th .N&.. .YN. ..#^ ..JNMp .#
?h .MMMMMMM 7N. .JD` JMMMMMMh .@
.N. .MMMMMM@ .Wx .M" .MMMMMMN .D
.W. dMMMMMF .Yx .#= WMMMMMh J^
JMMMMMF .Yx .#^ WMMMMMF
.MMMMMF T` "! MMMMMM
JMMMMM .MMMMMF
dMMMMF JMMa. .&MMr 4MMMMF
MMMMM MMMMMMa. ..MMMMMM .MMMMF
MMMMF MMMMMMMMNJ. ..MMMMMMMMM MMMMF
JMMMF JMMMMMMMMMMN&. ..MMMMMMMMMMMF JMMMF
JMMM TMMMMMMMMMM"""" """"MMMMMMMMMM" JMMM^
WMMF JMMF
.MMh MMM!
JMM, JMM5
JMM, JMMt
.MMN. ..MMM^
4MMMN&.. ..+MMMMD
.WMMMMMMMMMNN&&&&&&&&&&&&&&&NNMMMMMMMMM#'
.UMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMY!
?WMMMMMMMMMMMMMMMMMMMMMMMMMMM#^
J"WMMMMMMMMMMMMMMMMMMM#"!
.7"""""""""""^!
*/
var r = 0 ;
var g = 0 ;
var bmin = 120;
var stepsize = 10;
var speedfadeup = 10;
var speedfadedown = 50;
b['menu1'] = 100;
b['menu2'] = 100;
b['menu3'] = 100;
b['menu4'] = 100;
b['menu5'] = 100;
b['menu6'] = 100;
var fadeTimerUp
= new Array(); fadeTimerUp['menu1'] = null;
fadeTimerUp['menu2'] = null;
fadeTimerUp['menu3'] = null;
fadeTimerUp['menu4'] = null;
fadeTimerUp['menu5'] = null;
fadeTimerUp['menu6'] = null;
var fadeTimerDown
= new Array(); fadeTimerDown['menu1'] = null;
fadeTimerDown['menu2'] = null;
fadeTimerDown['menu3'] = null;
fadeTimerDown['menu4'] = null;
fadeTimerDown['menu5'] = null;
fadeTimerDown['menu6'] = null;
function fadeColorUp(menuOption) {
clearTimeout(fadeTimerDown[menuOption]);
document.getElementById(menuOption).style.backgroundColor = "rgb("+ r + "," + g + "," + b[menuOption] + ")";
b[menuOption] += stepsize;
if (b[menuOption] >= 250) {
clearTimeout(fadeTimerUp[menuOption]);
document.getElementById(menuOption).style.backgroundColor = "rgb(0,0,250)";
b[menuOption] = 250;
} else {
fadeTimerUp[menuOption] = setTimeout("fadeColorUp('"+menuOption+"')", speedfadeup);
}
}
function fadeColorDown(menuOption) {
clearTimeout(fadeTimerUp[menuOption]);
document.getElementById(menuOption).style.backgroundColor = "rgb("+ r + "," + g + "," + b[menuOption] + ")";
b[menuOption]-= stepsize;
if (b[menuOption] <= bmin) {
clearTimeout(fadeTimerDown[menuOption]);
document.getElementById(menuOption).style.backgroundColor = "rgb(0,0,100)";
b[menuOption] = 100;
} else {
fadeTimerDown[menuOption] = setTimeout("fadeColorDown('"+menuOption+"')", speedfadedown);
}
}
-->
</script>
</head>
<body>
<a class="menu" id="menu1" href="javascript:;" onmouseover="fadeColorUp('menu1');" onmouseout="fadeColorDown('menu1');">Option 1</a>
<a class="menu" id="menu2" href="javascript:;" onmouseover="fadeColorUp('menu2');" onmouseout="fadeColorDown('menu2');">Option 2</a>
<a class="menu" id="menu3" href="javascript:;" onmouseover="fadeColorUp('menu3');" onmouseout="fadeColorDown('menu3');">Option 3</a>
<a class="menu" id="menu4" href="javascript:;" onmouseover="fadeColorUp('menu4');" onmouseout="fadeColorDown('menu4');">Option 4</a>
<a class="menu" id="menu5" href="javascript:;" onmouseover="fadeColorUp('menu5');" onmouseout="fadeColorDown('menu5');">Option 5</a>
<a class="menu" id="menu6" href="javascript:;" onmouseover="fadeColorUp('menu6');" onmouseout="fadeColorDown('menu6');">Option 6</a>
</body>
</html>