Java小项目之:教你做电子日历!(18)

var pane = document.createElement(\"DIV\");

pane.className = \"pane\";

pane.style.width = pane_height + \"px\";

pane.style.height = pane_height + \"px\";

pane.style.lineHeight = pane_height + \"px\";

pane.style.textAlign = \"center\";

pane.style.cssFloat = \"left\";

pane.innerHTML = i - start + 1;

pane.style.cursor = \"pointer\";

pane.onmouseover = function(){

this.style.backgroundColor = '#0FF';

if(date == (i - start + 1))

pane.style.backgroundColor = '#0FF';

推荐阅读