jerry's profile百无禁忌PhotosBlogListsMore Tools Help
    16/08/2005

    利用JS代码快速改变你发表评论时的资料

       给我留言  计数器

    Coded by Eric Swanson

     

    如果你不喜欢在别人的space发表评论的时候留下你的真实资料,下面这段js代码可以帮到你:

    javascript:void(c=document.getElementsByTagName('input'));for(i=0;i<c.length;i++){void(n=c[i].name);if(n.indexOf('txtName')>=0)void(c[i].value='test');else%20if(n.indexOf('txtEmail')>=0)void(c[i].value='test◎test。com');else%20if(n.indexOf('txtURL')>=0)void(c[i].value='www.test.com');}void(c=document.getElementsByTagName('textarea'));for(i=0;i<c.length;i++){if(c[i].name.indexOf('txtComment')>=0)c[i].focus();}

     

    在使用之前可以根据需要进行修改,代码中红色字段代表你的名字, 蓝色为你的email, 绿色为你的url。可以修改成你想要的。如果email和url不想添就改为0。

     

    如用前先吧代码收藏到收藏夹,然后在发表评论的时候点击就行了

    如何把js代码添加进收藏夹请看 如何添加JS增效功能快捷按钮视频教学

     

     

     

    Comments (12)

    Please wait...
    Sorry, the comment you entered is too long. Please shorten it.
    You didn't enter anything. Please try again.
    Sorry, we can't add your comment right now. Please try again later.
    To add a comment, you need permission from your parent. Ask for permission
    Your parent has turned off comments.
    Sorry, we can't delete your comment right now. Please try again later.
    You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
    Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
    Complete the security check below to finish leaving your comment.
    The characters you type in the security check must match the characters in the picture or audio.

    To add a comment, sign in with your Windows Live ID (if you use Hotmail, Messenger, or Xbox LIVE, you have a Windows Live ID). Sign in


    Don't have a Windows Live ID? Sign up

    3 Nov.
    No namewrote:
    (wow power leveling) And (wow gold) under the single-site, preferential policies!
    18 Sept.
    16 Sept.
    11 Sept.
    5 Sept.
    22 Aug.
    4 July
    Picture of Anonymous
    rushergao wrote:
    试试
    9 Feb.
    Picture of Anonymous
    Cinderellass wrote:
    哈哈 真好玩 恶作剧成功 耶~~~^^
    25 Jan.
    Picture of Anonymous
    your lover wrote:
    hao \
    6 Dec.
    Picture of Anonymous
    一个伤痕累累的人 wrote:
    呵呵`
    28 Oct.
    Picture of Anonymous
    小米爱老鼠 wrote:
    试 一下先~
    哈哈,真的可以哦~~
    16 Aug.

    Trackbacks

    The trackback URL for this entry is:
    http://gouy2k.spaces.live.com/blog/cns!6BC65641375BEA45!3164.trak
    Weblogs that reference this entry
    • None