jquery Online preview pdf file, open PDF file

Source: Internet
Author: User

The main thing is the use of a jquery plug-in jquery.media.js, the use of this plugin is easy to implement.

The plugin can play multiple types of multimedia files including: Flash, Quicktime, Windows Media player, Real Player, MP3, Silverlight, PDF, etc.
The prerequisite is that the client browser is loaded with the appropriate plugin.
The plug-in mainly converts <a> tags into <div>, and simultaneously generates <Object> objects suitable for different types of multimedia files and plays an analytic translation process to achieve the effect of multimedia playback. The conversion process is implemented in the client browser, so there is a time difference between opening the Web page and appearing the player.


page code:

The first is to introduce the corresponding JS file and then add the page after the completion of the execution of the JS code last add <a> tags



Jquery.media.js's official Website API address: http://jquery.malsup.com/media/

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.