真正指定的方式应该如下:
[JavaScript] 纯文本查看 复制代码 window.onload = function() {
var webname = document.getElementById("webname");
webname.innerHTML="站点标题";
var weburl = document.getElementById("weburl");
weburl.innerHTML="<a href='http://www.koemall.com'>[url]www.KOEmall.com[/url]</a>";
var webdemo = document.getElementById("webdemo");
webdemo.innerHTML="www.KOEmall.com";
var webnote = document.getElementById("webnote");
webnote.innerHTML="版权说明";
}
[HTML] 纯文本查看 复制代码 <span id="webname"></span>
<span id="webdemo"></span>
<span id="weburl"></span>
<span id="webnote"></span>
|