<script type="text/javascript">
window.onload = function () {
changeBorder();
}
function changeBorder() {
var tdCollections = document.getElementsByTagName("td");
for (var i = 0; i < tdCollections.length; i++) {
if (tdCollections.attributes["locked"] != null && tdCollections.attributes["locked"].value == "true") {
if (tdCollections.parentNode.rowIndex == (tdCollections.parentNode.parentNode.childElementCount - 1)) {
tdCollections.style.borderBottomColor = "WindowText";
tdCollections.style.borderBottomWidth = "3px";
}
if (tdCollections.cellIndex == (tdCollections.parentNode.childElementCount - 1)) {
tdCollections.style.borderRightColor = "WindowText";
tdCollections.style.borderRightWidth = "3px";
}
else {
tdCollections.style.borderRightColor = "gray";
}
}
}
}
这个代码什么意思 |
|