⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 js.js

📁 在线聊天系统
💻 JS
字号:
var i=0;

function check(theForm) {
if(theForm.B3.value=="回复消息"){
	theForm.B3.value="发送消息"
		
	theForm.Message.readOnly =false
theForm.Message.value=""
	theForm.Message.focus ()
	return false
}
else{
i=theForm.Message.value;
if(theForm.Message.value == "" ) {
alert("不能发空讯息!");
return false;
}else if (theForm.Message.value.length > 1000){
alert("对不起,您的留言不能超过 1000 个字节!");
return false;
}else
	try{
	//发送消息成功后,把bicq主页面显示到最前端(获取焦点)
	window.opener.focus () 
	}catch(e){}
	return true
//i++;
  }  //if (i>1) {
   //alert('正在发送讯息,请耐心等待!'); 
   //return false;
   //  }
//return true;
}
function presskey(eventobject)
{
  if(event.ctrlKey && window.event.keyCode==13)
  {
 this.document.PostTopic.submit();

  }
}


function ShowHideHistory(){
  if (document.all['ChatHistory'].style.display=='none')               
 {
 document.all['ChatHistory'].style.display='';      //显示聊天记录
 window.resizeTo(370, 347); 
  }
  else
  {
 document.all['ChatHistory'].style.display='none';  //隐藏聊天记录
 window.resizeTo(370, 210);
  }
}

      
 
<!-- Begin           
function highlightie5() {   
var el=event.srcElement;        
if (el.className == "menuitems") { 
el.style.color='#ffffff'          
el.style.backgroundColor = "highlight";                   
  }      
}      
function lowlightie5() { 
var el=event.srcElement;           
if (el.className == "menuitems") {           
el.style.color='#000000'
el.style.background=''         
   }           
}           
//  End -->     

function openScript(url, width, height ,isbars) {
        var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars='+ isbars + ',status=no,toolbar=no,menubar=no,location=no ');
}
   
 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -