Event 201


In this lesson we are going to learn some more functionality of events. In example we use two different codes, their functionality are same but there is a little bit difference in performance, let see first code example first than we see how can we do increase performance by writing some tricky code into second example.

Example : 1

Image

Example : 2 {Mdoify example 1 for increasing its performance}

In above example we are using mouseenter event handler on dt item list but there are 4 dt list's not a single, so that time we using event hander by 4 times and what about the multiple conditions suppose when we use dt items 1000 times in our projects some day. Difficult right. How can we sought out this and increase our performance ? Answer is in next code let see. In next code we select dl item and by using mouse enter event handler we set a dt item inside. Means i set to event handler when i hover my mouse on dl than just find the dt items and make some changes into them who we set into the code. By using this easy trick we can increase performance of our web site. Let see Demo of this Example.

Image

Demo


Wconcert India © 2015   ·   All Rights Reserved

Free Web Hosting