新手求助php日历问题
< ;script type="text/javascript">
function test(){
var tb = document.getElementsByTagName("table")[0];
var trs = t b.getElementsByTagName( "tr");
for(var i=0;i
var td = trs[i].firstChild;
var tdl = trs[i].lastChild;
td.setAttribute("style","color:red");
tdl.setAttribute("style","color:red");
}
var tds = tb.getElementsByTagName("td");
for(var j=0;j
tds[j].onmouseover = function(){
for(var k=0;k
tds[k].className="";
}
this.className="tdborder";
tds[j].onclick = function(e){
var div = document.getElementsByTagName("div");
用(var a=0;a
document.body.removeChild(div[a]);
}
// var w = this.cellIndex;
/ / alert(w);
var e = e || window.event;
var day = this.innerHTML;
var d = document.createElement("div");
d.style.border = "1px solid red";
d.style .position = "absolute";
d.style.zIndex = 22;
d.style.left = e.clientX 20 "px";