This target scenario
When the button gets clicked, createLayer is executed and a new target is
created.
Secondly, we have to put something into the target. Here there are two different
methods to choose from, namely buildObject and
buildSandwich. buildObject is used to shove just
the mediaobject related HTML into the target-container. But by using the
buildSandwich method you can also have custom HTML going along the mediaobject,
as we have in this showoff.
The third step is to make things visible and positioned. Things like these
can be pretty hard to manage crossbrowserwize, since Netcape and MSIE uses
different implementations when it comes to position elements. We have merged
all positioning issues into the placeTarget -
method to make this task a piece of cake, even for your mama. The placeTarget
method handles X, Y,
Z positioning and visibility
by arguments.
|