Blog Park Flash Paging is generated with JavaScript, today found in the IE8 click on the page number can not be paged, the paging operation is in the current page number of the OnClick event.
The start code is written like this:
Copy Code code as follows:
var a = document.createelement ("a");
A.setattribute ("onclick", this.) Clickfunctionname + "(" + PageIndex + "); Pager.setcurrent ("+ PageIndex +"); ");
Because IE8 does not support the SetAttribute method, the OnClick event handler added here is not added.
The Attr method later changed to jquery:
Copy Code code as follows:
$ (a). attr ("onclick", this. Clickfunctionname + "(" + PageIndex + "); Pager.setcurrent ("+ PageIndex +"); ");
This is added up, but no matter how clicked, the OnClick event handler is not implemented, Chrome and Firefox are not the problem.
Finally, the following code solves the problem:
Copy Code code as follows:
var js = this. Clickfunctionname + "(" + PageIndex + "); Pager.setcurrent ("+ PageIndex +"); ";
A.onclick = function () {eval (JS);}