zc 的个人资料LordZhu的MSN小屋照片日志列表 工具 帮助
5月27日

谈论Create Your Signature For Your Blog,

引号

Create Your Signature For Your Blog,

Today,a MSN space tip which enabled us to create our signature for our blog was introduced to me.

The principle of the signature creation is very easy.Remeber the Edit-It button and its js code in that button?When we replace the js code in ours in that button,we can made our blog editor work in our way.

So,when you use the tool creating signature for your blog written by Eric Swanson,you will see Eric Swanson use the js assignment in the button as below

if(navigator.userAgent.indexOf('MSIE')>0 && document.all.rtebox!=null)
{
    void(document.EditBox.document.EditBox.document.all[6].innerHTML+='<P><FONT face='Comic Sans MS' color=#ffff00 size=4><EM><SUB><STRONG>Sanall Cobain</STRONG></SUB></EM></FONT></P>';);
}

When i use the button contained the js above, an error occured,no more information can be got from the error prompting dialog.

I guessed that the statement didn't work well when document.all[6] object was invited by IE.I didn't know what object document.all[6] standed for.So i explored the RTE.js file again to try to get some guidelines.

Fortunately,a function named as appendHTML() was found.I rewrite the js as in my way below,

if(navigator.userAgent.indexOf('MSIE')>0 && document.all.rtebox!=null)
{
   EditBox.appendHTML('<P><FONT face='Comic Sans MS' color=#ffff00 size=4><EM><SUB><STRONG>Sanall Cobain</STRONG></SUB></EM></FONT></P>');
}

It's much more clear and simple than Eric Swanson's,and works very well.

And finally,i wrote my own version of the signature-creation button using the js code below,


if(navigator.userAgent.indexOf('MSIE')>0%20&&%20document.all.rtebox!=null)
{
         EditBox.appendHTML("<P align='right'><FONT%20face='Comic Sans MS' color='=#00ff00'><EM><SUB>Sanall%20Cobain posted on "+(new Date()).toString()+"</SUB></EM></FONT></P>");
}

Reference: Scotte's Edit-It Button
                Eric Swason's Signature Creation Tool
                RTE.js file of MSN Space

白色部分为Rainwalk添加(谁看的见……)。英文没人看吗?Sanall,下回同时弄个中文说明。

不过,Sanall,似乎没必要说这么多吧,实际就是添加一段预先设好的代码:

欢迎来到Msn Space ProWelcome 

评论 (46)

请稍候...
很抱歉,您输入的评论太长。请缩短您的评论。
您没有输入任何内容,请重试。
很抱歉,我们当前无法添加您的评论。请稍后重试。
若要添加评论,需要您的家长授予您相应权限。请求权限
您的家长禁用了评论功能。
很抱歉,我们当前无法删除您的评论。请稍后重试。
您已超过了一天之内允许提供的评论数上限。请在 24 小时后重试。
因为我们的系统表明您可能在向其他用户提供垃圾评论,您的帐户已禁用了评论功能。如果您认为我们错误地禁用了您的帐户,请联系 Windows Live 支持部门
完成下面的安全检查,您提供评论的过程才能完成。
您在安全检查中键入的字符必须与图片或音频中的字符一致。

若要添加评论,请使用您的 Windows Live ID 登录(如果您使用过 Hotmail、Messenger 或 Xbox LIVE,您就拥有 Windows Live ID)。登录


还没有 Windows Live ID 吗?请注册

2 月 12 日
 看了翻译还是不会
9 月 1 日
Ann发表:
>_<!....... 三楼的太过分了!!!占那么好的位置居然说了一堆"废话".....楼主能不能删掉他的评论呢?
11 月 5 日
楼下的太没礼貌了。Edit-it肯定是编辑按钮,js是javascript。即使今天第一次来,以前也没关注过任何编辑技巧,我也看得懂,况且黑吃黑也翻译在留言了。不要以为会说WTF就不得了了。
7 月 15 日
东方发表:
晕啊
7 月 3 日
郑Wayne发表:
WTF!! Where the hell is the Edit-in button! Nd wot the fuckin hell is js?!!!!
this fuckin blog makes no sense at ALL!!!! u sux!! suck my dick! fuck ur asshole!!
7 月 3 日
I'mLindsay发表:
一看到计算机代码我就晕!
6 月 7 日
Amber发表:
晕了,不是因为英语,而是因为计算机语言,
真晕,我虽是新手,希望能尽快成长起来,
希望大家来我家座座,指点指点
6 月 4 日
Wuan YeeChew发表:
i dun understand...?!?!
5 月 26 日
匿名 的图片
雪松 发表:
无奈!
5 月 12 日
LAULUKE发表:
天啊!晕!
5 月 6 日
冯琪发表:
哈哈,试试.谢谢楼主
4 月 11 日
快乐时光!发表:
原来不是我不懂啊,还有谁不懂,还有谁~~~~~~~~~~~?
3 月 13 日
lee发表:
建议斑竹费心将英文翻译成中文并将所述程序译成html语言。
                                   
                              谢谢
 
3 月 12 日
李烨发表:
不懂!!!!怎么有java语言的阿?晕死...强烈建议楼猪说明一下~!
2 月 6 日
Winstonc发表:
 
 
 
 
 
 
 
 
 
 
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿     http://spaces.msn.com/ichujia/
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿  
女孩們 結婚前 請不要張開妳的腿     2度入选风云榜(2&6期)   -希望能和大家建立链接,可以吗
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿   
女孩們 結婚前 請不要張開妳的腿     http://spaces.msn.com/ichujia/
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿
女孩們 結婚前 請不要張開妳的腿
 
 
 
 
 
 
 
 

 
2 月 6 日
金晶发表:
晕啊
2 月 5 日
匿名 的图片
MM 发表:
看不懂~~~~~~~~~~~
1 月 14 日
匿名 的图片
黑吃黑 发表:
呵呵,我为大家“翻”过来吧*_^
(我也有个小问题:我的成员目录名字为什么不能更改?每次更改时都提示“成员目录暂时不可用”,“黑吃黑”--这么难听的名字~~~哪位好心人给帮帮忙?)

为你的日志创建签名

今天,有人给我介绍了一条有关为日志创建签名的MSN空间技巧。
签名的创建过程很简单。还记得Edit-It按键及其Java脚本代码吗?当我们在这个按键的Java代码中更换代码时,我们可以使我们的日志编辑器按我们想要的方式工作。
所以,当你们在日志中使用Eric Swanson所创建的签名工具时,你会发现Eric Swanson在这个热键中使用了如下Java脚本:

if(navigator.userAgent.indexOf('MSIE')>0 && document.all.rtebox!=null)
{
void(document.EditBox.document.EditBox.document.all[6].innerHTML+='<P><FONT face='Comic Sans MS' color=#ffff00 size=4><EM><SUB><STRONG>Sanall Cobain</STRONG></SUB></EM></FONT></P>';);
}

当我使用含有如上Java代码的按键时,出现了一个错误,却在错误提示中找不到任何有用的信息。
我认为其之所以不能用,是由IE的document.all[6]对象所引起的。可我不知道document.all[6]对象又代表了什么。所以我又研究了一下RTE.js文件,想要从中得到一些线索。
幸运的是,我发现了一个名为ppendHTML()的函数。我重写了这段Java脚本,如下:

if(navigator.userAgent.indexOf('MSIE')>0 && document.all.rtebox!=null)
{
EditBox.appendHTML('<P><FONT face='Comic Sans MS' color=#ffff00 size=4><EM><SUB><STRONG>Sanall Cobain</STRONG></SUB></EM></FONT></P>');
}

它比起Eric Swanson的更加清晰、简单,而且更好用!
最后,我用Java脚本编写了“创建签名”的属于我自己的版本,如下:

if(navigator.userAgent.indexOf('MSIE')>0%20&&%20document.all.rtebox!=null)
{
EditBox.appendHTML("<P align='right'><FONT%20face='Comic Sans MS' color='=#00ff00'><EM><SUB>Sanall%20Cobain posted on "+(new Date()).toString()+"</SUB></EM></FONT></P>");
}

参考:Scotte's Edit-It Button
Eric Swason's Signature Creation Tool
RTE.js file of MSN Space
1 月 9 日
匿名 的图片
Amanda 发表:
英文我看懂了,但是不懂计算机语言……
1 月 8 日

引用通告 (4)

此日志的引用通告 URL 是:
http://msnpro.spaces.live.com/blog/cns!185346EFE8E48BD8!986.trak
引用此项的网络日志