Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Make use of passage .header

I noticed there is a .header and a .footer dive on each passage that is unused.  I am trying to insert text into the header using innerHTML and not having much luck (I'm no JavaScript expert by any means).  Does anyone have a working example of how to do something like this?

Ideally a <<header>> <<endheader>> macro would be perfect as it would take anything in between and place it in the .header div for separate styling.

Comments

  • One warning about using the header and footer divs is that according to the Wiki these areas are destroyed and recreated each time you move from one passage to another.
  • greyelf wrote:

    ... these areas are destroyed and recreated each time you move from one passage to another.


    Which is just fine for what I'd want to use them for, just a room description separate from narrative text.  Right now I have it wrapped in a span styled as a block.
Sign In or Register to comment.