jquery pop-up layer registration page, etc. (asp.net background)_jquery
WBOY
Release: 2016-05-16 18:24:54
Original
1006 people have browsed it
[1] The requirements are as follows: 1: Registration does not open a new page, change it to a pop-up layer, 2: Survey on new users’ desire to buy a house, 3: User name Recommended usernames are automatically retrieved. 4: Date of birth user input is changed to control selection. 5: Try your best to improve user experience and attract users to register. 【2】No pictures, no truth.
$("#suggest2").tooltip({bodyHandler : function() {return "Username must start with a letter";},showURL: false}); $("#cemail").tooltip({bodyHandler: function() {return "It is recommended to use Sina Games" ;},showURL: false}); $("#Text1").tooltip({bodyHandler: function() {return "Minors please do not register";},showURL: false});
(commentForm is the ID of the form) b. Call this $("#commentForm").validate() to implement verification; class and some attribute configurations in the form OK, all verification is fully automatic. For example: Email
6. Calendar I am ashamed to mention this! I started using the JQuery calendar plug-in, but later because it couldn't be placed on top of the pop-up box, I switched to another one. a. First quote these two
As you can see, it class="required dateISO" automatically verifies the time format 7. Drag a. First quote this: b. Write this $("xxx").draggable(); to implement dragging
8. Slide in to display: The plug-in provides extensions:
call$ .prompt("mes",{show:'dropIn'} can achieve sliding in.
9. Rounded border. a. First quote this b. Call $.("xxx ").corner("cc:#d1c7b7"); c. Note: The color of the missing parts of the four corners can also be set, and is generally consistent with the background color.
[4] Summary Generally, the CSS and script naming of named plug-ins are very standardized, so conflicts are rare. As long as CSS and Js do not conflict, you can use them with confidence, casually, and randomly.
[5] Help (solved) Originally I wanted to use all JQuery plug-ins, but the JQuery calendar plug-in could not float above the pop-up layer, so I changed to another calendar control. I was so angry that I set the z-index to 10000000000000000. The result is as you can imagine - it still can't float. I can't find where the CSS conflicts. If you find one, let me know.
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn