Created
July 16, 2011 01:19
-
-
Save mrbrdo/1085880 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function testc() | |
| { | |
| var elem = $("td.n-Ja-e-A div[role=button]"); | |
| /*elem.mouseenter(); | |
| elem.mouseover(); | |
| elem.mousemove(); | |
| elem.addClass("tk3N6e-e-La"); | |
| elem.click();*/ | |
| var i = 0; | |
| for (i=0; i<1000; i++) | |
| { | |
| if (elem[0] == undefined || elem[0] == null) break; | |
| var j = i; | |
| elem.click(function() { | |
| alert(j); | |
| }); | |
| elem = elem.parent(); | |
| } | |
| alert(i); | |
| elem.html("lala"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment