Chat room Technology (2)-login

Source: Internet
Author: User
1. what is the login screen? You can see the login form in my bamboo. Here we provide the most basic login form item (1) login form lt; forw.hodpostnamechatformactionchatlogin. php? Actionenteronsubmitb#submit (); returntrue; targethowtodogt; (a) the chat form name is chatform. how can I use the login screen on the ac 1 page?
You can see the login form in my bamboo. Here we provide the most basic login form items.
(1) login form
<Form method = POST name = chatform action = chat/login. php? Action = enter onSubmit = "b1_submit (); return true;" target = "howtodo">
(A) the chat form is named chatform. I use action = enter as the portal to enter the chat room. If this parameter is not provided, the login page is displayed.
(B) when submitting a form, call bw.submit () to create a chat window.
(C) the target chat window is the howtodo window created by b1_submit ().

(2) form items
Nickname: <input type = text name = name size = 15 maxlength = "10">
Password: <input type = password name = pass size = 15 maxlength = "10">
<Input type = submit name = submit value = Login style = "width: 100">
<Input type = reset name = reset value = Add style = "width: 50">
(A) the maximum allowed length of each form item must be set. maxlength

(3) Create a chat window js
<Script LANGUAGE = "javascript">
Function BMIT submit (){
Chat = window. open (''," howtodo ", 'status = no, scrollbars = no, resizable = no ');

Chat. moveTo (0, 0 );
Chat. resizeTo (screen. availWidth, screen. availHeight );
Chat. outerWidth = screen. availWidth;
Chat. outerHeight = screen. availHeight;
}
This code first opens a howtodo window with no status bar and a scroll bar to adjust the size! Move to the upper left corner of the screen and zoom in to the allowed screen size.

Original Author: howtodo
Source: php2000.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.