果's profile☜♥☞{如果的小房子} ஐ°ஐPhotosBlogListsMore Tools Help

Blog


    7/27/2005

    任意设置MSN Space空间首页显示的日志数目

    引用自Rainwalk

    前些日子有网友问如何任意设置首页上网络日志的显示数目。MSN Space用下拉框提供了5,10,15,20这四个选择,这样看来似乎无法设置其他数字,但仔细一想,既然这是一个客户端的select对象,我们可以写一段代码来让浏览器执行,添加下拉框的中的数字值。这里我写了一段代码,是大家可以自定义1到99的首页显示的日志数。通过执行下面的一段代码,我将我自己的空间首页显示日志数修改成了8。执行下面的代码后,下拉框如下图所示

    javascript代码如下:

    javascript:var e=document.getElementsByTagName("select");var i=0;for(;i<e.length;i++){if(e[i].name=="NumBlogs")break;}if(i<e.length){var ops=e[i].options;while(ops.length!=0){ops.remove(0);}for(i=1;i<100;i++){var op=new Option();op.text=""+i;op.value=""+i;ops.add(op);}}else{alert('error');}

    使用方法:

    1.参照以前的方法将上面这段代码加入到你的收藏夹中,使之成为一个“按钮”

    2.在你Space的网络日志设置页面使用这个“按钮”,下拉框的选项就会自动更新成从1到99

    3.选择一个数值,保存即可

     

    注意:

    失效了有一段时间了

    并没有实效,我刚试过了还可以的~ 大家再试试看!

     

    ←点点留言   ←进入首页

    Comments (58)

    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

    雪 谢wrote:
    实现这个功能还有没有别的办法了,再教一招吧
    Apr. 11
    怎么成为按钮~
    July 12
    哈哈丸wrote:
    服~~~学会~~~呵呵~~~谢谢~~~
    June 22
    我的资料wrote:
    还是不会
    June 22
    文怡 孙wrote:
    Apr. 14
    Genie 宋wrote:
    sorry我剛才沒看清,原來還是沒改成功,可能已經失效了......抱歉啊,各位~~~~
    Mar. 17
    Genie 宋wrote:
    真的可以!!!按照懿渺妤婕·Jessica說的那樣做就行了,我剛改成功了,好開心!!!謝謝!!!
    Mar. 17
    Picture of Anonymous
    綠紫萱 wrote:
    怎样把代码放如收藏夹啊
    Jan. 17
    Picture of Anonymous
    ♡☆小天使☆♡ wrote:
    doesn't work... :'(
    555555555555555555555555555
    Jan. 6
    Picture of Anonymous
    浊髅—帥 wrote:
    以前用过的 失效以后还可以再用么?
    Dec. 26
    Picture of Anonymous
    Suzane_ngsy wrote:
    输入了,的确出现BLOG SETTINGS,可是还是5-10-15-20-25的页数啊~~~~~~~~~~
    Dec. 6
    Picture of Anonymous
    絲霂嶶 wrote:
    现在还可以用么?
    Nov. 17
    Picture of Anonymous
    波涛裏的魚 wrote:
    n你当人家微软是白痴啊!
    Oct. 28
    Picture of Anonymous
    ☆Co_Co☆ wrote:
    無法存取分享空間
    MSN Spaces 網路正在升級,暫時無法使用。請稍候再試。
    Oct. 26
    Picture of Anonymous
    oヤo小蓓ゞ wrote:
    数据是出来了 但是在保存的时候就不可以了 说空间不可用
    Oct. 21
    Picture of Anonymous
    narmi-yoyo wrote:
    有选项出来,但不能保存。 已经失效了才这样的吧
    Oct. 21
    Picture of Anonymous
    迷路&COCO wrote:
    成功了,真的很好用。只要细心看方法就OK啦!
    Oct. 20
    Picture of Anonymous
    妖之艳女 wrote:
    試了好多遍了.還是不行,能在說的具體點嗎
    Oct. 17
    Picture of Anonymous
    Puipui_tina wrote:
    好象已经失效了,不能用了。
    Oct. 15
    Picture of Anonymous
    runnerupshi wrote:
    楼主说的很清楚啊,我都可以的,大家再试试看!
    Oct. 9

    Trackbacks

    The trackback URL for this entry is:
    http://wendy0502.spaces.live.com/blog/cns!F86E820FD8792F60!1591.trak
    Weblogs that reference this entry
    • None