1.加入背景图片
<TDalign=middlewidth=329
background="IMAGES/vod_05.jpg"><OBJECTid=NSPlay
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type="application/x-oleobject"height=249
standby="LoadingMicrosoftWindowsMediaPlayercomponents..."
width=329classid=clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95
name=NSPlay>
<PARAMNAME="AutoStart"VALUE="-1">
<PARAMNAME="AnimationAtStart"VALUE="0">
<PARAMNAME="DisplayMode"VALUE="4">
<PARAMNAME="Enabled"VALUE="true">
<PARAMNAME="Filename"VALUE="<%=url%>">
<PARAMNAME="ShowControls"VALUE="0">
<PARAMNAME="ShowAudioControls"VALUE="0">
<PARAMNAME="ShowDisplay"VALUE="0">
<PARAMNAME="ShowGotoBar"VALUE="0">
<PARAMNAME="ShowPositionControls"VALUE="0">
<PARAMNAME="ShowStatusBar"VALUE="0">
<PARAMNAME="Volume"VALUE="0">
<PARAMNAME="ShowCaptioning"VALUE="0">
<PARAMNAME="TransparentAtStart"VALUE="1">
<EMBEDtype="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"
id="NSPlay"Name="NSPlay"DisplaySize="4"
AutoSize="1"ShowControls="0"
ShowDisplay="0"ShowStatusBar="1"width=329Height=249
src="<%=url%>"autostart="1"></EMBED>
</OBJECT></TD>
2.插入图片广告
<DIVid="Image1">
<imgsrc="gg/loading.gif"border=0width=100%height=100%>
</DIV>
<DIVid="MP1">
<objectid="mPlayer"width="100%"height="100%"type="application/x-oleobject"CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"CodeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"Standby="加载MicrosoftWindowsMediaPlayer组件..."VIEWASTEXT>
<PARAMNAME="FILENAME"value="address.asp?num=<%=s%>&id=<%=id%>">
<PARAMNAME="ShowControls"VALUE="false">
<PARAMNAME="AutoStart"VALUE="true">
<PARAMNAME="Enabled"VALUE="true">
<PARAMNAME="EnableContextMenu"VALUE="true">
<PARAMNAME="ClickToPlay"VALUE="false">
<PARAMNAME="stretchToFit"VALUE="1">
<PARAMNAME="ShowStatusBar"VALUE="True">
<PARAMNAME="AllowChangeDisplaySize"VALUE="true">
<PARAMNAME="Volume"VALUE="0">
<PARAMNAME="SendOpenStateChangeEvents"VALUE="True">
<PARAMNAME="SendPlayStateChangeEvents"VALUE="True">
<PARAMNAME="AnimationAtStart"VALUE="false">
<PARAMNAME="Balance"VALUE="-600">
<PARAMNAME="BaseURL"VALUE="">
<PARAMNAME="CaptioningID"VALUE="">
<PARAMNAME="CursorType"VALUE="32512">
<PARAMNAME="CurrentMarker"VALUE="0">
<PARAMNAME="DefaultFrame"VALUE="">
<PARAMNAME="DisplayMode"VALUE="1">
<PARAMNAME="DisplaySize"VALUE="4">
<PARAMNAME="EnableFullScreenControls"VALUE="0">
<PARAMNAME="InvokeURLs"VALUE="-1">
<PARAMNAME="PreviewMode"VALUE="0">
<PARAMNAME="Rate"VALUE="1">
<PARAMNAME="SAMILang"VALUE="">
<PARAMNAME="SAMIStyle"VALUE="">
<PARAMNAME="SAMIFileName"VALUE="">
<PARAMNAME="ShowDisplay"VALUE="0">
<PARAMNAME="TransparentAtStart"VALUE="1">
<PARAMNAME="VideoBorderWidth"VALUE="0">
<PARAMNAME="VideoBorderColor"VALUE="0">
<PARAMNAME="VideoBorder3D"VALUE="0">
<PARAMNAME="WindowlessVideo"VALUE="0">
</object>
</DIV>
3.插入FLASH广告
<DIVid="Image1">
<objectclassid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"width=100%height=100%>
<paramname="movie"value="buff.swf">
<paramname="quality"value="high">
<paramname="wmode"value="transparent">
<embedsrc="buff.swf"width=100%height=100%quality="high"pluginspage="http://www.macromedia.com/go/getflashplayer"type="application/x-shockwave-flash"wmode="transparent"></embed></object>
</DIV>
<DIVid="MP1">
<objectid="mPlayer"width="100%"height="100%"type="application/x-oleobject"CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"CodeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"Standby="加载MicrosoftWindowsMediaPlayer组件..."VIEWASTEXT>
<PARAMNAME="FILENAME"value="address.asp?num=<%=s%>&id=<%=id%>">
<PARAMNAME="ShowControls"VALUE="false">
<PARAMNAME="AutoStart"VALUE="true">
<PARAMNAME="Enabled"VALUE="true">
<PARAMNAME="EnableContextMenu"VALUE="true">
<PARAMNAME="ClickToPlay"VALUE="false">
<PARAMNAME="stretchToFit"VALUE="1">
<PARAMNAME="ShowStatusBar"VALUE="True">
<PARAMNAME="AllowChangeDisplaySize"VALUE="true">
<PARAMNAME="Volume"VALUE="0">
<PARAMNAME="SendOpenStateChangeEvents"VALUE="True">
<PARAMNAME="SendPlayStateChangeEvents"VALUE="True">
<PARAMNAME="AnimationAtStart"VALUE="false">
<PARAMNAME="Balance"VALUE="-600">
<PARAMNAME="BaseURL"VALUE="">
<PARAMNAME="CaptioningID"VALUE="">
<PARAMNAME="CursorType"VALUE="32512">
<PARAMNAME="CurrentMarker"VALUE="0">
<PARAMNAME="DefaultFrame"VALUE="">
<PARAMNAME="DisplayMode"VALUE="1">
<PARAMNAME="DisplaySize"VALUE="4">
<PARAMNAME="EnableFullScreenControls"VALUE="0">
<PARAMNAME="InvokeURLs"VALUE="-1">
<PARAMNAME="PreviewMode"VALUE="0">
<PARAMNAME="Rate"VALUE="1">
<PARAMNAME="SAMILang"VALUE="">
<PARAMNAME="SAMIStyle"VALUE="">
<PARAMNAME="SAMIFileName"VALUE="">
<PARAMNAME="ShowDisplay"VALUE="0">
<PARAMNAME="TransparentAtStart"VALUE="1">
<PARAMNAME="VideoBorderWidth"VALUE="0">
<PARAMNAME="VideoBorderColor"VALUE="0">
<PARAMNAME="VideoBorder3D"VALUE="0">
<PARAMNAME="WindowlessVideo"VALUE="0">
</object>
</DIV>
<SCRIPTFOR="mPlayer"EVENT="Buffering(bStart)"LANGUAGE="JavaScript">
if(bStart==0){
Image1.style.visibility="hidden";
}
else{
Image1.style.visibility="visible";
}
</SCRIPT>