Dropshadows, Draggable,
and
Secondary popups with the overlibmws DHTML Popup Library maintained by Foteos Macrides at Macrides Web Services Discuss these examples, seek help, and offer suggestions for support via the overlibmws Support Group. |
High Noon
2:00 p.m.
4:00 p.m.
Take a spin.
Semi Clear
6:00 p.m.
8:00 p.m.
|
The dropshadow in these examples uses a second, simultaneously controlled overlibmws positioned div container (layer): |
<div id="backdrop" style="position:absolute; visibility:hidden; z-index:999"></div> |
This backdrop container will be created by overlibmws
and need not be declared in the document, but do not use its id for another
element. The handling of two layers simultaneously allows class-based styling
together with a shadow for all of the browsers supported by overlib, as well as use of
the BACKGROUND command. |
These examples use the overlibmws_shadow.js plugin module from the overlibmws distribution and its commands. Some also use the overlibmws_draggable.js plugin module for the DRAGGABLE command toggle. |
The additional commands, parameters and variables for the dropshadow are SHADOW (ol_shadow) toggle for whether to add a dropshadow (default 0), SHADOWX, pixels (ol_shadowx) for the horizontal shadow displacement (default 5), SHADOWY, pixels (ol_shadowy) for the vertical shadow displacement (default 5), SHADOWCOLOR, color (ol_shadowcolor) for the shadow color (default '#666666'), SHADOWIMAGE, picture (ol_shadowimage) URL for an image shadow (default ''). SHADOWOPACITY, percentage (ol_shadowopacity) for the opacity (default 60) of the shadow (100 is solid; 0 turns off the feature and thus also yields a solid shadow). The opacity feature is handled only for IE on PCs and for Gecko-engine browsers. For SHADOWX or SHADOWY, positive pixel values yield displacements to the right or down, negative to the left or up, respectively. A semi-transparent image (semitrans.gif) is used in some of these examples, and is included in the overlibmws distribution. It can reside anywhere pointed to via SHADOWIMAGE (ol_shadowimage). |
This is an example of secondary popups invoked from within a primary overlib popup which has a dropshadow and is draggable. The example uses the overlibmws_overtwo.js plugin module, which has its own overlibmws positioned div container (layer): |
<div id="overDiv2" style="position:absolute; visibility:hidden; z-index:1002"></div> |
This overDiv2 container will be created by overlibmws
and need not be declared in the document, but do not use its id for another
element. A backdrop2 positioned div (with
z-index:1001) also is created automatically for any secondary popups which
have shadows, complementary to the backdrop positioned div for any primary
popups with shadows (see above). Secondary popups are invoked via
overlib2() calls within the content of the overlib() call for the primary
popup. The primary popup must be STICKY. Secondary popups that
are tooltips (not sticky) are closed by nd2() calls. Sticky secondary popups are
closed via internal cClick2() calls when their Close link in the caption is
clicked, or on moving the cursor onto and then off of the secondary popup if
NOCLOSE or MOUSEOFF was included in the overlib2
call. Note that dragging for a primary popup is suspended whenever a secondary popup
is being displayed, and is re-asserted when the secondary popup is closed. Sticky
secondary popups can be draggable, as are the two sticky secondaries in this example. |
The text and caption alignments for the secondary popups in this example were achieved with the following, class-based CSS written in a style block: |
.olfgcenter {background-color:#ffcccc; text-align:center;}
|
|
The example uses REFerence-based positioning for the secondary popups, with the following javascript definitions written in a script block: |
// Create an Array for the secondary popup calls:
|
The example uses the following anchor to invoke the primary popup, also with REFerence-based positioning, and with its content and that for its secondary popups accessed via the myText variable used as the overlib call's lead argument: |
<a secondary popups</a> |
For some simpler examples of tooltip secondary popups see the STICKY, ?GBACKGROUND and DRAGGABLE demonstration pages. Also see examples of secondary popups in frame documents. |
This document uses overlibmws and its commands. |
|
||
|
Copyright Foteos Macrides 2002-2010. All rights reserved. |
|