Hello, has anyone created a text box with Marquee style scrolling text?

Hello, has anyone created a text box with Marquee style scrolling text? I can’t get the old marquee HTML tag to work, didn’t find any existing scripts, and haven’t figured out a way to do it in JS. Any thoughts or guidance is appreciated.

]]>

7 Commentsto Hello, has anyone created a text box with Marquee style scrolling text?

  1. Anonymous says:

    < ![CDATA[

    Here is my marquee script

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Elmnt4=LL.getEvent().getData();


    function scroll4(pos4, output4) {


    var first4=0;




    if ((ln4 > nbcar4) && (Bcount4 >0))


    {


    var fin4 = output4.length;


    var output4 = output4.substring(1,fin4);


    //output4 += txt4.substring(pos4,pos4+1);


    output4 += txt4.charAt(pos4);


    // arret boucle si pos > longueur texte


    if (pos4 > ln4) {


    Bcount4a++;


    if (Bcount4a < = 3){


    nb4=0;


    pos4=0;


    output4 += txt4.charAt(0);


    scroll4(0,output4);


    }


    if (Bcount4a > 3){


    screen4.setLabel(txt4);


    return;


    }


    }


    }


    else


    {



    var output4=””;



    for (var i4 = 0; i4 < pos4; i4++)


            {


    output4 += txt4.charAt(i4);


            }


            output4 += txt4.charAt(pos4);


      }   



    screen4.setLabel(output4);



            pos4++;



    if (pos4 != nbcar4)


            {



                setTimeout(function () { scroll4(pos4,output4); }, 300);



            }



            else



            {


    //return;



    nb4++;


    Bcount4++;


    if ((Bcount4 >= 3) && (ln4 < = nbcar4))


    {


    //3 fois et exit si petit texte


    return;    


    }



    if (ln4 < = nbcar4) {


    // petit texte


    pos4=0;


    output4= “”;


    }


    if ((ln4 < = nbcar4) && (Bcount4a == 3)){


    alert(Bcount4a);


    screen4.setLabel(txt4);


    return;


    }



    setTimeout(function () { scroll4(pos4,output4); }, 900);


    }


            }


    nb4=0;


    var output4 = “”;


    Bcount4=0;


    Bcount4a=0;


    var first4=1;


    if (first4 != 0) {



    var screen4=LL.getItemById(Elmnt4);


    var txt4 = screen4. getLabel();


    var ln4 = txt4.length;


    nbcar4 = 17;


    screen4.setLabel(“”);


    scroll4(0,output4);


    }

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Cool, thank you for sharing. That’s much more complicated than I expected. I haven’t been able to figure out what I need to change to get it to work on my object-could you please point me in the right direction?



    Yeah, I’ve definitely got something messed up-I have a test object set to run the script on tap event. It does run, but on a completely current object on desktop.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    David VandenBos please look here: hashbangcode.com – JavaScript Scrolling Box Marquee Replacement | #! code


    It was my starting point

    ]]>

  5. Anonymous says:

    < ![CDATA[

    David VandenBos element is a parameter and you just have to run the script .

    ]]>

  6. Anonymous says:

    < ![CDATA[

    David VandenBos just posted a video 🙂

    ]]>

  7. Anonymous says:

    < ![CDATA[

    Awesome, exactly what I’m trying to get!

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *