Hello以下函数包含一个在localhost中正常工作的映像,但每当我将其上传到cpanel时,它都不能在线工作。代码不在线工作,但在localhost中工作
下面是代码:
function CONshowElements()
{
var Construction = "<center><img src='images/SCALE Construction.PNG'></center><br>The construction company with several years of experience in projects valued over millions of USD having Service and Quality with satisfaction and appreciation of the clients.";
document.getElementById("contents").innerHTML = Construction;
}
图像/ SCALE Construction.PNG存在于您的实时环境中吗?你有没有检查控制台的错误?你是什么意思'不工作'? **更加详细一些**。 – George 2014-09-30 09:25:09
不工作意味着它显示的文本,但不是图像 – Rokhsar 2014-09-30 09:27:39