How to insert background music into a webpage without interruption when you jump to the page!

Source: Internet
Author: User
How to insert background music into a webpage without interruption when you jump to the page! For example, I am a hard nut to crack. most people on the Internet use frame, but the actual situation is that frame frames cannot be used now! Is there any other method?


Reply to discussion (solution)

Why is frame not supported by browsers?
All the pages are redirected. can there be anything on the page?

Well! No, I just want to ask if there are any methods without frame frames! If not, you can only use it.

Can I use ajax without redirecting to a page?
The effect may be better.

Flash, ajax (no jump, only request)

Html5 can achieve the requirement of lz on html5 browsers without refreshing the entire page when the url is redirected.

Just like when Sina Weibo plays a pop-up video, turning pages does not affect video playback.

Lz can search for history. pushState and history. replaceState.

Without frame, you have to refresh the entire interface. it seems that there is no solution. We recommend that you consider a compromise.

I can't do it only with the frame framework now, but there is a small problem, that is, playing music after entering the page, clicking other pages will not start playing again, but if I go back to the home page, in this case, another song is started and mixed with the previously played song. please know how to solve this problem!

Er... I am so stupid!

Solved ????

Ask how to solve

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.