为什么不起作用?

sailor76 2004-04-15 10:03:55
为使所有页面内的导航栏和版权信息栏相同,我想使用include把页面包含在网页里,在dreamweaver mx 2004内编辑时显示是正常的,但通过IE则什么也不显示,大家能告诉我是怎么回事吗?
...全文
301 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
xubaogongChina 2004-04-27
  • 打赏
  • 举报
回复
因为在html中不支持包含,但是我们可以通过其他的方法来达到相同的功能,最常用的一种方法就是
框架或者iframe
zcxc 2004-04-27
  • 打赏
  • 举报
回复
学习中
jzywh 2004-04-27
  • 打赏
  • 举报
回复
动态页面才能用服务器端文件包含,静态文件用脚本应用
dgm8 2004-04-24
  • 打赏
  • 举报
回复
top.js

document.write('<table align=center width=770>');
document.write(' <tr>');
document.write(' <td>');
document.write(' <a href="aboutus.html">ABOUT US</a> | <a href="aboutus.html">ABOUT US</a> | <a href="aboutus.html">ABOUT US</a> ');
document.write(' </td>');
document.write(' </tr>');
document.write('</table>');


index.html

<html>
<head>
<title>home</title>
</head>
<body>
<script language="javascript" src="top.js"></script>


<table>
....


suhongwei 2004-04-24
  • 打赏
  • 举报
回复
最好最简单的方法就是IFRAME标记了
wanghr100 2004-04-18
  • 打赏
  • 举报
回复
那就用别的办法啦..

方法一:
在html 页面 include 其它页面
<IE:Download ID="oDownload" STYLE="behavior:url(#default#download)" />
<body onload="oDownload.startDownload('tt.htm',onDownloadDone)">
<span id=showImport></span>
<script language=javascript><!--
function onDownloadDone(downDate)
{
document.all.showImport.innerHTML=downDate; //这种方法被讨论出来是最好的
}
//--></script>
方法二:
<object data="xxx.htm" type="text/x-scriptlet" width="158" height="50" align="top" marginWidth=0 marginHeight=0>
</object>
hellospring 2004-04-18
  • 打赏
  • 举报
回复
用object比较好
soso119 2004-04-16
  • 打赏
  • 举报
回复
還是做櫃架了~
kinglately 2004-04-16
  • 打赏
  • 举报
回复
做之前就应该全部做成ASP页的,不管有没有动态信息。方便以后扩充!
threezxw 2004-04-16
  • 打赏
  • 举报
回复
这个方式只能在asp页面里才起作用。
即在asp页面里调用asp页面或者html页面
pfc001 2004-04-16
  • 打赏
  • 举报
回复
做框架吧
reidli 2004-04-15
  • 打赏
  • 举报
回复
实在不行就做框架吧
reidli 2004-04-15
  • 打赏
  • 举报
回复
可以用<iframe>试试
sailor76 2004-04-15
  • 打赏
  • 举报
回复
我的就是.htm网页,改为asp扩展名,真的可以了。不过这也不方便,我不能把所有的网页都改为asp扩展名的呀。有其他替代方法吗?
xkou 2004-04-15
  • 打赏
  • 举报
回复
asp 可以 ,html 不可以使用

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧