javascript目录树中的连接页面如何在iframe框架中显示

WBOY
发布: 2023-03-02 13:58:01
原创
1132 人浏览过

help.html页面中包含目录树代码和iframe框架,我想实现当点击目录树的连接时,相应的连接页面显示在iframe框架中。
目录树的javascript代码:

d = new dTree('d');

d.add(0,-1,'目 录');
d.add(1,0,'运行环境','admin/outline_0.htm','con');
d.add(2,0,'Node 2','admin/outline_1.htm','con');
d.add(3,1,'硬件环境','admin/outline_2.htm','con');
d.add(4,0,'Node 3','example01.html','con');
d.add(5,3,'Node 1.1.1','example01.html');
d.add(6,5,'Node 1.1.1.1','example01.html');
d.add(7,0,'Node 4','example01.html');
d.add(8,1,'Node 1.2','example01.html');
d.add(9,0,'My Pictures','example01.html','Pictures I've taken over the years','','','../../img/Tree/img/imgfolder.gif');
d.add(10,9,'The trip to Iceland','example01.html','Pictures of Gullfoss and Geysir');
d.add(11,9,'Mom's birthday','example01.html');
d.add(12,0,'Recycle Bin','example01.html','','','../../img/Tree/img/trash.gif');

document.write(d);

//-->

其中还调用了一个名称是:dtree.js 脚本来控制它的图片显示和隐藏

iframe代码:

目录树如图所示,点击后在右侧iframe框架中显示详细页面,就像windows的帮助页那样

回复内容:

help.html页面中包含目录树代码和iframe框架,我想实现当点击目录树的连接时,相应的连接页面显示在iframe框架中。
目录树的javascript代码:

d = new dTree('d');

d.add(0,-1,'目 录');
d.add(1,0,'运行环境','admin/outline_0.htm','con');
d.add(2,0,'Node 2','admin/outline_1.htm','con');
d.add(3,1,'硬件环境','admin/outline_2.htm','con');
d.add(4,0,'Node 3','example01.html','con');
d.add(5,3,'Node 1.1.1','example01.html');
d.add(6,5,'Node 1.1.1.1','example01.html');
d.add(7,0,'Node 4','example01.html');
d.add(8,1,'Node 1.2','example01.html');
d.add(9,0,'My Pictures','example01.html','Pictures I've taken over the years','','','../../img/Tree/img/imgfolder.gif');
d.add(10,9,'The trip to Iceland','example01.html','Pictures of Gullfoss and Geysir');
d.add(11,9,'Mom's birthday','example01.html');
d.add(12,0,'Recycle Bin','example01.html','','','../../img/Tree/img/trash.gif');

document.write(d);

//-->

其中还调用了一个名称是:dtree.js 脚本来控制它的图片显示和隐藏

iframe代码:

目录树如图所示,点击后在右侧iframe框架中显示详细页面,就像windows的帮助页那样

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!