本文主要是介绍cu3er 3D幻灯切换效果 div被遮住的解决方法,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<script type="text/javascript">// <![CDATA[ BAIDU_CLB_SLOT_ID = "489794"; // ]]></script><script type="text/javascript" src="http://cbjs.baidu.com/js/o.js"></script>
最近使用CU3ER.swf 3D幻灯切换效果时,遇到一个问题。
使用通用的配置方法时,总是会把上面的div给遮盖住,这样如果页面上有导航下拉菜单时,就显示不出来。
通用的配置方法如下:
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", "360", "9", flashvars, params, attributes);
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", "360", "9", flashvars, params, attributes);
修改过的配置如下:
var cacheBuster = "?t=" + Date.parse( new Date());
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"+cacheBuster, "cu3er_swf", "980", "390", "9.0.124", "expressInstall.swf", flashvars, params);
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"+cacheBuster, "cu3er_swf", "980", "390", "9.0.124", "expressInstall.swf", flashvars, params);
<script type="text/javascript">// <![CDATA[ BAIDU_CLB_SLOT_ID = "551284"; // ]]></script><script type="text/javascript" src="http://cbjs.baidu.com/js/o.js"></script>
<script type="text/javascript">// <![CDATA[ BAIDU_CLB_SLOT_ID = "551289"; // ]]></script><script type="text/javascript" src="http://cbjs.baidu.com/js/o.js"></script>
这篇关于cu3er 3D幻灯切换效果 div被遮住的解决方法的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!