\"); editor_win.document.close(); } //获得编辑器中的内容 function getHTML(){ if(editor_body_textarea.style.display=="none"){ HTML=EDiaryEditor.iframe.contentWindow.document.body.innerHTML; }else{ HTML=$('editor_body_textarea').value; } return HTML; } //表单提交函数 function AttachSubmit(){ oInput.value=getHTML(); EDiaryEditor.delEditorRsave(); } //表单重置函数 function AttachReset(){ $('editor_body_textarea').value=oInput.value; EDiaryEditor.iframe.contentWindow.document.body.innerHTML=oInput.value; } //附件提交和重置信息 if(document.attachEvent) oForm.attachEvent("onsubmit",AttachSubmit) ; else oForm.addEventListener('submit',AttachSubmit,false); if (! oForm.submitEditor) oForm.submitEditor = new Array() ; oForm.submitEditor[oForm.submitEditor.length] = AttachSubmit ; if (! oForm.originalSubmit) { oForm.originalSubmit = oForm.submit ; oForm.submit = function() { if (this.submitEditor) { for (var i = 0 ; i < this.submitEditor.length ; i++) { this.submitEditor[i]() ; } } this.originalSubmit() ; } } if(document.attachEvent) oForm.attachEvent("onreset",AttachReset); else oForm.addEventListener('reset',AttachReset,false); if (! oForm.resetEditor) oForm.resetEditor = new Array() ; oForm.resetEditor[oForm.resetEditor.length] = AttachReset ; if (! oForm.originalReset) { oForm.originalReset = oForm.reset ; oForm.reset = function() { if (this.resetEditor) { for (var i = 0 ; i < this.resetEditor.length ; i++) { this.resetEditor[i]() ; } } this.originalReset() ; } } //读取cookie function readCookie(name) { var cookievalsue = ""; var search = name + "="; if(document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset != -1) { offset += search.length; end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; cookievalsue = unescape(document.cookie.substring(offset, end)) } } return cookievalsue; } //写入cookie function writeCookie(name, value, hours) { var expire = ""; if(hours != null) { expire = new Date((new Date()).getTime() + hours * 3600000); expire = "; expires=" + expire.toGMTString(); } document.cookie = name + "=" + escape(value) + expire + ";path=/"; } //调整框架尺寸 function AutoFit(){ var a = parent.document.getElementsByTagName("IFRAME"); for(var i=0; i

欢迎来到公赌船jcjc710