框架问题:frame 里的 直接贴代码了!

来源:百度知道 编辑:UC知道 时间:2024/05/30 05:33:43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<frameset rows="*" cols="180,*" frameborder="no" border="10" framespacing="0">
<frame src="left.php" name="leftFrame" scrolling="No" noresize="noresize" id="leftFrame" title="leftFrame" />
<frameset rows="*,184" cols="*" framespacing="0" frameborder=

用JS,没源码不好说

JS写
给显示的名字 加上<span>标签 onclick属性加上 调用方法
获取InnerText 内容(就是名字)
然后在表单里 有个隐藏的<span> 把取出来的名字 加进去
大体就这么个思路