摘要:
window.onload = function () { var div = getClassNames('lg' , 'div'); function getClassNames(classStr,tagName){ if (document.getElementsByClassName) { 阅读全文
摘要:
//屏蔽右键菜单document.oncontextmenu = function (event){ if(window.event){ event = window.event; }try{ var the = event.srcElement; if (!((the.tagName == "IN 阅读全文
摘要:
Date curDate = new Date();var preDate = new Date(curDate.getTime() - 24*60*60*1000); //前一天var nextDate = new Date(curDate.getTime() + 24*60*60*1000); 阅读全文
摘要:
<script> function getInfo() { var s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += " 网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域宽:"+ 阅读全文