使用< script src =" content.js">< / script>调用外部文件而不是SSI。 [英] Call external file with <script src="content.js"></script> insteadof SSI.

查看:89
本文介绍了使用< 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 =" ; 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/


这篇关于使用&lt; script src =&quot; content.js&quot;&gt;&lt; / script&gt;调用外部文件而不是SSI。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆