I have designed some notes for online library (Online Library Series 4: Online playback final edition)

Source: Internet
Author: User

Online Library Series 4-Online Playback End Edition

1. Reference The flexpaper player.

Introducing the original flexpaper Player file into your project is actually a swf. As a container, we have closed it, I used my icon, my homepage address, but it was not a substantial change. I would like to pay tribute to a master who has excellent technology) and encapsulated the as and style into this swf. I will publish this swf in the attachment.

(Oh, my God, does the blog garden support uploading attachments ??? Or is it not found? Send me an email if you want! I am sending you: mbailing@163.com)

2. Configure the playback page.

<Script language = "JavaScript" type = "text/javascript">
Var swf_width = 750; // width
Var swf_height = 600; // height
Var FileTitle = $ ("[DataField = 'txtfiletitle']"). val (); // This is the title of the swf file to be loaded.
Var BaseUrl = "http://www.cnblogs.com/mbailing ";
Var FileName = $ ("[DataField = 'txtfilename']"). val (); // This is the path of the swf file to be loaded.

Document. write ('<object classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cabversion=10,0,0,0" width = "' + swf_width + '" height = "' + swf_height + '"> ');
Document. write ('<param name = "movie" value = "FlexPaper/paperviewer.swf"> ');
Document. write ('<param name = "quality" value = "high"> <param name = "wmode" value = "opaque"> ');
Document. write ('<param name = "allowFullScreen" value = "true"> <param name = "allowScriptAccess" value = "always"> ');
Document. write ('<param name = "FlashVars" value = "FileTitle =' + FileTitle + '& FileName =' + FileName + '& BaseUrl =' + BaseUrl + '"> ');
Document. write ('<embed wmode = "transparent" src = "FlexPaper/paperviewer.swf" FlashVars = "FileTitle =' + FileTitle + '& FileName =' + FileName + '& BaseUrl =' + baseUrl + '"quality =" high "width ="' + swf_width + '"height ="' + swf_height + '"allowScriptAccess =" always "allowFullScreen =" true "type =" application/x-shockwave-flash "pluginspage =" http://www.macromedia.com/go/getflashplayer "/> ');
Document. write ('</object> ');
</Script>

3. Load swf Content.

Find the swf Content to be loaded.

You may not understand it as soon as you enter it. If you want to understand it, you should read the entire series of articles.

Write down the concise words here! Hello everyone, I am bailing! Good mood every day!

 

Bailing Note: copyright of this Article Bailing and the blog Park are both owned by each other. For more information, see the source.
Helping others is the same as self-help! Mbailing@163.com

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.