> Pop-ups are going the way of the DoDo,
and web developers need to start thinking
around them.
Good point. I think a better solution may be showing/hiding css layers with
a z-index. I should have enough control with a div to do what I need. One
problem that I'm experiencing in beta testing is that Layers seem to be
unsocial - they don't like other divs around them.
Here are the proposed Layers that will be shown/hidden
onMouseOver/onMouseOut:
<div id="layer01" style="position:absolute; left:144px; top ... [code
omitted]</div>
<div id="layer02" style="position:absolute; left:320px; top ... [code
omitted]</div>
[and so on for about 30 layers]
Here is the image/hotspot/map:
<img src="images/bigImage.gif" name="bigImage" width="760" height="520"
border="0" usemap="#bigImage">
<map name="oxpmainform14">
<area shape="rect" coords="28,54,52,411" href="#"
onMouseOver="MM_showHideLayers('layer01','','show' );MM_setTextOfLayer('text
for layer01')" onMouseOut="MM_showHideLayers('layer01','','hide') ">
[required JavaScript is generated nicely by Dreamweaver]
<area shape="rect" coords="226,185,474,237" href="#"
onMouseOver="MM_showHideLayers('layer02','','show' );MM_setTextOfLayer('text
for layer02')" onMouseOut="MM_showHideLayers('layer02','','hide') ">
<area shape="rect" coords="58,460,218,479" href="#" alt="" >
<area shape="rect" coords="264,45,481,55" href="#" alt="" >
[and so on for about 30 hotspots]
</map>
Okay, that works - but what about my external style sheet? I have several
other divs that are used in the page above and below the bigImage. The
problem is when I try to put a div id above the Layers, or try to put the
Layers inside a parent div - then my behaviors don't work. Why is this
happening?
<div id="bodyContent"> <== this screws up behaviors when placed above
Layers
<div id="layer01" style="position:absolute; left:144px; top ... [code
omitted]</div>
<div id="layer02" style="position:absolute; left:320px; top ... [code
omitted]</div>
[and so on for about 30 layers]
....