- 论坛徽章:
- 0
|
这是个 html 的问题,
给每个子 frame 取个名字, 如: name=frm_main
使用 target 指定输出的目标, 如下面是将 C 嵌入到 html中的实现, 即 CSP:
- <%
- @include <webhandle.h>
- %>
- <HTML>
- <HEAD>
- <TITLE><% =lang("title") %></TITLE>
- <META content="text/html; charset=gb2312" http-equiv=Content-Type>
- <META content=no-cache http-equiv=pragma>
- <META content="wed, 26 Feb 1997 08:21:57 GMT" http-equiv=expires>
- </HEAD>
- <FRAMESET border=0 cols=* frameBorder=NO frameSpacing=0 rows=62,*,20>
- <FRAMESET border=0 cols=133,* frameBorder=NO frameSpacing=0 rows=62>
- <FRAME name=topLeftFrame noResize scrolling=no src="<% =cgiPrefix(NULL) %>/basic/logo.csp">
- <FRAME name=topRightFrame noResize scrolling=no src="<% =cgiPrefix(NULL) %>/basic/banner.csp">
- </FRAMESET>
- <FRAMESET border=0 cols=145,* frameBorder=NO frameSpacing=0 rows=*>
- <FRAME name=bottomLeftFrame noResize scrolling=no src="<% =cgiPrefix(NULL) %>/menu.csp">
- <FRAME frameBorder=NO name=mainFrame src="<% =cgiPrefix(NULL) %>/basic/status.csp">
- </FRAMESET>
- <FRAME noResize scrolling=no src="<% =cgiPrefix(NULL) %>/basic/bottom.csp">
- </FRAMESET>
- <noframes></noframes>
- </HTML>
复制代码
你可以到下面的地址获取全部的示例源码:
宽带路由器 WEB 配置 -- 源码 http://bbs.chinaunix.net/viewthread.php?tid=834592&extra=page%3D6
C 写CGI 试试 CSP/eybuild
http://www.eybuild.com |
|