小编use*_*731的帖子

Jquery每隔x秒运行一次点击功能

我有以下jQuery

<script type="text/javascript">
        jQuery(function(){              
            jQuery('.link1').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle1').show();
                jQuery('#arrow').css({top: '0px'});
            });

            jQuery('.link2').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle2').show();
                jQuery('#arrow').css({top: '42px'});
            });

            jQuery('.link3').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle3').show();
                jQuery('#arrow').css({top: '84px'});
            });

            jQuery('.link4').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle4').show();
                jQuery('#arrow').css({top: '125px'});
            });

            jQuery('.link5').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle5').show();
                jQuery('#arrow').css({top: '166px'});
            });

            jQuery('.link6').click(function(){
                jQuery('.hide-div').hide();
                jQuery('.toggle6').show();
                jQuery('#arrow').css({top: '207px'});
            });
        });


        jQuery(function(){
            jQuery("#toggle-links ul > li > a").click(function(e){
                e.preventDefault();
            jQuery("#toggle-links ul > li > a").addClass("selected").not(this).removeClass("selected");
            });
        });
    </script>
Run Code Online (Sandbox Code Playgroud)

并且需要添加一个函数,它将按顺序运行click1,link2,link3 ...每3秒直到它到达link6然后它将循环回到link1并且如果用户将鼠标悬停在具有id的div上#holder函数将停止运行直到mouseout.我有点难过这样做,有什么想法吗?

jquery

5
推荐指数
1
解决办法
1万
查看次数

WordPress RSS Feed返回404

我们有一个RSS提要(或者我们应该有)通过wordpress,但它只是使用404页面上没有找到 - http://www.warrenaccess.co.uk/feed/rss2

我们已经尝试更改回默认主题并停用所有插件,看看我们是否可以找到问题,但它仍然无法正常工作.

有谁知道是什么原因引起的?

wordpress rss http-status-code-404

2
推荐指数
1
解决办法
9341
查看次数

PHP格式化字符串就像化学式一样

转换字符串的最佳方法是什么,CO2CO<sub>2</sub>通过PHP 输出?

php

1
推荐指数
1
解决办法
1176
查看次数

MySQL Query将列中所有值的长度设置为12

我在MySQL数据库中有一个列,目前所有长度都是不同的例子 -

Reference (Column Name)
12930
1829
892
182902
Run Code Online (Sandbox Code Playgroud)

我需要它们全部为12个字符长,0添加到前面以使它们成为那个长度,所以它们上面的例子需要变成 -

Reference (Column Name)
000000012930
000000001829
000000000892
000000182902
Run Code Online (Sandbox Code Playgroud)

是否有一个SQL查询我可以运行来执行此操作,如果不是,最好的方法是什么?

php mysql sql

1
推荐指数
1
解决办法
178
查看次数

标签 统计

php ×2

http-status-code-404 ×1

jquery ×1

mysql ×1

rss ×1

sql ×1

wordpress ×1