獲取代碼 以後 與編輯的形式 把代碼添加進去然後保存 在用HTML 打開就出來啦。
㈡ 在網頁中插入什麼代碼可以直接與對方聊天
在這里按提示設置一下幾個步驟後即可生成代碼http://is.qq.com/webpresence/code.shtml
<FORM action=http://wpa.qq.com/msgrd method=get target=_blank>
<TBODY>
<TR>
<TD vAlign=top align=left bgColor=#eeeeee height=20>
<DIV align=center><SPAN class=STYLE1><FONT
color=#ff0000>QQ強制聊天器:</FONT></SPAN><BR><BR><INPUT type=hidden
value=1 name=V> <INPUT type=hidden value=1 name=V> <INPUT type=hidden
value=www.QQEW.COM name=Site> <INPUT type=hidden value=yes name=Menu>
<INPUT onBlur="if (value ==''){value='輸入對方QQ號'}" onmouseover=this.focus()
onfocus=this.select() onClick="if(this.value=='輸入對方QQ號')this.value=''"
maxLength=15 value=輸入對方QQ號 name=Uin> <INPUT id=butn type=submit value=點擊開始> <LABEL></LABEL><BR><BR><FONT
color=#0000ff>特點:無需對方同意,也無需加對方為好友,只要<FONT
color=#ff0000>輸入對方QQ號</FONT>,想怎麼聊就怎麼聊!</FONT>
</DIV></TD></TR></TBODY></FORM>
㈢ 登錄界面通過之後是怎麼生成自己的聊天窗口
生成聊天窗口具體執行步驟如下:
1、藉助聊天軟體生成js代碼
快商通是一款免費的在線客服系統,能夠生成為網頁實現自動彈出在線聊天窗口功能的js代碼。搜索快商通到達官網下載客服系統軟體並完成注冊,裂敬登錄後找到「設置中心」-「代碼生成」打開進入代碼生成頁面,可以直接拿到我們需要的js代碼(如果是移動網站,記得先點擊頁面上的移動設備圖標選項)。
客服軟體後台
生成在線聊天窗口js代碼
2、將js代碼添加到網頁html源碼中
拿到代碼就已者源和經成功一半了,緊接著打開網站後台,找到名為「footer」的模板文件,打開文件把上一步獲取到的代碼添加到第一行或最後一行,再點擊保存就可以了。當再訪問網頁時,就會發現頁面出現了迷你對話窗口,接下來我們要讓他能夠根據要求自動彈出。
3、設置自動彈出在線聊天窗口的觸發條件
在左側找到「圖標設置」首盯功能欄,點擊進入設置頁面。打開「迷你對話框」的功能按鈕,並直接點擊「迷你對話框」文字進入設置界面。
㈣ 如何在網頁上添加在線聊天窗口
1、實現用一抄個 (類索引數組 )來存儲 socket 資源和對應的用戶信息的方法代碼。
㈤ 網頁中彈出對話框然後輸入內容求代碼!!
用js做
var name=prompt("請輸入您的名字","");//將輸入的內容賦給變數 name ,
//這里需要注意的是,prompt有兩個參數,前面是提示的話,後面是當對話框出來後,在對話框里的默認值
if(name)//如果返回的有內容
{
alert("歡迎您:"+ name)
}
㈥ 求彈出網頁對話框代碼.net
其實這是js實現的效果,用模式脊友對話框即可
function open(url)
{
window.showModelessDialog(url,"test","status:false;dialogWidth:400px;dialogHeight:400px;");
}
目標文襪蘆件你可以用html寫好,然後
<a href="#" onclick="javascript:open('文件址址');return false;">鏈接告野帶</a>
這樣即可
㈦ 求簡單的網頁彈出對話框代碼
一般的dreamweaver 軟體都可以直接做出簡單彈出對話框 在行為命令-彈出信息
<script type="text/javascript">
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
</script>
<body onload="MM_popupMsg('歡迎光臨^^···')">
</body>
只要你稍微懂點javascript語言就可以搞出你想要的彈出對話框樣式···· 多自己看書學習
㈧ 急需一個java編程實現的簡單聊天窗口代碼
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
public class ClientDemo01 {
public static void main(String[] args){
JFrame f=new JFrame("AA");
JPanel p1=new JPanel();
JPanel p2=new JPanel();
JTextArea ta=new JTextArea(15,30);
ta.setEditable(false); //文本域只讀
JScrollPane sp=new JScrollPane(ta); //滾動窗格
JTextField tf=new JTextField(20);
JButton b=new JButton("發送");
p1.add(sp);
p2.add(tf);
p2.add(b);
f.add(p1,"Center");
f.add(p2,"South");
f.setBounds(300,300,360,300);
f.setVisible(true);
f.setResizable(false);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Socket socket=null;
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
try{
socket=new Socket("192.168.0.4",5000);
bis=new BufferedInputStream(socket.getInputStream());
bos=new BufferedOutputStream(socket.getOutputStream());
MyThread01 mt=new MyThread01(bis,ta);
mt.start();
}catch(Exception e){
e.printStackTrace();
}
b.addActionListener(new ButtonActionListener01(tf,ta,bos));
}
}
class ButtonActionListener01 implements ActionListener{
JTextField tf;
JTextArea ta;
BufferedOutputStream bos;
public ButtonActionListener01(JTextField tf,JTextArea ta,BufferedOutputStream bos){
this.tf=tf;
this.ta=ta;
this.bos=bos;
}
public void actionPerformed(ActionEvent e){
String message=tf.getText();
if(!message.equals("")){
tf.setText(""); //清空文本框
ta.append("AA:"+message+"\n"); //添加到文本域並換行
try{
bos.write(message.getBytes());
bos.flush();
}catch(Exception ex){
System.out.println("發送失敗");
}
}
}
}
class MyThread01 extends Thread{
BufferedInputStream bis;
JTextArea ta;
public MyThread01(BufferedInputStream bis,JTextArea ta){
this.bis=bis;
this.ta=ta;
}
public void run(){
try{
while(true){
byte[] b=new byte[100];
int length=bis.read(b);
String message=new String(b,0,length);
ta.append("BB:"+message+"\n");
}
}catch(Exception e){
e.printStackTrace();
}
}
} import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
import java.io.*;
public class ServerDemo01{
public static void main(String[] args){
JFrame f=new JFrame("BB");
JPanel p1=new JPanel();
JPanel p2=new JPanel();
JTextArea ta=new JTextArea(12,30); //文本域,第一個參數為行數,第二個參數為列數
ta.setEditable(false); //文本域只讀
JScrollPane sp=new JScrollPane(ta); //滾動窗格
JTextField tf=new JTextField(20);
JButton b=new JButton("發送");
p1.add(sp);
p2.add(tf);
p2.add(b);
f.add(p1,"Center");
f.add(p2,"South");
f.setBounds(300,300,360,300);
f.setVisible(true);
f.setResizable(false);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ServerSocket server=null;
Socket socket=null;
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
try{
server=new ServerSocket(5000);
//ta.append("等待AA連接...\n");
socket=server.accept();
//ta.append("AA已連接\n");
bis=new BufferedInputStream(socket.getInputStream());
bos=new BufferedOutputStream(socket.getOutputStream());
MyThread1 mt=new MyThread1(bis,ta);
mt.start();
}catch(Exception e){
e.printStackTrace();
}
b.addActionListener(new ButtonActionListener1(tf,ta,bos));
}
}
class ButtonActionListener1 implements ActionListener{
JTextField tf;
JTextArea ta;
BufferedOutputStream bos;
public ButtonActionListener1(JTextField tf,JTextArea ta,BufferedOutputStream bos){
this.tf=tf;
this.ta=ta;
this.bos=bos;
}
public void actionPerformed(ActionEvent e){
String message=tf.getText(); //獲取文本框中的內容
if(!message.equals("")){
tf.setText(""); //清空文本框
ta.append("BB:"+message+"\n"); //添加到文本域並換行
try{
bos.write(message.getBytes());
bos.flush();
}catch(Exception ex){
System.out.println("發送失敗!");
}
}
}
}
class MyThread1 extends Thread{
BufferedInputStream bis;
JTextArea ta;
public MyThread1(BufferedInputStream bis,JTextArea ta){
this.bis=bis;
this.ta=ta;
}
public void run(){
try{
while(true){
byte[] b=new byte[100];
int length=bis.read(b);
String message=new String(b,0,length);
ta.append("AA:"+message+"\n");
}
}catch(Exception e){
e.printStackTrace();
}
}
}
㈨ 進入網頁彈出歡迎對話框代碼
<%if session("up")="" then '每一個新進來的用戶都會提段森汪示,進來了握仔就不會再提示了
response.write "<script language=JavaScript>" & "alert('歡迎光臨本網站!');" & "</script>"
session("up")="春悄up"
session.timeout=30
response.end
end if%>