SoFunction
Updated on 2025-04-14

Class Of Marquee Scroll Universal Uninterrupted Scroll JS Encapsulation Class


function Marquee()
{
     = (arguments[0]);
    if(!)
    {
alert("You want to set\"" + arguments[0] +"\"Initialization error\r\nPlease check whether the tag ID is set correctly!");
         = -1;
        return;
    }
     =  =  =  =  =  =  =  =  = 0;
     = 1;
     = 30;
     = {"top":0 , "up":0 , "bottom":1 , "down":1 , "left":2 , "right":3};
    if(typeof arguments[1] == "number" || typeof arguments[1] == "string") = arguments[1];
    if(typeof arguments[2] == "number") = arguments[2];
    if(typeof arguments[3] == "number") = arguments[3];
    if(typeof arguments[4] == "number") = arguments[4];
    if(typeof arguments[5] == "number") = arguments[5];
    if(typeof arguments[6] == "number") = arguments[6];
    if(typeof arguments[7] == "number") = arguments[7];
    if(typeof arguments[8] == "number") = arguments[8];
     =  =  = "hidden";
     = true;
     = (().indexOf("opera") == -1);
    if( >= 7)();
}

 = function()
{
    if( == -1)return;
    if( < 800) = 800;
    if( < 20) = 20;
    if( == 0) = parseInt();
    if( == 0) = parseInt();
    if(typeof  == "string") = [().toLowerCase()];
     = ( / 2);
     = ( / 2);
     = ;
     =  + "px";
     =  + "px";
    if(typeof  != "number") =  > 1 ?  : ;
    var templateLeft = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;display:inline;'><tr><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td><td noWrap=true style='white-space: nowrap;word-break:keep-all;'>MSCLASS_TEMP_HTML</td></tr></table>";
    var templateTop = "<table cellspacing='0' cellpadding='0' style='border-collapse:collapse;'><tr><td>MSCLASS_TEMP_HTML</td></tr><tr><td>MSCLASS_TEMP_HTML</td></tr></table>";
    var msobj = this;
     = ;
    if( <= 1)
    {
         = (/MSCLASS_TEMP_HTML/g,);
    }
    else
    {
        if( == 0 &&  == 0)
        {
             += ;
        }
        else
        {
             = (/MSCLASS_TEMP_HTML/g,);
        }
    }
    var timer = ;
    var delaytime = ;
    var waittime = ;
     = function(){()}
     = function()
                {
                    if( == 1)
                    {
                        setTimeout(,delaytime);
                    }
                    else
                    {    clearInterval();
                         =  = 0;
                         = setInterval(,timer);
                    }
                }

     = function()
            {
                 = 1;
                clearInterval();
                setTimeout(,delaytime);
            }

     = function()
        {
             =  > 1 ?  / 2 :  / 2;
            if(( <= 1 &&  <=  + ) || ( > 1 &&  <=  + ))            {
                 = ;
                delete();
                return;
            }
            delete();
             = setInterval(,timer);
            if( < 0)return;
             = function(event)
                        {
                            if( == 0 &&  > 1)
                            {
                                var event = event || ;
                                if()
                                {
                                    if()
                                    {
                                         =  ==  ?  -  :  -  + ;
                                    }
                                    else
                                    {
                                         = null;
                                        return;
                                    }
                                }
                                else
                                {
                                     =  - ;
                                }
                                 =  >  ? 3 : 2;
                                 = ( - );
                                 = ( * (*2) / );
                            }
                        }
             = function()
                        {
                            if( == 0)return;
                             = 1;
                            clearInterval();
                        }
             = function()
                        {
                            if( == 0)
                            {
                                if( == 0) = 1;
                                return;
                            }
                             = 0;
                            if( == 0)
                            {
                                clearInterval();
                                 = setInterval(,timer);
                            }
                        }
        }
    setTimeout(,waittime);
}

 = function()
{
    switch()
    {
        case 0:
             += ;
            if( >=  &&  > 0)
            {
                 +=  +  - ;
                ();
                return;
            }
            else
            {
                if( >= )
                {
                     -= ;
                }
                 += ;
            }
        break;

        case 1:
             += ;
            if( >=  &&  > 0)
            {
                 -=  +  - ;
                ();
                return;
            }
            else
            {
                if( <= 0)
                {
                     += ;
                }
                 -= ;
            }
        break;

        case 2:
             += ;
            if( >=  &&  > 0)
            {
                 +=  +  - ;
                ();
                return;
            }
            else
            {
                if( >= )
                {
                     -= ;
                }
                 += ;
            }
        break;

        case 3:
             += ;
            if( >=  &&  > 0)
            {
                 -=  +  - ;
                ();
                return;
            }
            else
            {
                if( <= 0)
                {
                     += ;
                }
                 -= ;
            }
        break;
    }
}
//-->
[/code]