自动单击SPAN数据评级类

时间:2016-05-14 21:34:37

标签: javascript user-interface

帮我点击一个星星

加载页面:

<div class="game-rating" data-ajax-url="/rate/image/403632/">
                        <span data-rating="2"></span>
                        <span data-rating="4"></span>
                        <span data-rating="6"></span>
                        <span data-rating="8"></span>
                        <span data-rating="10"></span>
                    </div>

当鼠标成为明星1:

<div class="game-rating rate-1 " data-ajax-url="/rate/image/403632/">
                        <span data-rating="2"></span>
                        <span data-rating="4"></span>
                        <span data-rating="6"></span>
                        <span data-rating="8"></span>
                        <span data-rating="10"></span>
                    </div>

When mouse a star 2 :

<div class="game-rating rate-2 " data-ajax-url="/rate/image/403632/">
                        <span data-rating="2"></span>
                        <span data-rating="4"></span>
                        <span data-rating="6"></span>
                        <span data-rating="8"></span>
                        <span data-rating="10"></span>
                    </div>
  

明星1,2,3,4,5我点击自动一个明星1你可以帮我创建一个   tampermonkey的脚本?还是javascript?**

抱歉我的英文不好

0 个答案:

没有答案