国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 開發(fā) > PHP > 正文

采用行寫方式的聊天程序(之三)

2024-05-04 23:01:54
字體:
供稿:網(wǎng)友


ltsayno.php
該程序?yàn)橄到y(tǒng)的核心,處理所關(guān)聯(lián)的所有函數(shù)信息

<?session_start();?>
<html>
<head>
<title>發(fā)言區(qū)</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<style>
body{background:59acff;color:black}
body{font-size:9pt;line-height:160%}
table{font-size:10.5pt}
input{font-size:9pt}
a{color:black;text-decoration:none}
a:hover{text-decoration:underline}
</style>
<script language=javascript>

//大家的信息
function dj(){
  document.forms[0].towho.options[0].value="大家";
  document.forms[0].towho.options[0].text="大家";
  document.forms[0].saystemp.focus();
}

//動(dòng)作,把該動(dòng)作的信息添加到發(fā)言板中
function rc(list){
  if (list!="0"){
     document.forms[0].saystemp.value=list;
     document.forms[0].saystemp.focus();
  }
}


function backsays() {
  document.forms[0].saystemp.value=document.forms[0].oldsays.value;
  document.forms[0].saystemp.focus();
  return true;
}


function checksays(){
  if(document.fyq.saystemp.value==""){
    alert("請(qǐng)輸入發(fā)言。");
    document.fyq.saystemp.focus();
    return false;
   }
  if(document.fyq.saystemp.value==document.fyq.oldsays.value){
     alert("內(nèi)容不可重復(fù)。");
     document.fyq.saystemp.focus();
     document.fyq.saystemp.select();
     return false;
    }
    document.fyq.oldsays.value=document.fyq.saystemp.value;
    document.fyq.saystemp.value="";
    document.fyq.saystemp.focus();
    document.fyq.send.disabled=1;
    settimeout("document.fyq.send.disabled=0",30);
    return true;
}

function cls(){
  parent.f1.location.href="about:blank";
  settimeout("write(1)",500);
}

function write(cls){
  var ffsize;   
  var lheight;  
  if (cls==1){
     ffsize=parent.f2.document.fyq.fontsize.value;
     lheight=parent.f2.document.fyq.lineheight.value;
   }else{
     ffsize='10.5';
     lheight='145';
   }
  parent.f1.document.open();
  parent.f1.document.writeln("<html><head><title>對(duì)話區(qū)</title>");
  parent.f1.document.writeln("<meta http-equiv=content-type content="text/html; charset=gb2312">");
  parent.f1.document.writeln("<style type=text/css>.t{color:ff00ff;font-size:9pt;}");
  parent.f1.document.writeln("body{font-family:"宋體";font-size:"+ffsize+"pt;line-height:" + lheight + "%;}a{text-decoration:none}a:hover{text-decoration:underline}a:visited{color:blue}</style></head>");
  parent.f1.document.writeln("<script language="javascript1.1">");
  parent.f1.document.writeln("var autoscrollon=1;");
  parent.f1.document.writeln("var scrollonfunction;var scrollofffunction;");
  parent.f1.document.writeln("function scrollit()");
  parent.f1.document.writeln("{if(!parent.f2.document.fyq.as.checked)");
parent.f1.document.writeln("{autoscrollon=0;return true;}else{autoscrollon=1;startup();return true;}}");
parent.f1.document.writeln(" function scrollwindow()");
parent.f1.document.writeln("{if(autoscrollon==1)");
parent.f1.document.writeln("{this.scroll(0,65000);settimeout('scrollwindow()',200);}}");
parent.f1.document.writeln("function scrollon(){autoscrollon=1;scrollwindow();}");
parent.f1.document.writeln("function scrolloff(){autoscrollon=0;}");
parent.f1.document.writeln("function startup()");
parent.f1.document.writeln("{parent.onblur=scrollonfunction;");
parent.f1.document.writeln("parent.onfocus=scrollofffunction;scrollwindow();}");
parent.f1.document.writeln("scrollonfunction=new function('scrollon()');");
parent.f1.document.writeln("scrollofffunction=new function('scrolloff()');");
parent.f1.document.writeln("startup();</script>");
parent.f1.document.writeln("<body bgcolor=ffffff text=000000>");
parent.f1.document.writeln("<hr size=1><center>歡迎光臨php無刷新功能聊天室!</center><hr size=1>");
parent.tforlt4.location.href="lt4.php";
document.fyq.saystemp.focus();
}


function sw(list){
document.fyq.towho.options[0].value=list;
document.fyq.towho.options[0].text=list;
document.fyq.saystemp.focus();
}

function sw11(username){
  var usna;
  usna=username.substring(1,username.length-1);
  document.fyq.towho.options[0].value=usna;
  document.fyq.towho.options[0].text=usna;
  document.fyq.saystemp.focus();
  return;
}

function w(un,sa,tn,dt){
  var show;
  show="【"+tn+" 發(fā)言】";
  show=show+"<a href=javascript:parent.f2.sw('[" + un + "]'); target=f2>" + un + "</a>:" + sa + "<font class=t>"
  show=show + " (" + dt + ")</font><br>";
  parent.f1.document.writeln(show);
}

function nw(zt,un,tw,sa){
   parent.f2.document.fyq.addsign.options[0].selected=true;
   var show="";
  var sw_un=un.indexof(">");
  var yun=un.substring(sw_un+1,un.length-7);
  var name_self="<?echo $uname;?>";
  if (zt==0){
     if (name_self!=un && name_self!=tw){
        show="<a href=javascript:parent.f2.sw('" + un + "'); target=f2>" + un + "</a>對(duì)"+"<a href=javascript:parent.f2.sw('" + tw + "'); target=f2>" + tw + "</a>說:"+sa+"<br>";
       parent.f1.document.writeln(show);
     }else{
        if(name_self==un){
           show="<font color=red>〖"+un+"〗</font>對(duì)";
           show=show+"<a href=javascript:parent.f2.sw('" + tw + "'); target=f2>" + tw + "</a>說:" + sa + "<br>";
           parent.f1.document.writeln(show);
        }else{
             show="<a href=javascript:parent.f2.sw('" + un + "'); target=f2>" + un + "</a>對(duì)";
             show=show+"<font color=red>〖"+tw+"〗</font>說:" + sa + "<br>";
             parent.f1.document.writeln(show);
             }
       }
   }
}

function change_color(){
   var change_color=document.fyq.sayscolor.options[document.fyq.sayscolor.selectedindex].value;
   document.fyq.saystemp.style.color=change_color;
   document.fyq.saystemp.focus();
}
</script>

</head>
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 娄烦县| 潼关县| 长治市| 含山县| 泉州市| 衡山县| 湖北省| 沽源县| 谢通门县| 印江| 绥江县| 南宁市| 巨野县| 科技| 鄄城县| 巨野县| 鸡东县| 安康市| 苗栗市| 静乐县| 盘山县| 库尔勒市| 临江市| 东乌珠穆沁旗| 体育| 古交市| 松江区| 西青区| 沂水县| 乌鲁木齐县| 清徐县| 怀来县| 晋城| 徐水县| 弋阳县| 武威市| 巨野县| 瓦房店市| 化州市| 祁门县| 湟中县|