web框架技术 内容页调用 左边菜单页面 函数
框架页面代码:
<%@ Page language="c#" Inherits="fx_new._default" CodeFile="default.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE>信息管理系统</TITLE>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<frameset rows="125,78%,0" border="0" bordercolor="#ffffcc" frameborder="0" runat="server"
frameSpacing="0" ID="Frameset1">
<frame name="header" scrolling="no" noresize src="">
<frameset id="search" cols="124,*" frameborder="0" framespacing="0">
<frame name="contents" src="top.html" scrolling="yes">
<frame name="fx_main" src="button.html" scrolling="yes" style="OVERFLOW: auto">
</frameset>
<frame name="bottom" scrolling="no" noresize src="message_xt.aspx">
</frameset>
</HTML>
菜单页面代码: (top.html 名称不规范 临时起的)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
function getFXD() {
document.getElementById("aaa").innerHTML = "999";
}
</script>
</head>
<body>
<input id="Button1" type="button" value="top" />
<input id="Button2" type="button" value="button" onclick="getFXD();" />
<div id="aaa">
</div>
</body>
</html>
内容页面代码:(button.html 名称不规范 临时起的)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<input id="Button1" type="button" onclick="window.parent.contents.document.all.aaa.innerHTML= '88888';"
value="bbb" />
<input id="Button2" type="button" onclick="window.parent.contents.您的menu页面js函数() ;"
value="b2" />
</body>
</html>
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· [AI/GPT/综述] AI Agent的设计模式综述