如何在不重新加载页面的情况下使用Jquery fadein / fadeout?

如何在不重新加载页面的情况下使用Jquery fadein / fadeout?

问题描述:

I need to create a website with an audio player that plays as users traverse through the site. At the same time, the content section needs to fade out and back in while this is still going on. So bring in another piece of HTML without reloading the page. The question I have is, how can i get all those to run correctly, while at the same time, running different Jquery plugins on different pages?

Essentially, I need to website to run like this one but with a continuous audio player in the corner or something. http://www.chalicerecording.com/

If you notice, the page never reloads and the name of the actual file doesnt display on the browser top. This gives me the idea thats its using PHP for the page.

So with that idea, I ended up finding this. http://www.youtube.com/watch?v=ytKc0QsVRY4

The problem im having with that is that I cant seem to figure out a way to run individual Jquery plugins on each individual PHP page without reloading the entire page. I hope this is enough info for you guys to work with.

我需要创建一个带有音频播放器的网站,该播放器在用户遍历网站时播放。 与此同时,内容部分需要淡出并重新进入,而这仍然存在。 因此,无需重新加载页面即可引入另一段HTML。 我的问题是,如何让所有这些正确运行,同时在不同的页面上运行不同的Jquery插件? p>

基本上,我需要网站运行像 这个,但角落里有一个连续的音频播放器。 http://www.chalicerecording.com/ a> p>

如果您注意到,页面永远不会重新加载,并且实际文件的名称不会显示在浏览器顶部。 这让我觉得它使用PHP作为页面。 p>

所以有了这个想法,我最终找到了这个。 http://www.youtube.com/watch?v=ytKc0QsVRY4 p>

我遇到的问题 是我似乎无法找到一种方法在每个单独的PHP页面上运行单独的Jquery插件而无需重新加载整个页面。 我希望这是你们工作的足够信息。 p> div>

you will need to use ajax calls to do so
jQuery.ajax
jQuery.post
jQuery.get

you also need to use jQuery fadeIn , jQuery fadeOut