Have a look at this code:
[code=php]<html>
<head>
<meta http-equiv=”Content-Language” content=”en-us”>
<meta name=”GENERATOR” content=”Microsoft FrontPage 5.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<title>Glowing Text</title>
<style>
<style>{ }
#glowtext{
filter:glow(color=0000ff,strength=3);
width:100%;
}
–>
</style>
<script language=”JavaScript1.2″>
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==3)
document.all.glowtext[which].filters[0].strength=8
else
document.all.glowtext[which].filters[0].strength=3
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==3)
document.all.glowtext.filters[0].strength=2
else
document.all.glowtext.filters[0].strength=3
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i<glowtext.length;i++)
eval(‘setInterval(“glowit(‘+i+’)”,150)’)
}
else if (glowtext)
setInterval(“glowit2(0)”,150)
}
if (document.all)
window.onload=startglowing
</script>
<script type=”text/javascript”>
var colorArr=[“808080”, “Yellow”, “Orange”, “Black”];
var colorInx=0;
function bgChange(){
document.bgColor=colorArr[colorInx];
colorInx++;
if (colorInx>colorArr.length-1) colorInx=0;
}
</script>
<a href=# onclick=”bgChange();”>Name of the link</a>
</head>
<body text=”#00FF00″ bgcolor=”#000000″ link=”#FFFF00″ vlink=”#FF9900″>
<p align=”center”><font face=”Comic Sans MS” size=”5″>Glowing Text</font></p>
<p align=”center”> </p>
<p align=”center”><font face=”Courier” size=”5″>This is a very good script,
especially for something like Haloween. Try it. This is the effect of the
script:</font></p>
<p align=”center”><font face=”Courier” size=”5″><span id=”glowtext”>This is normal text </span></font></p>
<p align=”center”><font face=”Courier” size=”5″><span id=”glowtext”>
<a href=”../glowtext.htm”>This is a hyperlink</a> </span></font></p>
<p align=”center”>
<textarea rows=”5″ name=”S1″ cols=”50″><style>
<!–
#glowtext{
filter:glow(color=FFFF00,strength=3);
width:100%;
}
–>
</style>
<script language=”JavaScript1.2″>
function glowit(which){
if (document.all.glowtext[which].filters[0].strength==3)
document.all.glowtext[which].filters[0].strength=2
else
document.all.glowtext[which].filters[0].strength=3
}
function glowit2(which){
if (document.all.glowtext.filters[0].strength==3)
document.all.glowtext.filters[0].strength=2
else
document.all.glowtext.filters[0].strength=3
}
function startglowing(){
if (document.all.glowtext&&glowtext.length){
for (i=0;i<glowtext.length;i++)
eval(‘setInterval(“glowit(‘+i+’)”,150)’)
}
else if (glowtext)
setInterval(“glowit2(0)”,150)
}
if (document.all)
window.onload=startglowing
</script></textarea></p>
How can i change the bgchange part of the script so that it chages the colour of the glow instead of the background colour?