Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question change glowing colors

    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?

    Code:
    <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

  • #2
    Regular Coder
    Join Date
    Jan 2004
    Location
    San Antonio, TX
    Posts
    131
    Thanks
    1
    Thanked 0 Times in 0 Posts

    can this be done?

    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •