OnClientClick is a client-side event method. JavaScript is generally used for processing. That is, run directly on the IE side. Run with a single click.The onclick event is a server-side event-handling method that runs on the server side, that is, IIS. After clicking the button, execute the postback, then run.If we have the client's OnClientClick method and the O
event processing also includes:Bind(Type,FN) is used to bind an event and trigger event to a matching object.Trigger(Type) is a type event triggered by the user. $ ("P"). Trigger ("click ")And unbind (); unbind (type,FN)
Dynamic event
Event handling in jQuery User Manual
Hover (Function, Function)The first function is triggered when the mouse moves over, and the second function is triggered when the mouse moves out.
Style:
Html code:
Sdf
JQuery code and Effects
$ (
Function
(){$ (
"
#
"
). Hover (
Function
() {$ (
This
). AddClass (
"
Red
"
);},
Function
() {$ (
This
). RemoveClass (
"
Red
"
);});})The final result is that when you mov
Sat.
: Event Processing
Hover (function, function) triggers the first function when the mouse moves over, and triggers the second function when the mouse moves out.
Style:
HTML code: Jquery code and Effects
$ (Function (){
$ ("# A"). Hover (function () {$ (this). addclass ("red ");},
Function () {$ (this). removeclass ("red ");
});
})
The final result is that when you move the mouse over the layer with ID
When we swipe the phone, if the Li or div tag can be clicked, then on the mobile side give the user an effect/*ID is the ID of the UL on the add effect Li, or the ID of the current DIV*/functiondotouchpublic (ID) {SetTimeout (function(){ varobj=document.getElementById
Hover (Function, Function)The first function is triggered when the mouse moves over, and the second function is triggered when the mouse moves out.Style: Html code: JQuery code and Effects$ (Function(){$ ("#"). Hover (Function() {$ (This). AddClass ("Red");},Function() {$ (This). RemoveClass ("Red");});})The final result is that when you move the mouse over the layer with id a, a red style is added to the layer and the red style is removed when the la
When you interact with views, views also trigger events. For example, when a user clicks a button, you need to serve the event. Only in this way can you perform some appropriate actions. To do this, you need to register a listener for the view views.
Using the example in the previous section, there are two buttons in the activity. We can use an anonymous class to set click events for the button.
[Java]Packa
To solve the problem, perform some operations after anonymous users log on successfully. Implementation in petshop
1. Add
Indicates that the Profile_MigrateAnonymous event is triggered.
2. Define events in Global. asax
Void Profile_MigrateAnonymous (Object sender, ProfileMigrateEventArgs e) {// obtain anonymous user information}
E. AnonymousID indicates the logon
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.