HTML SAMPLE: 字体上移下移 + 禁止右键 + 判断浏览器

百度 JavaTM programming language.
JavaTM programming language.

 

判断浏览器

 

 

table宽度布局

 
java 获取各种时间: 年月日时分秒
Calendar cal = Calendar.getInstance();
cal.setTime(criteriaHK.getToDate());
cal.add(Calendar.HOUR, 23);
cal.add(Calendar.MINUTE, 59);
cal.add(Calendar.SECOND, 59);
criteriaHK.setToDate(cal.getTime());
 
 操作checkbox
function setKeywordSearchCheckboxes() {
	if ('Y' == '<%=keywordSearch%>') {
      var checkboxArr = document.getElementsByName("<%=CustomerSearchPage.KEYWORD_SEARCH_CHECKBOX%>");
      if (checkboxArr.length > 0) {
        for (var i=0; i
 
 java script 处理jsp请求
//--------------------------------------------------------------


//--------------------------------------------------------------
function gotoPage(page, anchor) {
    document.theForm.action = "<%=Text.get("front_controller")%>?" + "action="+page;
    if (anchor != null) {
        document.theForm.action += appendBrowserTimeInfo() + "#" + anchor;
    } else {
        document.theForm.action += appendBrowserTimeInfo();
    }
    document.theForm.submit();
    submitTime = new Date().getTime();
}
 
// 获取客户端的时间
//--------------------------------------------------------------
 
安全考虑: 去除输入的危险字符
public class HtmlEncoder {
    public static String filterXssCharacters(String inStr) {
        if (inStr != null) {
            // "<",">","=","<","=",">"
            inStr = inStr.replaceAll("<","");
            inStr = inStr.replaceAll(">","");
            inStr = inStr.replaceAll("=","");
            inStr = inStr.replaceAll("<","");
            inStr = inStr.replaceAll("=","");
            inStr = inStr.replaceAll(">","");
            inStr = inStr.replaceAll("[{]","");
            inStr = inStr.replaceAll("}","");
            inStr = inStr.replaceAll("//","");
            inStr = inStr.replaceAll(";","");
            inStr = inStr.replaceAll("{","");
            inStr = inStr.replaceAll("}","");
            inStr = inStr.replaceAll("//","");
            inStr = inStr.replaceAll(";","");
            inStr = inStr.replaceAll("\\(", "");
            inStr = inStr.replaceAll("(", "");
            inStr = inStr.replaceAll("\\)", "");
            inStr = inStr.replaceAll(")", "");
            inStr = inStr.replaceAll("\\|\\|", "");
            inStr = inStr.replaceAll("||", "");
        }
        return inStr;
    }
}
 
 判断form中的控件的类型 
function hasUserInput(frm) {
    var f = frm.length;
    var inputCount = 0;
    while (f--) {
        if ((frm[f].value != '') && (frm[f].type == "text")) {
            inputCount++;
            break;
        }
    }
    return inputCount;
}
 
 html中的热点 

 

 

Html 分组上拉框

来源: http://www.myexception.cn/HTML-CSS/965224.html
HTML SAMPLE: 字体上移下移 + 禁止右键 + 判断浏览器_第1张图片
 

你可能感兴趣的:(HTML SAMPLE: 字体上移下移 + 禁止右键 + 判断浏览器)