Some time ago, a colleague bought this jquery practice. After reading it, he borrowed it. in the past, jquery can only be used to understand and understand jquery. but I didn't expect jquery's abnormal selector to let me watch it for a long time... this book is recommended by the father of jquery... many framework-level methods, including writing jquery plug-ins. although I am a backend Program Design does not involve front-end things, but it is quite rewarding. At least there are some things, such as how to achieve good results for dataview.
Some time ago, a colleague bought this jquery practice. After reading it, he borrowed it. in the past, jquery can only be used to understand and understand jquery. but I didn't expect jquery's abnormal selector to let me watch it for a long time... this book is recommended by the father of jquery... many framework-level methods, including writing jquery plug-ins. although I am a background program design. it does not involve front-end things, but it is quite rewarding. there are at least some things, such as how to implement the baton effect for dataview.
To
Protected void gridview1_rowdatabound (Object sender, gridviewroweventargs e) {If (E. row. rowtype = datacontrolrowtype. datarow) {// set the color of the row to "# 6699cc" and save the original background color e. row. attributes. add ("onmouseover", "currentcolor = This. style. backgroundcolor; this. style. backgroundcolor = '# 6699cc' "); // restores the background color of the row when the mouse moves. E. row. attributes. add ("onmouseout", "this. style. backgroundcolor = currentcolor ");}}
Now you only need to write to JS
$ ("Table TR "). BIND ("Mouseover", function () {This. classname = 'style ';}). BIND ("mouseout", function () {This. classname = ''});
In this case, if you want to change the color of the light stick, you do not need to go to the background to modify and re-compile it.
========================================================== ============
Jquery's best book ....~