需要修复主页滑块,以便它不会在末尾飞回所有幻灯片.需要成为一个无缝循环.但我不知道我做错了什么.示例:http://3dollar.vigorbranding.com/
<script type="text/javascript">
jQuery(window).load(function() {
jQuery('#carousel').flexslider({
animation: "slide",
controlNav: false,
animationLoop: false,
slideshow: true,
itemWidth: 187,
itemMargin: 0,
asNavFor: '#slider'
});
jQuery('#slider').flexslider({
animation: "slide",
controlNav: false,
animationLoop: true,
<?php if (ot_get_option('autoslide') == 'yes') { ?>
slideshow: true, //Boolean: Animate slider automatically
slideshowSpeed: <?php echo ot_get_option('delay') ?>,
<?php } else { ?>
slideshow: false,
<?php } ?>
sync: "#carousel",
start: function(slider) {
jQuery('body').removeClass('loading');
}
});
});
</script>
Run Code Online (Sandbox Code Playgroud) 我需要转换单选按钮以选择jquery中的框.
我有以下代码,但它不能产生我需要的东西:
$j('#product_addtocart_form input[type=radio]').each(function(i, checkbox){
var $checkbox = $j(checkbox);
// create a select
var $select = $j('<select></select>');
// set name and value
$select.attr('name', $checkbox.attr('name')).attr('value', $checkbox.val());
$select.append(new Option('test','tet'));
//$checkbox.remove();
});
Run Code Online (Sandbox Code Playgroud)