yaojxing 2009-06-17
代码如下:
script language="javascript" type="text/javascript" src='<%=ResolveUrl("~/js/media.js") %>'></script>
代码如下:
protected void Page_Load(object sender, EventArgs e) { string swf = ResolveUrl("~/images/flash_menu20090430.swf"); string menu =ResolveUrl("~/menu.xml"); string list = ResolveUrl("~/list.xml"); this.Literal1.Text = "var swf=\"" + swf + "\";var menu=\"" + menu + "\";var list=\"" + list + "\";"; }
代码如下:
<script type="text/javascript"><!-- <asp:Literal ID="Literal1" runat="server"></asp:Literal> var so = new SWFObject(swf, "mymovie", "948", "307", "8", "#ffffff"); so.addVariable("menuurl", ReplaceMystr(menu)); so.addParam("wmode", "opaque"); so.addVariable("listurl", ReplaceMystr(list)); so.write("flashkv"); // --></script>