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