//********************************************************* // 目的: 验证信息 // 输入: 无 // 返回: 无 //********************************************************* var strFormAction; var objImageValid; function VerifyMessage() {
var strName=document.getElementById("inpName").value; var strEmail=document.getElementById("inpEmail").value; var strHomePage=document.getElementById("inpHomePage").value; var strArticle;
//ajax comment begin $.post(document.getElementById("frmSumbit").action, { "inpAjax":true, "inpID":$("#inpId").val(), "inpVerify":(document.getElementById("inpVerify")?$("#inpVerify").val():""), "inpEmail":strEmail, "inpName":strName, "inpArticle":strArticle, "inpHomePage":strHomePage }, function(data){ var s =data; if((s.search("faultCode")>0)&&(s.search("faultString")>0)) { alert(s.match(". ?")[0].replace("","").replace("","")) } else{ var i=Math.round(Math.random()*1000) var s ="
//********************** ********************************** // Purpose: Save information // Input: None // Return: None //************************************ *********************** function SaveRememberInfo() {
var strName=document.getElementById("inpName").value ; var strEmail=document.getElementById("inpEmail").value; var strHomePage=document.getElementById("inpHomePage").value; var bolRemember=document.getElementById("chkRemember"). checked;
//********************************** *********************** // Purpose: Automatically insert and replace // Input: None // Return: None //********************************************** ************ var objActive; function GetActiveText(objHTML) { objActive=objHTML; if(document.selection){ var obj= document.getElementById(objHTML); 🎜> if(strText==""){return("")} var obj=document.getElementById(objHTML); if(document.selection){ if (obj.currPos){ if(bolReplace && (obj.value=="")){ obj.currPos.text=strText else{ obj.currPos.text =strText } 🎜> obj.value=obj.value. slice(0,obj.selectionStart) strText obj.value.slice(obj.selectionEnd,obj.value.length) } else{ else{ obj.value=obj.value.slice(0,obj .selectionStart) strText obj.value.slice(obj.selectionStart,obj.value.length) } } //obj.focus(); }
function ReplaceText(objHTML,strPrevious,strNext) { var obj=document.getElementById(objHTML); var strText; if(document.selection && document.selection.type == "Text"){ if (obj.currPos){ var range = document.selection.createRange(); range.text = strPrevious range.text strNext; return(""); } else{ strText=strPrevious strNext; return(strText); } } else{ if(obj.selectionStart || obj.selectionEnd){ strText=strPrevious obj.value.slice(obj.selectionStart,obj.selectionEnd) strNext; return(strText); } else{ strText=strPrevious strNext; return(strText); } } } //*********************************************************
//********************************************************* // 目的: ShowMedia By UBB // 输入: 无 // 返回: 无 //********************************************************* function ShowMedia(objHTML,strURL,strType,intWidth,intHeight) { var strMedia=""; var blnShow = false; var objMedia=objHTML;
if(objMedia.innerHTML){blnShow = true};
var re = new RegExp(".[a-z0-9] $","ig");
var strExtend = re.exec(strURL); strExtend="|" String(strExtend).toLowerCase() "|";
objEdit=document.getElementById(objEdit) objEdit.value="" var aryChecks = document.getElementsByTagName("input"); for (var i = 0; i if((aryChecks[i].type=="checkbox")&&(aryChecks[i].id.indexOf("edt")!==-1)){ if(aryChecks[i].checked){ objEdit.value=aryChecks[i].value "," objEdit.value } } }
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn