...

View Full Version : change glowing colors



ImperialSpider
07-01-2006, 12:00 AM
I got this script somewhere, and now I want to use it, but want to have varying colors for the glowing objects, and glowing text. (i.e. Text = red, and images = green).

I have tried to duplicate the script, and change colors on only one, but that did not work. Here is the original script I used... Can anyone help?




<style>
<!--
#glowtext{
filter:glow(color=FF0000,strength=4);
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+')",300)')
}
else if (glowtext)
setInterval("glowit2(0)",300)
}

if (document.all)
window.onload=startglowing
</script>
<center>
<U>GLOWING TEXT</U> <p><span id="glowtext">It is so cool to glow</span>
</center>

<p>
&nbsp;
<p>
&nbsp;

<center>

<U>GLOWING IMAGES</U> <p><span id="glowtext"><img src="C:\WINDOWS\Desktop\Larrys Stuff/badguy.gif"></span>

</center>



Thanks,

Imperial Spider

ImperialSpider
07-06-2006, 03:53 AM
I have tried several different ways, but none seem to work... I am wondering, can it be done the way I want?

Please help,

ImperialSpider



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum