I have a website that contains a youtube video. I have a popup window which goes up using javescript. Each time I press the popup, it comes up "behind" the youtube video. I tried adding
element.style.zIndex="1"
or object.style.zIndex="1"
to my javascript function and
z-index:-1;
to my youtube css. But it doesn't help. What should I do?
youtube css:
position: absolute;
height: 259px;
width: 683px;
left: 235px;
float: left;
text-align:right;
z-index:-1;
Youtube code:
<div id="youtube_video" style="float:right">
<object width="580" height="259" float="right"><param name="movie" value="http://www.youtube.com/v/7mKpzQOlyKE?fs=1&hl=iw_IL" ></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/7mKpzQOlyKE?fs=1&hl=iw_IL" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="259" ></embed></object>