Entry
Is it possible to use a <DIV> as a dropdown menu and cross frame boundaries (as in a frameset)?
Oct 10th, 2003 05:25
Klaus Bolwin, Robert Taylor, Juergen Thelen, Tom Stewart,
No, you can't cross frame boundaries with any block element, this will
only work with windows/popups.
Juergen
The above is true for frames containing content from different domains
(e.g., example.com and cnn.com). But from the same domain, it is
possible to create menus that cross frame boundaries. Search Google for
"cross frame menus" for some examples.
Robert Taylor
No, that's not realy a cross frame menu.
I think there is only a single posssibility to realize cross binding
menus and that will work in Mozilla 1.0 or higher (and relatet browsers)
only.
In Mozilla you can use XBL to integrate chrome elements into your
(X)HTML page:
1. you can attach a binding to any HTML-element using CSS:
e.g.
div#id {-moz-binding:url('path/filename.xml#b1');}
2. you need the XML-file which is bound to this element:
<?xml version="1.0" encoding="ISO-8859-1"?>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<binding id="b1">
<content>
<xul:box orient="horizontal" flex="1" style="font-size:90%;">
<xul:menulist oncommand="goTo(event.originalTarget.value);">
<xul:menupopup>
<xul:menuitem label="Michael Schenker" value="#mate8"/>
<xul:menuitem label="Phil Mogg" value="#mate24"/>
<xul:menuitem label="Andy Parker" value="#mate28"/>
<xul:menuitem label="Danny Peyronell" value="#mate30"/>
<xul:menuitem label="Paul Raymond" value="#mate34"/>
<xul:menuitem label="Pete Way" value="#mate38"/>
</xul:menupopup>
</xul:menulist>
</xul:box>
</content>
</binding>
</bindings>
if the HTML-element where this binding is bound to is not empty, the
binding must contain a <children/> -tag, to indicate the position where
the children of the bound element should appear. Otherwise the binding
will not be displayed.
This menu will overlap frame bounderies as well as window boundaries.
The binding can contain HTML-elements, however the (X)HTML namespace
must be added.
3. the function goTo(target) must be defined.
Klaus Bolwin