Hi,
I have a menu on the default page 1-5.
Now when someone scrolls over the headings they should glow. I get the first one to glow but what I would like to know is how to get the rest of them to glow. I have changed the variables about etc but still no joy, it's a very simple process but im having no luck (you should see the bruises on me).
Here is the code:
<html>
<head>
<style>
h1
{
width:400;
}
</style>
<script type="text/javascript">
var i
function glow()
{
i=0
interval=setInterval("makeglow()",10)
}
function back()
{
clearInterval(interval)
document.getElementById('myHeader').style.filter=false
}
function makeglow()
{
i++
if (i<5)
{
document.getElementById('myHeader').style.filter="glow(strength=" + i + "
"
}
else if (window.interval)
{
clearInterval(interval)
}
}
</script>
</head>
<body>
<h1 id="myHeader" onmouseover="glow()" onmouseout="back()">Mouse over this header</h1>
</body>
</html>
Any advice would be helpful
Thanks and a happy new year
I have a menu on the default page 1-5.
Now when someone scrolls over the headings they should glow. I get the first one to glow but what I would like to know is how to get the rest of them to glow. I have changed the variables about etc but still no joy, it's a very simple process but im having no luck (you should see the bruises on me).
Here is the code:
<html>
<head>
<style>
h1
{
width:400;
}
</style>
<script type="text/javascript">
var i
function glow()
{
i=0
interval=setInterval("makeglow()",10)
}
function back()
{
clearInterval(interval)
document.getElementById('myHeader').style.filter=false
}
function makeglow()
{
i++
if (i<5)
{
document.getElementById('myHeader').style.filter="glow(strength=" + i + "
}
else if (window.interval)
{
clearInterval(interval)
}
}
</script>
</head>
<body>
<h1 id="myHeader" onmouseover="glow()" onmouseout="back()">Mouse over this header</h1>
</body>
</html>
Any advice would be helpful
Thanks and a happy new year