本帖最后由 deatse 于 2011-3-4 08:25 编辑
在网上找了个cu3er的3D幻灯源码,下载地址(http://www.5icool.org/a/201001/166.html),可是在首页再怎么DIY都无法定义幻灯在谷歌、苹果等浏览器下的居中(IE下正常),无奈就直接给写进了template\default\portal\index.htm文件里,代码如下:- <!--{subtemplate common/header}-->
- <div class="wp">
- <script type="text/javascript" src="js/swfobject.js"></script>
- <SCRIPT type=text/javascript>
- var flashvars = {};
- flashvars.xml = "config.xml";
- var params = {};
- params.allowscriptaccess = "always";
- params.allownetworking = "all";
- params.wmode = "transparent";
- var attributes = {};
- attributes.id = "slider";
- swfobject.embedSWF("cu3er.swf", "cu3er_swf", "960", "539", "9", flashvars, params, attributes);
- </SCRIPT>
- <style type="text/css">
- .xixibox {height:545px; background-repeat:no-repeat; background-position:bottom}
- </style>
- <div class="xixibox">
- <div id="cu3er_swf">
- <a href="http://www.adobe.com/go/getflashplayer">
- <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
- </a>
- </div>
- </div>
- <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
- </div>
- <!--{subtemplate common/footer}-->
复制代码 OK,问题解决。
感兴趣的朋友可以做下参考。
演示:http://club.ifecn.com/
|