热门排行
简介
本翻书效果功能强大,可以实现全屏,向前向后翻书,放大、缩小、播放音乐、打印等多种功能,不可多得
在网页<head>区添加以下代码
[code]
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="js/PopUpWin.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-color: #ccc;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
[/code]
在网页<body>区添加以下代码
[code]
<script type="text/javascript">
AC_FL_RunContent( 'codebase','//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','100%','height','100%','src','swf/Magazine','quality','high','pluginspage','//www.macromedia.com/go/getflashplayer','bgcolor','#cccccc','allowFullScreen','true','allowScriptAccess','sameDomain','movie','swf/Magazine' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%">
<param name="movie" value="swf/Magazine.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="swf/Magazine.swf" width="100%" height="100%" quality="high" pluginspage="//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowFullScreen="true" allowScriptAccess="sameDomain"></embed>
</object></noscript>
[/code]
1、height & width:电子书长宽 ,bgcolor:背景颜色,loadercolor:边框颜色,bgimage:背景图片(有1、2、3可选),panelcolor:导航容器颜色,buttoncolor:按钮颜色,textcolor:文本颜色;page:设置书源图;
2、要求Flash Player 8+
3、背景音乐存到Mp3文件夹里,默认名称1.mp3、2.mp3、3.mp3,可随切换背景变换,具体可尝试切换
4、txt文件夹里存放lang.txt语言包文件,xml存放为主配置文件,pages文件夹存放每页书的源文件。
5、XML格式如下:
[code]
<content width="600" height="800" bgcolor="cccccc" loadercolor="ffffff" bgimage="2" panelcolor="3a6dac" buttoncolor="3a6dac" textcolor="d0e5f7">
<page src="pages/page1.jpg"/>
<page src="pages/page2.swf"/>
<page src="pages/page3.jpg"/>
<page src="pages/page4.swf"/>
<page src="pages/page5.jpg"/>
<page src="pages/page6.swf"/>
<page src="pages/page7.jpg"/>
<page src="pages/page8.swf"/>
</content>
[/code]
在网页<head>区添加以下代码
[code]
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="js/PopUpWin.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-color: #ccc;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
[/code]
在网页<body>区添加以下代码
[code]
<script type="text/javascript">
AC_FL_RunContent( 'codebase','//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0','width','100%','height','100%','src','swf/Magazine','quality','high','pluginspage','//www.macromedia.com/go/getflashplayer','bgcolor','#cccccc','allowFullScreen','true','allowScriptAccess','sameDomain','movie','swf/Magazine' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%">
<param name="movie" value="swf/Magazine.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#cccccc" />
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="swf/Magazine.swf" width="100%" height="100%" quality="high" pluginspage="//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowFullScreen="true" allowScriptAccess="sameDomain"></embed>
</object></noscript>
[/code]
1、height & width:电子书长宽 ,bgcolor:背景颜色,loadercolor:边框颜色,bgimage:背景图片(有1、2、3可选),panelcolor:导航容器颜色,buttoncolor:按钮颜色,textcolor:文本颜色;page:设置书源图;
2、要求Flash Player 8+
3、背景音乐存到Mp3文件夹里,默认名称1.mp3、2.mp3、3.mp3,可随切换背景变换,具体可尝试切换
4、txt文件夹里存放lang.txt语言包文件,xml存放为主配置文件,pages文件夹存放每页书的源文件。
5、XML格式如下:
[code]
<content width="600" height="800" bgcolor="cccccc" loadercolor="ffffff" bgimage="2" panelcolor="3a6dac" buttoncolor="3a6dac" textcolor="d0e5f7">
<page src="pages/page1.jpg"/>
<page src="pages/page2.swf"/>
<page src="pages/page3.jpg"/>
<page src="pages/page4.swf"/>
<page src="pages/page5.jpg"/>
<page src="pages/page6.swf"/>
<page src="pages/page7.jpg"/>
<page src="pages/page8.swf"/>
</content>
[/code]