0

I am currently try to make an object in an attempt to make it unclickable. I am using a z-index but the problem is the object always places itself first. Is there a way to mask the object to its in the background?

<div style="position:absolute; width:1000px; height:100px; z-index:1001; background:#00F;opacity:0.4;filter:alpha(opacity=40); left:0px; top:0px;"></div>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    width="99%" height="99%" id="pdf" style="position:absolute; z-index:999;">
    <param name="movie" value="filename.pdf">
    <param name="quality" value="high">
    <param name="bgcolor" value="##FFFFFF">
    <embed src="filename.pdf" quality="high" bgcolor="##FFFFFF" width="99%" height="99%"
            name="2003map" align="" type="pdf">
    </embed>
</object>
</div>
Devin Dixon
  • 11,553
  • 24
  • 86
  • 167

2 Answers2

0

did you try putting the z index as negative ? also try putting the object inside a div with z index that is lower than the other

like this

<div style="position:absolute; width:1000px; height:100px;
 z-index:1001;background:#00F;opacity:0.4;filter:alpha(opacity=40);
 left:0px; top:0px;">
</div>
<div style="z-index:999;" id="object_cantainer">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  width="99%" height="99%" id="pdf" style="position:absolute; ">
  <param name="Enabled" value="0" />
  <param name="movie" value="filename.pdf">
  <param name="quality" value="high">
  <param name="bgcolor" value="##FFFFFF">
  <embed src="filename.pdf" quality="high" bgcolor="##FFFFFF" width="99%" height="99%"
        name="2003map" align="" type="pdf">
  </embed>
 </object>
</div>

another option maybe setting the object onclick event to empty ?

yossi
  • 12,945
  • 28
  • 84
  • 110
0

Also try using wmode="opaque"

two7s_clash
  • 5,755
  • 1
  • 27
  • 44