• Frame.js scrolling

    From Kirkman@VERT/GUARDIAN to All on Monday, January 05, 2015 12:00:17
    I'm playing around with scrolling content in a frame. Is there a built in way to wrap a scroll? In other words, if you reach the end of whatever content you .load() into the frame, then the frame displays the beginning of that content right after the end of that content. This would be useful for scrolling backgrounds, etc.

    --Josh

    ////--------------------------------------------------
    BiC -=- http://breakintochat.com -=- bbs wiki and blog

    ---
    þ Synchronet
  • From echicken@VERT/ECBBS to Kirkman on Monday, January 05, 2015 13:58:03
    Re: Frame.js scrolling
    By: Kirkman to All on Mon Jan 05 2015 12:00:17

    I'm playing around with scrolling content in a frame. Is there a built in way to wrap a scroll? In other words, if you reach the end of whatever content you .load() into the frame, then the frame displays the beginning of that content right after the end of that content. This would be useful

    With the exception of loading a .txt file into a frame (which it appears you could do repeatedly, and it would append to the frame) there isn't a built-in way to do this. It could be accomplished, though.

    See Frame.getData/setData - these would be used to copy characters and attributes from one cell to another within the frame. The rest would be loops and math to figure out where to start repeating, where to copy the data to and from, and where to stop.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com