網頁視頻播放器遮擋了浮動的廣告層該如何解決?


網站的首頁上加入了對聯廣告,但是對聯廣告被視頻播放器遮蓋住了,以下是播放器的代碼:
                <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="26%" height="246px" style="width:100%;float:right;margin-right:9px;z-index:-1">
                    <param name="AudioStream" value="-1">
                    <param name="AutoSize" value="0">
                    <param name="AutoStart" value="-1">
                    <param name="AnimationAtStart" value="-1">
                    <param name="AllowScan" value="-1">
                    <param name="AllowChangeDisplaySize" value="-1">
                    <param name="AutoRewind" value="0">
                    <param name="Balance" value="0">
                    <param name="BaseURL" value>
                    <param name="BufferingTime" value="5">
                    <param name="CaptioningID" value>
                    <param name="ClickToPlay" value="-1">
                    <param name="CursorType" value="0">
                    <param name="CurrentPosition" value="-1">
                    <param name="CurrentMarker" value="0">
                    <param name="DefaultFrame" value>
                    <param name="DisplayBackColor" value="0">
                    <param name="DisplayForeColor" value="16777215">
                    <param name="DisplayMode" value="0">
                    <param name="DisplaySize" value="2">
                    <param name="Enabled" value="-1">
                    <param name="EnableContextMenu" value="-1">
                    <param name="EnablePositionControls" value="-1">
                    <param name="EnableFullScreenControls" value="0">
                    <param name="EnableTracker" value="-1">
                    <param name="Filename" value="tv/1.wmv"><!--文件路徑 -->
                    <param name="InvokeURLs" value="-1">
                    <param name="Language" value="-1">
                    <param name="Mute" value="0">
                    <param name="PlayCount" value="1">
                    <param name="PreviewMode" value="0">
                    <param name="Rate" value="1">
                    <param name="SAMILang" value>
                    <param name="SAMIStyle" value>
                    <param name="SAMIFileName" value>
                    <param name="SelectionStart" value="-1">
                    <param name="SelectionEnd" value="-1">
                    <param name="SendOpenStateChangeEvents" value="-1">
                    <param name="SendWarningEvents" value="-1">
                    <param name="SendErrorEvents" value="-1">
                    <param name="SendKeyboardEvents" value="0">
                    <param name="SendMouseClickEvents" value="0">
                    <param name="SendMouseMoveEvents" value="0">
                    <param name="SendPlayStateChangeEvents" value="-1">
                    <param name="ShowCaptioning" value="0">
                    <param name="ShowControls" value="-1">
                    <param name="ShowAudioControls" value="-1">
                    <param name="ShowDisplay" value="0">
                    <param name="ShowGotoBar" value="0">
                    <param name="ShowPositionControls" value="-1">
                    <param name="ShowStatusBar" value="0">
                    <param name="ShowTracker" value="-1">
                    <param name="TransparentAtStart" value="0">
                    <param name="VideoBorderWidth" value="0">
                    <param name="VideoBorderColor" value="0">
                    <param name="VideoBorder3D" value="0">
                    <param name="Volume" value="-40">
                    <param name="WindowlessVideo" value="0">
                    <param name="loop" value="-1">
                    </object> 
請問各位大俠如何能讓廣告層高於播放器?

14 个解决方案

#1


比如你播放器所在的層style="z-index=100",那就讓你廣告的層的z-index:1000

#2


多謝mikko1986的回答,但這個方法我已經使用過,不能夠實現。並且我也嘗試了把播放器放入iframe中,但是還是能夠遮擋住首頁上的浮動層,期望高手指點~

#3




可以試試
createPopup Method

http://msdn.microsoft.com/en-us/library/ms536392(VS.85).aspx

或showModalDialog Method
http://msdn.microsoft.com/en-us/library/ms536759(VS.85).aspx 

#4


浮動層的的position屬性是什么?

#5


object 是最高的了吧,我見人家用用它解決select控件遮擋菜單的bug.

#6


廣告層和播放器在不同的div中,然后用div的Z-index屬性控制

#7


Mark

#8


不曉的。。select 遮擋的問題可以用iframe或object來解決。。

#9


flash加上透明屬性就OK了

#10



<param name="wmode" value="transparent"> 

#11


引用 1 樓 mikko1986 的回復:
比如你播放器所在的層style="z-index=100",那就讓你廣告的層的z-index:1000

#12


把廣告層理加上一個框架就好了

#13


在浮動廣告里用iframe

<div><iframe ****  >  </frame></div>

可以參考:  <select>遮擋了 <div>

#14


此問題仍然無法解決,目前只能用createPopup ,才能遮蓋住播放器,但是有一些地方的層是不能用createPopup 來實現的,多謝各位的回答,現在結貼,散分。

注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
粤ICP备14056181号  © 2014-2021 ITdaan.com