少甫's profileSo1omonPhotosBlogListsMore Tools Help

Blog


    7/14/2006

    各式各样的小工具

     

    MSN Space 简易教程(十一)—— 各式各样的小工具

    自从开始做这个 Blog 以来,有空的时候,常在网上游荡,看到一些很有意思,也很有用的小东东,就顺手把它记了下来。好东西不敢独享,还是介绍给大家吧。这些工具既可以放到日志中,也可以通过Custom HTML 模块放到主页空间里。关于 Custom HTML 模块,请看简易教程(26)中的介绍。为了感谢提供这些小工具的网站,特此列出了提供这些工具网站地址。


    (一)在网页上显示日历

    五月底,当 MSN Space 还没有屏蔽 Javascript 语言的时候,就曾想到可以利用网上 Flash 动画来给自己的网页添加一个日历或者时钟。可是还没来得及实施,播放 Flash 的语句就失效了,当时还懊悔自己动手晚了一步。不过“功夫不负有心人”,这两天通过 Google 发现一些网站提供了很多有用的工具,比如:显示时间、日期、IP 地址等等,并且提供了免费的代码。尽管有些提供的代码是 Javascript 语言的,不能在 MSN Space 里直接使用,但稍加修改,变成 HTML 语言,就能实现这个显示日历的功能。

    例一、带农历的中文日历

    (本日历由 www.hongen.com 提供支持)

    代码如下:

    <P align=center><IMG height=26 src="http://www.hongen.com/pub/date/date.png" width=126></P>

    备注:这个日历显示的时间是中国的日期,和美国这里差了半天。找到一个中文日历可不容易,欢迎大家提供更多的链接,以作为备用。

    例二、数字日历

    (本日历由 www.csufrenso.edu 提供支持)

    代码如下:

    <P><IMG src="http://www.csufresno.edu/cgi-bin/Count.cgi?display=date&dd=A" border=0></P>

    这个日历是按照美国西部时间运行的,共有五种款式,修改“dd=”后面的代码 A 为 B、C、D 或 E 即可。

    例三、自己设定时区的日历

    美国东部日期:
         

    (本日历由 escati.linkopp.net 提供支持)

    代码如下:

    <P><IMG src="http://escati.linkopp.net/cgi-bin/date.cgi?trgb=red&srgb=red&prgb=red&timezone=GMT-0500" border=0></P>

    可以把美东时区“GMT-0500”修改为其他时区,比如:中国“GMT+0800”,英国“GMT”等等。如果把“trgb=red&srgb=red&prgb=red&”去掉,就是黑底绿字了。




    (二)在网页上显示时钟、倒计时器、访客计时器

    例一、网页上的静态时钟(不过不是动态的时钟)。

    (本时钟由 escati.linkopp.net 提供支持)

    代码如下:

    <img src="http://escati.linkopp.net/cgi-bin/clock.cgi?trgb=000000&srgb=00ff00&prgb=221100&timezone=GMT-0500" border=0>

    其中“trgb=000000&srgb=00ff00&prgb=221100”是调整时钟显示的参数,比如:颜色和样式,大家可以尝试自己修改一下。

    例二、网页上的倒计时器

    距2006年国庆节还有

    (此倒计时器由 danjo.ca 提供)

    代码如下:

    <P><IMG src="http://danjo.ca/cgi-sys/Count.cgi?display=countdown&cdt=2006;10;01;00;00;00&sdhms=Y&prgb=green&ft=0" border=0></P>

    其中“cdt=2006;10;01;00;00;00”是表明倒计时的截止时间,包括年、月、日、小时、分钟、秒钟。如果将代码中的“sdhms=Y”改为“sdhms=N”,则只显示天数,不显示小时、分钟、秒钟了。而“prgb=green”是控制字体颜色的,可以把 green 换成 redbluepink ……

    例三、访客计时器

    您已经在本站逗留了 ,谢谢光临

    (此及时器由 visitor-timer-hms.blogspot.com 提供支持)

    代码如下:

    <P><IMG src="http://img451.imageshack.us/img451/5681/17sw.gif" border=0 width="67" height="70">
    <IMG src="http://img451.imageshack.us/img451/2654/26mf.gif" border=0 width="33" height="70">
    <IMG src="http://img451.imageshack.us/img451/7677/38qp.gif" border=0 width="33" height="70">
    <IMG src="http://img451.imageshack.us/img451/4378/42zs.gif" border=0 width="85" height="70"></P>

    这样就可以提示访客所访问的时间,而且和以前的计时器比起来做得更精致些。(注意:复制代码的时候,要把<IMG>语句之间的空格去掉,不然就会显得四分五裂一样




    (三)显示访客的 IP 地址

    在网页上显示 IP 地址的工具很多,先看看下面这几个例子吧。

    例一、中文文字

    代码如下:

    <DIV align=center><IMG src="http://www.u9cn.com/3.php"></DIV>


    例二、中文图形

    (此 IP 显示功能由 www.hotik.com 提供支持)

    代码如下:

    <P align=center><IMG src="http://www.hotik.com/sign.png"></P>


    例三、英文图形

    (此例 IP 显示功能由 www.danasoft.com 提供支持)

    代码如下:

    <P align=center><IMG src=http://www.danasoft.com/vipersig.jpg></P>

    例四、彩色图形

    (此例 IP 显示功能由 www.myelogo.com 提供支持)

    代码如下:

    <P align=center><IMG src=http://www.myelogo.com/elogo_user/2.jpg></P>




    (四)显示访客所在国家

    例一、中文文字    

    代码如下:

    <P><IMG src="http://www.u9cn.com/4.php"></P>

     

    例二、国旗指示    IP Address Lookup

    代码如下:

    <P><IMG src="http://www.hostip.info/api/flag.GIF"></P>


    这篇教程已经写了两天了,一边写一边Google,越Google越觉得网上好玩的东西太多了,真是再写两天都写不完。就先写到这吧,要抓紧做实验、写报告了,不然老板休假回来,不好交代了。


    counter create hit

    Comments

    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

    Trackbacks

    The trackback URL for this entry is:
    http://xushaofu771982.spaces.live.com/blog/cns!A9553E41E967765B!503.trak
    Weblogs that reference this entry
    • None