使用< script src =" content.js">< / script>调用外部文件而不是SSI。

使用< script src =" content.js">< / script>调用外部文件而不是SSI。

问题描述:

我想将content.htm(仅包含HTML

代码)的内容称为index.htm。


这通常由将index.htm重命名为index.shtml并使用此标记:


<! - #include file =" content.htm" - >


但我不想使用SSI。是否可以使用

来调用它:


< script src =" content.js">< / script>


如果是,content.js应该如何?

I would like to call the content of content.htm (containing only HTML
codes) into index.htm.

This is usually done by renaming index.htm to index.shtml and use this tag:

<!--#include file="content.htm" -->

But I do not want to use SSI. Is it possible to call it using something
like:

<script src="content.js"></script>

If yes, how should content.js look like?




蓝色?写道:


Blue? wrote:
我想将content.htm(仅包含HTML
代码)的内容调用到index.htm。

这是通常通过将index.htm重命名为index.shtml并使用此标记来完成:

<! - #include file =" content.htm" - >

但我不想使用SSI。是否可以使用以下内容来调用它:

< script src =" content.js">< / script>

如果是,content.js应该怎么样?
I would like to call the content of content.htm (containing only HTML
codes) into index.htm.

This is usually done by renaming index.htm to index.shtml and use this tag:

<!--#include file="content.htm" -->

But I do not want to use SSI. Is it possible to call it using something
like:

<script src="content.js"></script>

If yes, how should content.js look like?




在客户端上包含另一个文档的HTML元素是

< iframe src =&quot ; content.html"

width =" putsomewidthere"

height =" putsomeheighthere">< / iframe>


-


Martin Honnen
http ://JavaScript.FAQTs.com/


Martin Honnen写道:
Martin Honnen wrote:


蓝色?写道:


Blue? wrote:
我想将content.htm(仅包含HTML
代码)的内容调用到index.htm。

这是通常通过将index.htm重命名为index.shtml并使用此
标记来完成:

<! - #include file =" content.htm" - >

但我不想使用SSI。是否可以使用
类似的方式来调用它:

< script src =" content.js">< / script>

如果是的话,content.js应该怎么样?
I would like to call the content of content.htm (containing only HTML
codes) into index.htm.

This is usually done by renaming index.htm to index.shtml and use this
tag:

<!--#include file="content.htm" -->

But I do not want to use SSI. Is it possible to call it using
something like:

<script src="content.js"></script>

If yes, how should content.js look like?



在客户端上包含另一个文档的HTML元素是
< iframe src =" content.html"
width =" putsomewidthere"
height =" putsomeheighthere">< / iframe>


The HTML element to include another document on the client is
<iframe src="content.html"
width="putsomewidthere"
height="putsomeheighthere"></iframe>




否定。使用iframe将导致具有固定宽度的框创建为
。我需要自动调整单元格的宽度/相应地

到content.htm的内容。



Negative. Using iframe will cause a box with a fixed width to be
created. I need the width of the cell adjusted automatically/accordingly
to the content of content.htm.


在文章< d6 *** ********@news10.jaring.my>, su ******* @ myjaring.net

说...
In article <d6***********@news10.jaring.my>, su*******@myjaring.net
says...
我想将content.htm(仅包含HTML
代码)的内容称为index.htm。

这通常是通过将index.htm重命名为index.shtml并使用此标记来完成的:

<! - #include file =" content.htm" - >

但我不想使用SSI。是否可以使用以下内容来调用它:

< script src =" content.js">< / script>

如果是,content.js应该怎么样?
I would like to call the content of content.htm (containing only HTML
codes) into index.htm.

This is usually done by renaming index.htm to index.shtml and use this tag:

<!--#include file="content.htm" -->

But I do not want to use SSI. Is it possible to call it using something
like:

<script src="content.js"></script>

If yes, how should content.js look like?




我想猜的是完整的document.write()函数调用。


-

Hywel


杀死疯狂的青蛙
http://www.petitiononline.com/crzyfrg/