﻿    var from = 1;             	
    var to = 10;              	
    var speed = 1;    
    
    var textcolor = "red";      
    var i = to;
    var j = 0;

    function pu()
    {
        if (!document.all)
            return
        if (i < to)
        {
            document.getElementById("yourtext").style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
            i++;
            theTimeout = setTimeout('pu()',speed);
            return 0;
        }
 
        if (i = to)
        {
            theTimeout = setTimeout('pd()',speed);
            return 0;
        }
    }
 
    function pd()
    {
        if (!document.all)
            return
        if (i > from)
        {
            document.getElementById("yourtext").style.filter = "Glow(Color=" + textcolor + ", Strength=" + i + ")";
            i--;
            theTimeout = setTimeout('pd()',speed);
            return 0;
        }
        if (i = from)
        {
            theTimeout = setTimeout('pu()',speed);
            return 0;
        }
    }

