?使用smilesImages [0] =" smiles / 007.gif" in< img id =" sigsviewer" SRC = [英] ? use smilesImages[0]="smiles/007.gif" in <img id="sigsviewer" src=

查看:66
本文介绍了?使用smilesImages [0] =" smiles / 007.gif" in< img id =" sigsviewer" SRC =的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;


我有一些这些;


sigsImages [0] =" sigs / finished1.jpg"

sigsImages [1] =" sigs / foghorn.jpg"

我有更低;


< td align = " center">< img id =" sigsviewer" src =" sigs / alien.gif">< / td>


我可以使用sigsImages [0]代替sigs / alien.gif吗?

问大卫。 E. Goble
http://www.pnc.com.au/ ~degoble

degoble [AT] pnc.com.au | dgoble [AT] pnc.com.au

Po Box 648(9 Murray St),Kingscote,Kangaroo Island SA 5223

解决方案

大卫。 E. Goble说:


大家好;

我有一些这些;

sigsImages [0] =" sigs / finished1.jpg"
sigsImages [1] =" sigs / foghorn.jpg"

我有更低;

< td align =" center">< img id =" sigsviewer" src =" sigs / alien.gif">< / td>

我可以使用sigsImages [0]代替sigs / alien.gif吗?



编号上面的行是Javascript。以下是HTML。

语法看起来很相似,但你不能混用它们。


" Lee" < RE ************** @ cox.net>在消息中写道

news:ct ********* @ drn.newsguy.com ...

David。 E. Goble说:


大家好;

我有一些这些;

sigsImages [0] =" sigs / finished1.jpg"
sigsImages [1] =" sigs / foghorn.jpg"

我有更低;

< td align =" center">< img id =" sigsviewer" src =" sigs / alien.gif">< / td>

我可以使用sigsImages [0]代替sigs / alien.gif吗?


不。上面的行是Javascript。以下是HTML。
语法看起来很相似,但你不能混用它们。




实际上你可以但你可能不想要to。


< td align =" center">

< script type =" text / javascript">

document.write(''< img id =" sigsviewer" src ="''+ sigsImages [0] +''">'');

< ; / script>

< / td>





< script type =" text / javascript">

document.write(''< td align =" center">< img id =" sigsviewer" src ="''+

sigsImages [0] +''">< / td>'');

< / script>


It只能在支持JavaScript的浏览器中运行。


David。 E. Goble写道:

大家好;

我有一些这些;

sigsImages [0] =" sigs / finished1.jpg"
sigsImages [1] =" sigs / foghorn.jpg"

我有更低;

< td align =" center">< img id =" sigsviewer" src =" sigs / alien.gif">< / td>

我可以使用sigsImages [0]代替sigs / alien.gif吗?
问候David。 E. Goble
http://www.pnc.com.au/ ~degoble
degoble [AT] pnc.com.au | dgoble [AT] pnc.com.au
Po Box 648(9 Murray St),Kingscote,Kangaroo Island SA 5223




我有同样的问题,贴在你的后面。


基本上,我们都在问:如何从我的HTML中获取所有这些绝对值的b $ b参考值。 js或.css文件,我可以

集中操作它们?对吗?


Hi All;

I have a few of these;

sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
lower I have;

<td align="center"><img id="sigsviewer" src="sigs/alien.gif"></td>

Can I use sigsImages[0] instead of "sigs/alien.gif"?
Regards David. E. Goble
http://www.pnc.com.au/~degoble
degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223

解决方案

David. E. Goble said:


Hi All;

I have a few of these;

sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
lower I have;

<td align="center"><img id="sigsviewer" src="sigs/alien.gif"></td>

Can I use sigsImages[0] instead of "sigs/alien.gif"?



No. The lines above are Javascript. Those below are HTML.
The syntax looks similar, but you can''t mix them.


"Lee" <RE**************@cox.net> wrote in message
news:ct*********@drn.newsguy.com...

David. E. Goble said:


Hi All;

I have a few of these;

sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
lower I have;

<td align="center"><img id="sigsviewer" src="sigs/alien.gif"></td>

Can I use sigsImages[0] instead of "sigs/alien.gif"?



No. The lines above are Javascript. Those below are HTML.
The syntax looks similar, but you can''t mix them.



Actually you can but you probably wouldn''t want to.

<td align="center">
<script type="text/javascript">
document.write(''<img id="sigsviewer" src="'' + sigsImages[0] + ''">'');
</script>
</td>

or

<script type="text/javascript">
document.write(''<td align="center"><img id="sigsviewer" src="'' +
sigsImages[0] + ''"></td>'');
</script>

It would only run in JavaScript-enabled browsers.


David. E. Goble wrote:

Hi All;

I have a few of these;

sigsImages[0]="sigs/finished1.jpg"
sigsImages[1]="sigs/foghorn.jpg"
lower I have;

<td align="center"><img id="sigsviewer" src="sigs/alien.gif"></td>

Can I use sigsImages[0] instead of "sigs/alien.gif"?
Regards David. E. Goble
http://www.pnc.com.au/~degoble
degoble[AT]pnc.com.au | dgoble[AT]pnc.com.au
Po Box 648 (9 Murray St), Kingscote, Kangaroo Island SA 5223



I have the same question, posted just after yours.

Essentially, we are both asking: How can I get all of those ABSOLUTE
REFERENCES out of my HTML, and into some .js or .css file which I can
manipulate them centrally? Right?


这篇关于?使用smilesImages [0] =&quot; smiles / 007.gif&quot; in&lt; img id =&quot; sigsviewer&quot; SRC =的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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