javascript - popup behind youtube video -
i have website contains youtube video. have popup window goes using javescript. each time press popup, comes "behind" youtube video. tried adding
element.style.zindex="1"
or object.style.zindex="1"
to javascript function ,
z-index:-1;
to youtube css. doesn't help. should 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>
add wmode="opaque"
<object>
/ <embed>
tag parameters , see if helps.
Comments
Post a Comment