少甫's profileSo1omonPhotosBlogListsMore Tools Help

Blog


    7/14/2006

    谈论MSN Space 简易教程 (五)—— 播放电影文件

     

    引用

    MSN Space 简易教程 (五)—— 播放电影文件

    前两天,有朋友问到怎样在自己的日志里插入电影动画文件。趁这个长周末,我就来介绍一下在 MSN Space 中播放电影动画的方法。

    如果你想要播放的多媒体文件是 Windows Media Player 所支持的类型,比如:WMV 文件和 AVI 文件,那么只要按照教程(二)中“添加背景音乐”的方法,稍加修改就可以办到了。对于 Real Media 格式的文件也能够照此办法处理,比如:RMA 文件、RM 文件、以及 RMVB 文件,只要计算机上装有 Real Media Player 就能观看。不过,此方法不支持 Flash 动画(SWF 文件)的播放!


    (例一)自动播放的电影文件

    下面就以插入一个 WMV 文件为例,采用了自动开始播放方式,其具体效果和步骤如下:


    Loading movie ……

    1、先到网上找到你所要插入的电影文件,记下它的网络地址。比如上面这个小电影的地址是:http://www.motoservices.com/phpbb2/votes/The_lion_sleeps_tonight.wmv

    2、到你的 MSN Space 中新添加一篇 Blog,点击<HTML>模式转换按钮,进入 HTML 编辑状态。在编辑窗口内输入如下语句:

    <DIV align=center>
    <IMG height=240 width=320 border=1 loop=1 dynsrc="http://www.motoservices.com/phpbb2/votes/The_lion_sleeps_tonight.wmv">
    </DIV>

    其中:
    align=center 是让电影文件在日志中间播放,也可以选择 left 或 right;
    width=320 是电影的宽度;
    height=240 是电影的高度,一般来说绝大多数电影的宽:高=4:3;
    board=1 是给电影加上了一个边框,这个数值越大,边框越粗,board=0 则没有边框;
    loop=1 表示电影播放一遍后停止,可以选择其他数字,改变播放次数,如果写入 loop=infinite 则电影会无限循环播放。

    3、预览一下你的新 Blog,就可以看到这个小电影了。

    最后补充一点,如果想暂停电影播放,可以按 Esc 键,或者鼠标右键点击电影,在菜单中选择 Stop(停止);恢复电影播放,可以按 F5 键(刷新屏幕),或者鼠标右键点击电影,在菜单中选择 Play(播放)。



    (例二)用鼠标控制电影文件的播放

    上例是通过简单的 HTML 语言在 MSN Space 中插入电影文件,当你浏览此教程时,一只可爱的小河马就开始唱歌了,那是一个电影自动播放的例子。假如不想让电影自动播放,是不是有办法做到呢?这个回答是肯定的。请看下面的例子:


    Loading movie……

    当你浏览到这里,电影并没有自动播放,而只有当鼠标移动到图片框内或者用鼠标点击图片框后,电影才会开始播放。这样做的好处就是在一个日志页面里可以同时插入多个电影,但它们不是自动同时播放,而是点击哪个看那个,互不干扰。另外,可以用鼠标点击或滑过电影屏幕来重播电影,这和例一中的方法有所不同。具体代码如下:

    <DIV align=center>
    <IMG start=mouseover height=240 width=320 border=1 dynsrc="电影文件网址">
    </DIV>

    其中“start=mouseover”就是要求只有当鼠标移到此电影框内后,电影才开始播放。要想重播电影,需要将鼠标再移动到电影框内。
    电影文件地址”必须是以 http 或 ftp 开头的链接,此语句不支持 mms 或 rstp 链接。

    希望看完这篇教程,朋友们的 MSN Space 也能“”起来。如果想搜索电影动画文件,可以试试这两个网址:video.google.com castpost.com 。最好把电影文件下载后,放到自己的网络空间上,一是便于自己管理,二是有些网站禁止外链。记得换上你自己喜欢的电影哦!

    (本篇日志修改于2005年10月9日)


    ◀ 上一篇教程 下一篇教程 ▶ counter create hit

    Comments (1)

    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

    Picture of Anonymous
    boubo wrote:
    welcome to my home
    July 14

    Trackbacks

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