使用DOM的IE7 javascript不会输出动态文本? [英] IE7 javascript using DOM wont output Dynamic Text?

查看:57
本文介绍了使用DOM的IE7 javascript不会输出动态文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

感谢任何能够引导我朝正确方向前进的人:)


有趣的是,这在所有浏览器中都能正常工作但是Internet Explorer。

相当简单的目标......


得到一个src img元素属性并在图形下的网页上显示它(通过操作DOM元素)...(对于动态标签)

Thanks to anyone who may be able to steer me in the right direction :)

Interesting that this works fine in All Browsers BUT Internet Explorer.
fairly simple goal......

get a "src" img element attribute and display it (by manipulating DOM elements) on the webpage under a graphic...(for a dynamic label)

展开 | 选择 | Wrap | 行号

推荐答案


newPara.appendChild(newName);
newPara.appendChild(newName);



你没有声明变量newName。

You have no variable newName declared.


opps,谢谢你看...我忘了把它包含在原帖,再说明这是奇怪的事情,它在所有其他浏览器中运行良好,我试图一遍又一遍地看谷歌。我不知道在哪里寻找这个问题。

opps, thanks for the look...I forgot to include it in the Original post, Again heres the weird thing, It works great in all other browsers, and I have tried to look google over and over. Im not sure where to look for this issue.

展开 | 选择 < span class =codeDivider> | Wrap | 行号


src属性的值是多少?它是相对路径还是绝对路径?
What''s the value of the src attribute? Is it relative or an absolute path?


这篇关于使用DOM的IE7 javascript不会输出动态文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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