answer.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:1k
- <HTML xmlns:fc>
- <HEAD>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <TITLE></TITLE>
- <STYLE>
- @media all
- {
- fc:fc_code
- {
- behavior: url(webprint/fc_code.htc) ;
- }
- fc:webprint
- {
- behavior: url(webprint/webgrid.htc) ;
- }
- }
- </STYLE>
- <SCRIPT LANGUAGE=javascript>
- <!--
- function window_onload() {
- oXML.async="false";
- oXML.load("answer.xml")
- oXSL.async="false";
- oXSL.load('answer.xsl')
- result.innerHTML=oXML.transformNode(oXSL.XMLDocument);
- window.setTimeout("initGrid()",100)
- }
- function initGrid() {
- //初始化表格的位置
- grid.left=5
- grid.top=80
- grid.width=600
- grid.height=300
- //设置页码
- grid.prn.top11="页码:(p)/(P)"
- }
- //-->
- </SCRIPT>
- </HEAD>
- <BODY onload="return window_onload()" >
- <%@page contentType="text/html;CharSet=gb2312"%>
- 这个示例的数据来自answer.xml文件,样式来自answer.xsl文件,然后用answer.jsp来调用。
- <XML ID="oXML" ></XML>
- <XML ID="oXSL" ></XML>
- <P><INPUT type=button value=打印预览 onclick="grid.print()"></P>
- <div id=result></div>
- <SCRIPT LANGUAGE=javascript>
- <!--
-
- //-->
- </SCRIPT>
- </BODY>
- </HTML>