音乐播放器,住通过网页 [英] Music Player That Lives Through Pages

查看:177
本文介绍了音乐播放器,住通过网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个母版页和内:音乐播放器

I have a master page and inside : a music player.

            <object type="application/x-shockwave-flash" data="http://flash-mp3-player.net/medias/player_mp3_maxi.swf"
                width="200" height="20">
                <param name="movie" value="http://flash-mp3-player.net/medias/player_mp3_maxi.swf" />
                <param name="bgcolor" value="#ffffff" />
                <param name="FlashVars" value="mp3=Preloader.mp3&amp;loop=1&amp;autoplay=1&amp;autoload=1" />
            </object>

它的工作原理,我可以听到声音,但如果我去一个不同的页面,它停止(暂停并返回到开始,我仍然可以看到它通过和preSS发挥,因为它在我的母版页)

It works and I can hear sound, but if I go to a different page, it stop (pause and return to start, I can still see it through and press play since its in my master page)

如何让我,而我通过浏览网页玩它?

How do I make it play while I'm browsing through pages?

请注意:玩家含有暂停功能,并且不自动播放,使用户不会是恼火。

Note : The player contains a pause function and doesn't auto play so users wont be annoyed.

推荐答案

这样做将与浏览器框架的老90年代的方式。你可以你的网站分成包含音乐播放器的框架,并让一个框架的人浏览您的网站。

The old '90s way of doing this would be with browser frames. You could split your site into a frame that contains the music player, and a frame that lets people navigate your site.

不过,有一个原因,大多数人已经从浏览器框架搬走。他们惹您的浏览体验。如果有人点击你的网站去别的地方的链接,他们仍然可以探出框架内的。它的不冷静。

However, there's a reason that most people have moved away from browser frames. They mess with your browsing experience. If someone clicks a link on your site to go somewhere else, they could still be stuck inside your frames. It's not cool.

做这涉及到让你的整个网站使用AJAX,这样用户从来没有真正离开的页面可言,但是,当他们按一下周围只是加载不同的元素到页面的网络2.0的方式。这是Lala.com做,例如,苹果之前他们买下了,并关闭它们。

The "Web 2.0" way of doing this involves making your whole site use AJAX, so the user never really leaves the "page" at all, but just loads different elements into the page as they click around. This is what Lala.com did, for example, before Apple bought them out and shut them down.

这篇关于音乐播放器,住通过网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆