|
|
var swfVersionStr = "10.0.0";
|
|
|
var xiSwfUrlStr = "expressInstall.swf";
|
|
|
var flashvars =
|
|
|
{
|
|
|
bookId: "1", //资源id
|
|
|
userId: "1", //用户id
|
|
|
viewMode: "0", //显示模式:0为单页显示,1为双页显示
|
|
|
paging: "false", //资源加载方式,0或false为一次性加载,1或true为分页加载
|
|
|
bookUrl: "", //资源地址
|
|
|
//bookmarkUrl: "assets/data/bookmark.xml", //书签数据地址
|
|
|
//commentUrl: "assets/data/comment.xml,/assets/data/comment2.xml", //获取批注数据的URL,可以有多个批注地址,用逗","隔开
|
|
|
skinStyle: "2", //皮肤样式:1.易资源皮肤样式。2.数字化校园皮肤样式
|
|
|
skinUrl: "/Content/FlashReader/ReaderSkin.swf", //皮肤地址
|
|
|
toolbarVisible: "1", //是否显示工具栏:0.不显示,1.显示
|
|
|
toolbarPosition: "1",
|
|
|
showMiddleButton: "0",
|
|
|
showMoveArrow:"0",
|
|
|
backgroundColor: "0xffffff", //背景色
|
|
|
backgroundAlpha: "1", //背景透明度
|
|
|
resourceNotFoundMessage: "资源加载失败", //资源不存在时提示信息
|
|
|
//toolbarItems: "singlePage,doublePage,,separator,zoomIn,zoomOut,separator,previousPage,currentPage,totalPage,nextPage,separator,link,comment,pencil,delete,browse,edit,separator,catalog,separator,fullScreen", //自定义工具栏元素
|
|
|
toolbarItems: "singlePage,doublePage,separator,zoomIn,zoomOut,separator,previousPage,currentPage,totalPage,nextPage,separator,fullScreen" //自定义工具栏元素
|
|
|
};
|
|
|
var params = {};
|
|
|
params.quality = "high";
|
|
|
params.bgcolor = "#ffffff";
|
|
|
params.allowscriptaccess = "sameDomain";
|
|
|
params.allowfullscreen = "true";
|
|
|
params.wmode = "transparent";
|
|
|
var attributes = {};
|
|
|
attributes.id = "TextReader";
|
|
|
attributes.name = "TextReader"; |