1.创建链接
script language="javascript"
var o = document.body;
//创建链接
function createA(url,text)
{
var a = document.createElement("a");
a.href = url;
a.innerHTML = text;
a.style.color = "red";
o.appendChild(a);
}
createA("http://www.webjx.com/","网页教学网");
/script
2.创建DIVscript language="javascript"
var o = document.body;
//创建DIV
function createDIV(text)
{
var div = document.createEleme...
[ 查看全文 ]