document.write('')例子
调用页面(shtml、页面前台):
<div id="news2"> <ul> <script language="javascript" type="text/javascript" src="/News.aspx?ClassId=2&Type=1&PageSize=6"></script> </ul> </div>
新闻列表页面前台:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopNew.aspx.cs" Inherits="CF.CMS.Web.TopNew" %>
新闻列表页面后台:
builder.Append(string.Format("document.write('<li><span>{3}</span><a href=\"{0}\" target=\"_blank\" title=\"{1}\">{2}</a></li>');\n", pageUrl, title, Settings.SubStr(title, _length), Settings.FormatDate(addTime, 0)));
Response.Write(builder.ToString());
Response.End();