<html>
<head>
<title>Slider Test</title>
<script language='javascript'>
<!--
function slide()
{
width = document.images[1].width + 33;
pixleft = 0;
pixright = width * .18;
towhere = event.clientX - (width * .402);
if (towhere < pixleft || towhere > pixright)
{
return false;
}
else {
butt.style.pixelLeft = towhere;
}
gd = width * .402;
num = Math.round(towhere/15);
bgColors = ['#000000','#333333','#444444','#555555','#666666','#777777','#888888','#999999','#AAAAAA','#BBBBBB','#CCCCCC','#DDDDDD','#FFFFFF'];
if (gd > 400){
document.body.bgColor = bgColors[Math.round(towhere/15)];}
else {
document.body.bgColor = bgColors[Math.round(towhere/9.5)];}
fadeDiv = document.getElementById('fader');
fwidth = document.images[2].width;
fheight = document.images[2].height;
alphas = [95,90,85,80,75,70,65,60,55,45,35,25,15,5,0];
fadeDiv.style.width = fwidth;
fadeDiv.style.height = fheight;
fadeDiv.style.filter = 'alpha(opacity='+alphas[Math.round(towhere/13)]+')';
}
//-->
</script>
</head>
<body bgcolor="black">
<div id='slider' style='position:absolute;top:5%;left:40%;width:20%;'>
<hr><img name='butt' src="C:\Windows\Triangles.bmp" style='position:absolute;cursor:hand;top:0;left:0;' onDrag='slide()'></div>
<img src='holder.bmp' style='width:100%;height:1px;visibility:hidden;'>
<BR><BR><CEnteR><img src='C:\Windows\Circles.bmp' style='position:absolute;top:15%;align:center'></center>
<div id='fader' style='position:absolute;top:15%;left:50%;background-color:black;filter:alpha(opacity=100)' onClick='document.location.href="linkGoes.html"'>yea</div>
</body>
</html>