很多站长朋友们都不太清楚韩顺平php资源,今天小编就来给大家整理韩顺平php资源,希望对各位有所帮助,具体内容如下:
本文目录一览: 1、 跪求php好一点的教程 2、 谁有PHP的基础教程 3、 求php韩顺平讲ajax web多人离线聊天的源代码 跪求php好一点的教程【2】韩顺平老师php从入门到精通149讲百度网盘免费资源在线学习
链接:
?pwd=9993 提取码: 9993
【2】韩顺平老师php从入门到精通149讲 下载必看.txt 海量精品建站资源尽在青龙建站教程自学网.zip 更多建站教程请点击这里.url 点击获取解压密码.url 第149讲 开发自己的网上支付平台⑤-防止回调页面刷新.wmv 第148讲 开发自己的网上支付平台④-接收支付结果.wmv 第147讲 开发自己的网上支付平台③-发送支付请求.wmv 第146讲 开发自己的网上支付平台②-商家与易宝支付网关对接详解.wmv 第145讲 开发自己的网上支付平台①-网上支付的两种方式及其流程介绍.wmv 第144讲 php xml编程(11)-基于xml的在线词典评讲.wmv 第143讲 php xml编程(10)-SimpleXML.wmv 第142讲 php xml编程⑨-综合练习-基于xml的在线词典 phpdom使用xpath.wmv 第141讲 php xml编程⑧-phpdom编程(3) 综合练习-基于xml的在线词典.wmv 第140讲 php xml编程⑦-phpdom编程(2).wmv
谁有PHP的基础教程php教程(90.24G)百度网盘免费资源在线学习
链接:
?pwd=g5gh 提取码:g5gh
php教程(90.24G)
29.-react前后端分离(电影项目) 28.小程序(laravel教育系统) 27.公众号开发 26.laravel框架 25.-sphinx+页面静态化 24.网站优化 23.MongoDB 22.Redis 21.Memcache缓存设计 20 Nginx服务器集群 19.ThinkPHP5品优购商城 18 Restful 17.ThinkPHP5框架 16.VUE项目
求php韩顺平讲ajax web多人离线聊天的源代码***userList.php*****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>用户列表</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<script type="text/javascript">
<!--
window.resizeTo(200,400);
function abc(obj){
obj.style.color="red";
obj.style.cursor="hand";
}
function abc2(obj){
obj.style.color="";
}
//跳出一个聊天的页面
function abc3(obj){
var name=obj.innerText;
window.open("chatRoom.php?name="+encodeURI(name),"_blank");
}
-->
</script>
</head>
<body>
好友列表<br>
<li id="li1" onmouseover="abc(this)" onclick="abc3(this);" onmouseout="abc2(this)">费尔普斯</li>
<li id="li2" onmouseover="abc(this)" onclick="abc3(this);" onmouseout="abc2(this)">谢忠君君</li>
<li id="li3" onmouseover="abc(this)" onclick="abc3(this);" onmouseout="abc2(this)">姚明</li>
</body>
</html>
***chatRoom.php****
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<?php
$name=$_GET['name'];
//空格.
$name=trim($name);
//从session
session_start();
$yourname=$_SESSION['username'];
?>
<title>聊天室</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
<!--
window.resizeTo(400,400);
window.setInterval("getMsg()",10000);
//定义一个ajax引擎
var xmlHttp;
function sendMsg(){
//根据情况建立ajax引擎
if(window.ActiveXObject){
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}else{
xmlHttp=new XMLHttpRequest();
}
if(xmlHttp){
var req="MessageController.php?getter=<?php echo $name;?>msg="+document.all.con.value;
xmlHttp.open("get",req,true);
//指定返回 的 函数
xmlHttp.onreadystatechange=chuli;
//发送
xmlHttp.send(req);
var sendMsg=document.all.con.value;
document.all.mytextares.value+="你说: "+sendMsg+"\r\n";
}
}
function chuli(){
if(xmlHttp.readyState==4){
if(xmlHttp.status==200){
//!!!
}
}
}
var xmlHttp2;
//每隔一定时间 从 服务器得到属于自己的 消息
function getMsg(){
//根据情况建立ajax引擎
if(window.ActiveXObject){
xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
}else{
xmlHttp2=new XMLHttpRequest();
}
if(xmlHttp2){
var req="GetMessageCl?getter=<?php echo $yourname; ?>sender=<?php echo $name; ?>";
xmlHttp2.open("get",req,true);
//指定返回 的 函数
xmlHttp2.onreadystatechange=chuli2;
//发送
xmlHttp2.send(req);
}
}
function chuli2(){
if(xmlHttp2.readyState==4){
if(xmlHttp2.status==200){
//取出消息的内容
var mesCon=xmlHttp2.responseXml.getElementsByTagName("msg");
var times=xmlHttp2.responseXml.getElementsByTagName("msgTime");
if(mesCon[0].firstChild.data!="null"){
//将 信息显示到文本预
for(var i=0;i<mesCon.length;i++){
var getMsg=mesCon[i].firstChild.data;
document.all.mytextares.value+="<%=name %>"+"说: "+getMsg+"\r\n";
}
}
}
}
}
-->
</script>
</head>
<body>
<center>
我的聊天室(您在和<font color="red"><?php echo $name;?></font>聊天) <br>
<textarea rows="10" id="mytextares" cols="50"></textarea><br/>
<input type="text" id="con">
<input type="button" onclick="sendMsg();" value="发送">
</center>
</body>
</html>
关于韩顺平php资源的介绍到此就结束了,不知道本篇文章是否对您有帮助呢?如果你还想了解更多此类信息,记得收藏关注本站,我们会不定期更新哦。
查看更多关于韩顺平php资源 韩顺平php视频教程的详细内容...