主要用到PopupWin控件:
前台:
<%@ Register Assembly="EeekSoft.Web.PopupWin" Namespace="EeekSoft.Web" TagPrefix="cc1" %>
<asp:UpdatePanel ID="upp" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Timer ID="upmess" runat="server" Interval="10000" ontick="upmess_Tick">
</asp:Timer>
<cc1:PopupWin ID="pw" runat="server" style="left: 63px; top: 99px" WindowScroll="false"
DragDrop="False" Height="130px"
Width="230px" AutoShow="true" onlinkclicked="pw_LinkClicked" />
<div id="play" runat="server"></div>
</ContentTemplate>
</asp:UpdatePanel>
后台:
StringBuilder sb = new StringBuilder();
sb.Append("<object style=\"display:none\" id=\"Exobud\" style=\"width: 273px; height: 64px\" type=\"application/x-oleobject\"");
sb.Append("classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\">");
sb.Append("<param name=\"URL\" value=\"msg.wav\"/>");
sb.Append("<param name=\"rate\" value=\"1\"/>");
sb.Append("<param name=\"balance\" value=\"0\"/>");
sb.Append("<param name=\"currentPosition\" value=\"0\"/>");
sb.Append("<param name=\"defaultFrame\" value=\"\"/>");
sb.Append("<param name=\"playCount\" value=\"1\"/>");
sb.Append("<param name=\"autoStart\" value=\"-1\"/>");
sb.Append("<param name=\"currentMarker\" value=\"0\"/>");
|