麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 開發 > JavaScript > 正文

js原聲實現簡單的微信聊天功能

2020-03-24 18:39:55
字體:
來源:轉載
供稿:網友
又是一波福利!原聲的js實現了一個簡單的微信聊天功能,拿去研究吧,不要錢!更多免費好玩的源碼盡在PHP

1W)B$RI~5G1$3GPU}ZRR[9P.png

代碼:

 !DOCTYPE html  html  head  meta charset= utf-8 /  title 微信聊天 /title  link rel= stylesheet type= text/css href= css/style.css /  style  margin: 0;.top{ width: 310px; padding: 10px 20px; background-color: gray; border-top-left-radius: 5px; border-top-right-radius: 5px; font-size: 18px; font-weight: bold;0 color: white;.content{ background-color: white;select{ border: 2px solid gray; background: white;  width: 350px; height: 470px; padding: 10px;.send{ width: 310px; padding: 10px 20px; background-color: gray; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px;.chat{.box{ float: left; margin: 20px 120px;body{ width: 100%; background-image: url(../img/bg.jpg);.outer{ width: 90%; margin: 10px auto;.sText{ width: 220px; height: 25px; border-radius: 5px; font-size: 15px;.btn{ width: 65px; height: 30px; border-radius: 5px; float: right; text-align: center; font-size: 18px; color: white; background-color: limegreen;option{ font-size: 15px; max-width: 325px; height: auto; border: 0.5px solid gainsboro; border-radius: 8px; padding: 10px; margin: 10px; background-color: greenyellow; margin-left: 158px; margin-top: 10px; margin-bottom: 10px; max-width: 200px; /style  script type= text/javascript src= js/my.js /script  script  window.onload =function () { function g(id) { return document.getElementById(id); g( leftSendBtn ).addEventListener( click ,leftSendB); g( rightSendBtn ).addEventListener( click ,rightSendB);function leftSendB() { function g(id) { return document.getElementById(id); var text = document.getElementById( leftText ).value; if(text.trim()!= ){ var leftContent = document.getElementById( leftContent  var rightContent = g( rightContent  var option = document.createElement( option  var len = text.length; option.style.width = len * 15 + len*2 + px  option.style.marginLeft = 350 - (len * 15 + len*2) - 72 + px  option.innerHTML = text; leftContent.appendChild(option); var option1 = document.createElement( option  option1.innerHTML = text; option1.style.backgroundColor = white  option1.style.marginLeft = 10px  option1.style.width = len * 15 + len*2 + px  rightContent.appendChild(option1); document.getElementById( leftText ).value = function rightSendB() { function g(id) { return document.getElementById(id); var text = g( rightText ).value; if(text.trim()!= ) var leftContent = document.getElementById( leftContent  var rightContent = g( rightContent  var option = document.createElement( option  var len = text.length; option.style.width = len * 15 + len*2 + px  option.style.marginLeft = 350 - (len * 15 + len*2) - 72 + px  option.innerHTML = text; rightContent.appendChild(option); var option1 = document.createElement( option  option1.innerHTML = text; option1.style.backgroundColor = white  option1.style.marginLeft = 10px  option1.style.width = len * 15 + len*2 + px  leftContent.appendChild(option1); g( rightText ).value =  /script  /head  body  p >

免費拿去研究吧!更多好的源碼盡在PHP ,關注我們給你好看~

相關推薦:

html會動的小狗狗源碼

JavaScript獲取當前網頁源碼的實例

Java實現坦克大戰游戲的源碼示例

以上就是js原聲實現簡單的微信聊天功能的詳細內容,html教程

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 国产精品成人一区二区三区电影毛片 | 国产成人午夜高潮毛片 | 国产午夜电影 | 成年人黄视频 | 精国产品一区二区三区 | 极品xxxx欧美一区二区 | 中文字幕免费在线看 | 九九热精品在线 | 久草在线视频精品 | 黄色免费播放网站 | 久久久大片| 91午夜免费视频 | 欧美成年人视频在线观看 | 久久国产中文 | 日日草天天干 | 手机在线看片国产 | 欧美精品一级 | 黄色特级一级片 | 精品人成| 中文字幕亚洲视频 | 在线看小早川怜子av | 九草在线视频 | 97香蕉超级碰碰久久免费软件 | 亚洲性生活视频 | 久久久久久久高清 | 男女亲热网站 | 在线看一区二区三区 | 精品国产一区在线观看 | 欧美视频国产精品 | 欧美成人精品一区二区三区 | 羞羞色在线观看 | 91专区在线观看 | 人人看人人艹 | 毛片免费观看完整版 | 新久草视频 | 国产免费观看视频 | 国产精品久久久久一区二区 | 欧美18videos性处按摩 | 免费观看一级欧美大 | 欧美不卡 | 海外中文字幕在线观看 |