在视频前插入广告

2018-09-22 01:04

阅读:585

  1.加入背景图片
<TDalign=middlewidth=329
background=IMAGES/vod_05.jpg><OBJECTid=NSPlay
codeBase=
type=application/x-oleobjectheight=249
standby=LoadingMicrosoftWindowsMediaPlayercomponents...
width=329classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
name=NSPlay>
<PARAMNAME=AutoStartVALUE=-1>
<PARAMNAME=AnimationAtStartVALUE=0>
<PARAMNAME=DisplayModeVALUE=4>
<PARAMNAME=EnabledVALUE=true>
<PARAMNAME=FilenameVALUE=<%=url%>>
<PARAMNAME=ShowControlsVALUE=0>
<PARAMNAME=ShowAudioControlsVALUE=0>
<PARAMNAME=ShowDisplayVALUE=0>
<PARAMNAME=ShowGotoBarVALUE=0>
<PARAMNAME=ShowPositionControlsVALUE=0>
<PARAMNAME=ShowStatusBarVALUE=0>
<PARAMNAME=VolumeVALUE=0>
<PARAMNAME=ShowCaptioningVALUE=0>
<PARAMNAME=TransparentAtStartVALUE=1>
<EMBEDtype=application/x-mplayer2
pluginspage=
id=NSPlayName=NSPlayDisplaySize=4
AutoSize=1ShowControls=0
ShowDisplay=0ShowStatusBar=1width=329Height=249
src=<%=url%>autostart=1></EMBED>
</OBJECT></TD>

2.插入图片广告
<DIVid=Image1style=HEIGHT:93%;POSITION:absolute;TOP:21pix;Left:8pix;VISIBILITY:visible;WIDTH:100%;Z-INDEX:2;>
<imgsrc=gg/loading.gifborder=0width=100%height=100%>
</DIV>

<DIVid=MP1style=HEIGHT:100%;POSITION:relative;TOP:0px;VISIBILITY:visible;WIDTH:100%;Z-INDEX:1;>
<objectid=mPlayerwidth=100%height=100%type=application/x-oleobjectCLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95CodeBase=加载MicrosoftWindowsMediaPlayer组件...VIEWASTEXT>
<PARAMNAME=FILENAMEvalue=address.asp?num=<%=s%>&id=<%=id%>>
<PARAMNAME=ShowControlsVALUE=false>
<PARAMNAME=AutoStartVALUE=true>
<PARAMNAME=EnabledVALUE=true>
<PARAMNAME=EnableContextMenuVALUE=true>
<PARAMNAME=ClickToPlayVALUE=false>
<PARAMNAME=stretchToFitVALUE=1>
<PARAMNAME=ShowStatusBarVALUE=True>
<PARAMNAME=AllowChangeDisplaySizeVALUE=true>
<PARAMNAME=VolumeVALUE=0>
<PARAMNAME=SendOpenStateChangeEventsVALUE=True>
<PARAMNAME=SendPlayStateChangeEventsVALUE=True>
<PARAMNAME=AnimationAtStartVALUE=false>
<PARAMNAME=BalanceVALUE=-600>
<PARAMNAME=BaseURLVALUE=>
<PARAMNAME=CaptioningIDVALUE=>
<PARAMNAME=CursorTypeVALUE=32512>
<PARAMNAME=CurrentMarkerVALUE=0>
<PARAMNAME=DefaultFrameVALUE=>
<PARAMNAME=DisplayModeVALUE=1>
<PARAMNAME=DisplaySizeVALUE=4>
<PARAMNAME=EnableFullScreenControlsVALUE=0>
<PARAMNAME=InvokeURLsVALUE=-1>
<PARAMNAME=PreviewModeVALUE=0>
<PARAMNAME=RateVALUE=1>
<PARAMNAME=SAMILangVALUE=>
<PARAMNAME=SAMIStyleVALUE=>
<PARAMNAME=SAMIFileNameVALUE=>
<PARAMNAME=ShowDisplayVALUE=0>
<PARAMNAME=TransparentAtStartVALUE=1>
<PARAMNAME=VideoBorderWidthVALUE=0>
<PARAMNAME=VideoBorderColorVALUE=0>
<PARAMNAME=VideoBorder3DVALUE=0>
<PARAMNAME=WindowlessVideoVALUE=0>
</object>
</DIV>

3.插入FLASH广告

<DIVid=Image1style=HEIGHT:93%;POSITION:absolute;TOP:21pix;Left:8pix;VISIBILITY:visible;WIDTH:100%;Z-INDEX:2;>
<objectclassid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000codebase=
<paramname=movievalue=buff.swf>
<paramname=qualityvalue=high>
<paramname=wmodevalue=transparent>
<embedsrc=buff.swfwidth=100%height=100%quality=highpluginspage=
</DIV>

<DIVid=MP1style=HEIGHT:100%;POSITION:relative;TOP:0px;VISIBILITY:visible;WIDTH:100%;Z-INDEX:1;>
<objectid=mPlayerwidth=100%height=100%type=application/x-oleobjectCLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95CodeBase=加载MicrosoftWindowsMediaPlayer组件...VIEWASTEXT>
<PARAMNAME=FILENAMEvalue=address.asp?num=<%=s%>&id=<%=id%>>
<PARAMNAME=ShowControlsVALUE=false>
<PARAMNAME=AutoStartVALUE=true>
<PARAMNAME=EnabledVALUE=true>
<PARAMNAME=EnableContextMenuVALUE=true>
<PARAMNAME=ClickToPlayVALUE=false>
<PARAMNAME=stretchToFitVALUE=1>
<PARAMNAME=ShowStatusBarVALUE=True>
<PARAMNAME=AllowChangeDisplaySizeVALUE=true>
<PARAMNAME=VolumeVALUE=0>
<PARAMNAME=SendOpenStateChangeEventsVALUE=True>
<PARAMNAME=SendPlayStateChangeEventsVALUE=True>
<PARAMNAME=AnimationAtStartVALUE=false>
<PARAMNAME=BalanceVALUE=-600>
<PARAMNAME=BaseURLVALUE=>
<PARAMNAME=CaptioningIDVALUE=>
<PARAMNAME=CursorTypeVALUE=32512>
<PARAMNAME=CurrentMarkerVALUE=0>
<PARAMNAME=DefaultFrameVALUE=>
<PARAMNAME=DisplayModeVALUE=1>
<PARAMNAME=DisplaySizeVALUE=4>
<PARAMNAME=EnableFullScreenControlsVALUE=0>
<PARAMNAME=InvokeURLsVALUE=-1>
<PARAMNAME=PreviewModeVALUE=0>
<PARAMNAME=RateVALUE=1>
<PARAMNAME=SAMILangVALUE=>
<PARAMNAME=SAMIStyleVALUE=>
<PARAMNAME=SAMIFileNameVALUE=>
<PARAMNAME=ShowDisplayVALUE=0>
<PARAMNAME=TransparentAtStartVALUE=1>
<PARAMNAME=VideoBorderWidthVALUE=0>
<PARAMNAME=VideoBorderColorVALUE=0>
<PARAMNAME=VideoBorder3DVALUE=0>
<PARAMNAME=WindowlessVideoVALUE=0>
</object>
</DIV>

<SCRIPTFOR=mPlayerEVENT=Buffering(bStart)LANGUAGE=JavaScript>
if(bStart==0){
Image1.style.visibility=hidden;
}
else{
Image1.style.visibility=visible;
}
</SCRIPT>


评论


亲,登录后才可以留言!