- CHANGING LAYER STACKING ORDER
- DRAWING MULTIPLE CONSECUTIVE LAYERS
- LAYERS LIKE YOU LIKE 'EM
- TAKING PREVENTATIVE MEASURES
- MOVIN' AND GROOVIN' AND LAYIN' TO THE BEAT NOW
- NO SPECIAL MAGIC REQUIRED
- PUT THOSE LAYERS IN THEIR PLACE
- SUPER SIZING LAYERS
- NO TRESPASSING
- NESTING URGES
- THE OBVIOUS ESCAPES US SOMETIMES
- CHANGE LAYER CONTENTS
- INSERT DIV TAG
- FRAMESETS-A-PALOOZA
- SPLITS ARE ALL RELATIVE
- QUICK DRAW FRAMESETS
- WHY SO BLUE?
- GETTING IN TOUCH WITH YOUR INNER FRAMESET
- PLAYING THE FRAME NAME GAME
- A FRAMESET BY ANY OTHER NAMESET
- KEEPING FRAMES IN THEIR PLACE
- HELP, I'VE BEEN FRAMED, AGAIN!
- TARGETING MULTIPLE FRAMES
- OODLES OF UNDO-ODLES
- CREATING ACCESSIBLE FRAMES
- DÉJÀ VU FRAMES
- THE GUIDING LIGHT
CHANGE LAYER CONTENTS
There is no need to make the user wait for an entire new page to load when all you want to change is just a single layer's contents. Don't let the name fool you; the Set Text of Layer behavior does more than change text in a layer. You need at least one layer on the page before you can click the Behaviors panel's Add (+) button and select Set Text > Set Text of Layer. In the dialog that appears, notice that it says New HTML. Try using any HTML you want, and as long as the browser understands it, that code will be represented in the layer after you click OK. Be sure that the event listed in the Behaviors panel is set the way you want it, and then go ahead and preview the page.
"Why not use Show/Hide Layers and use as many layers as needed?" One benefit is that the layer will always have the same ID and other attributes. This means that the look of the layer can remain consistent without repeating the same code.