So I have this page where I have a bxslider with images inside some tabs, I have the bxslider function set to load before the tabs but when I go to the tab where the bxslider is the images haven't loaded. When I refresh the page they will be there. How do I get them to load so that when a person goes to that tab they are already there and not a blank section? Thanks!
所以我有这个页面,我有一个bxslider与一些标签内的图像,我有bxslider功能设置加载选项卡之前,但当我去选项卡,其中bxslider是图像没有加载。当我刷新页面时,它们将在那里。如何让它们加载,以便当一个人进入该选项卡时,它们已经存在而不是空白部分?谢谢!
There are a lot of missing images, sorry I'm not sure how to add images to jsfiddles. Here's a live link to look at...
有很多丢失的图像,抱歉,我不知道如何将图像添加到jsfiddles。这是一个现场链接,看看......
http://morecleanenergy.com/graphics/testing/mass/Mass.html
This is my call function right before the body tag.
这是我在body标签之前的调用函数。
<script type="text/javascript">
$(document).ready(function () {
$('.bxslider').bxSlider();
$('#tab-container').easytabs();
});
</script>
The bxslider is on the Why CEC page, it has a light blue background and it's the second item from the top.
bxslider位于Why CEC页面上,它有浅蓝色背景,它是顶部的第二个项目。
1 个解决方案
#1
1
/** * BxSlider v4.1.2 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the MIT license - http://opensource.org/licenses/MIT */
/ ** * BxSlider v4.1.2 - 满载,响应式内容滑块* http://bxslider.com * *版权所有2014,Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com *在喝酒时写比利时啤酒和听爵士乐* *根据麻省理工学院许可证发布 - http://opensource.org/licenses/MIT * /
/*! jQuery v3.0.0-alpha1 | (c) jQuery Foundation | jquery.org/license */
/ *! jQuery v3.0.0-alpha1 | (c)jQuery Foundation | jquery.org/license * /
Uncaught TypeError: Cannot read property 'indexOf' of undefined
未捕获的TypeError:无法读取未定义的属性'indexOf'
use jQuery v1.9, solved.
使用jQuery v1.9,解决了。
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
/ *! jQuery v1.9.1 | (c)2005年,2012年jQuery Foundation,Inc。| jquery.org/license
#1
1
/** * BxSlider v4.1.2 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the MIT license - http://opensource.org/licenses/MIT */
/ ** * BxSlider v4.1.2 - 满载,响应式内容滑块* http://bxslider.com * *版权所有2014,Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com *在喝酒时写比利时啤酒和听爵士乐* *根据麻省理工学院许可证发布 - http://opensource.org/licenses/MIT * /
/*! jQuery v3.0.0-alpha1 | (c) jQuery Foundation | jquery.org/license */
/ *! jQuery v3.0.0-alpha1 | (c)jQuery Foundation | jquery.org/license * /
Uncaught TypeError: Cannot read property 'indexOf' of undefined
未捕获的TypeError:无法读取未定义的属性'indexOf'
use jQuery v1.9, solved.
使用jQuery v1.9,解决了。
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
/ *! jQuery v1.9.1 | (c)2005年,2012年jQuery Foundation,Inc。| jquery.org/license