Door Games Unlimited

Welcome, Guest.


Subject: Frame.js scrolling Date: Mon Jan 05 2015 13:58:03
From: echicken To: Kirkman

  Re: Frame.js scrolling
  By: Kirkman to All on Mon Jan 05 2015 12:00:17

 Ki> I'm playing around with scrolling content in a frame. Is there a built in
 Ki> way to wrap a scroll? In other words, if you reach the end of whatever
 Ki> content you .load() into the frame, then the frame displays the beginning
 Ki> 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

Previous Message       Next Message
In Reply To: Frame.js scrolling (Kirkman)