
function scrollText(text)
{
        var m1  = " Welcome To Nediyosoft";
        var m2  = " Solutions ";
        var m3  = ".....";
        var m4  = "";

        var msg=m1+m2+m3+m4;
        var out = " ";
        var c   = 1;

        if (text > 100) {
                text--;
                var cmd="scrollText(" + text + ")";
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (text <= 100 && text > 0) {
                for (c=0 ; c < text ; c++) {
                        out+=" ";
                }
                out+=msg;
                text--;
                var cmd="scrollText(" + text + ")";
                    window.status=out;
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (text <= 0) {
                if (-text < msg.length) {
                        out+=msg.substring(-text,msg.length);
                        text--;
                        var cmd="scrollText(" + text + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(cmd,100);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("scrollText(100)",75);
                }
        }
}

// -- End of JavaScript code -------------- -->


