News ticker

Out of context: Reply #6

  • Started
  • Last post
  • 7 Responses
  • heavyt0

    javasscript, my friend.
    why not use the subscript() function to clip the length of the text?
    they used to do this for making stuff scroll in the status bar, but you coul easily adapt it to work like the bbc one.

    it woudl be like this:
    i =0;
    function marqueeMaker(){
    text = ' lorem ipsum';
    if(i < text.length){
    text = text.substring(0, text.length - i);
    i++;
    }else {
    i = 0;}
    }
    setTimeout(marqueeMaker(), 0100);

    TR1

View thread