幻灯片中的第一张幻灯片现在正在工作超时(其他幻灯片几乎翻了两倍)(Timeout for first slide in slideshow not working (lasts almost double other slides))
我正在使用响应式幻灯片( http://responsiveslides.com/ )在网站上使用以下设置进行一些推荐:
jQuery(".rslides").responsiveSlides({ auto: true, // Boolean: Animate automatically, true or false speed: 100, // Integer: Speed of the transition, in milliseconds timeout: 10000, // Integer: Time between slide transitions, in milliseconds pager: false, // Boolean: Show pager, true or false nav: true, // Boolean: Show navigation, true or false random: false, // Boolean: Randomize the order of the slides, true or false pause: true, // Boolean: Pause on hover, true or false pauseControls: true, // Boolean: Pause when hovering controls, true or false prevText: "Previous", // String: Text for the "previous" button nextText: "Next", // String: Text for the "next" button maxwidth: "", // Integer: Max-width of the slideshow, in pixels navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul' manualControls: "", // Selector: Declare custom pager navigation namespace: "rslides", // String: Change the default namespace used before: function(){}, // Function: Before callback after: function(){} // Function: After callback });
但是,第一张幻灯片几乎是其他幻灯片的两倍。 有谁知道如何解决这个或为什么会发生这种情况? 任何帮助将非常感激!
您可以在此页面看到错误: http : //www.hbprojectsltd.co.uk/testimonials
谢谢
I am using a responsive slideshow (http://responsiveslides.com/) for some testimonials on a website with the following settings:
jQuery(".rslides").responsiveSlides({ auto: true, // Boolean: Animate automatically, true or false speed: 100, // Integer: Speed of the transition, in milliseconds timeout: 10000, // Integer: Time between slide transitions, in milliseconds pager: false, // Boolean: Show pager, true or false nav: true, // Boolean: Show navigation, true or false random: false, // Boolean: Randomize the order of the slides, true or false pause: true, // Boolean: Pause on hover, true or false pauseControls: true, // Boolean: Pause when hovering controls, true or false prevText: "Previous", // String: Text for the "previous" button nextText: "Next", // String: Text for the "next" button maxwidth: "", // Integer: Max-width of the slideshow, in pixels navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul' manualControls: "", // Selector: Declare custom pager navigation namespace: "rslides", // String: Change the default namespace used before: function(){}, // Function: Before callback after: function(){} // Function: After callback });
However, the first slide lasts almost double the other slides. Does anyone know how to fix this or why it is happening? Any help would be really appreciated!
You can see the error at this page: http://www.hbprojectsltd.co.uk/testimonials
原文:https://stackoverflow.com/questions/28874924
最满意答案
根据您使用的语言,以下正则表达式应与这些URL匹配,并允许您在需要时提取offerId和promoCode的值:
\/jsp\/offer\/recr\/us\/wsj\/recoffertemp2flow1.jsp\?offerId=(\d+)&promoCode=(\d+)
Depending upon the language you're using, the following regex should match these URLs and allow you to extract out the values for offerId and promoCode if you need to:
\/jsp\/offer\/recr\/us\/wsj\/recoffertemp2flow1.jsp\?offerId=(\d+)&promoCode=(\d+)
相关问答
更多-
您可以在正则表达式中使用否定前瞻以避免匹配某些域: ^(https?:\/\/)?(?!(?:www\.)?google\.com)([\da-zA-Z.-]+)\.([a-zA-Z\.]{2,6})([\/\w .-]*)*\/?$ 要不然: ^(https?:\/\/)?(?!.*google\.com)([\da-zA-Z.-]+)\.([a-zA-Z\.]{2,6})([\/\w .-]*)*\/?$ (?!(?:www\.)?google\.com)是负面预测,当我们提前www.goo ...
-
regex_match需要完整的字符串匹配。 你需要提供一个可以做到这一点的模式。 boost::regex re("D([0-9]{2})A([0-9])"); 这里, D - 匹配D ([0-9]{2}) - 捕获第1组两位数 A - 匹配A ([0-9]) - 将第2个数字捕获到第2组。 请参阅上述正则表达式的在线演示 。 The regex_match requires a full string match. You need to provide a pattern that will do ...
-
为url匹配写一个正则表达式(Write a regex for url match)[2023-12-03]
我建议如下: ([^\/]+?)\/(get\/.+) https://regex101.com/r/uN6yH3/1 这个概念是你将非斜杠字符匹配到第一个斜杠(非贪婪),然后是“get”分组,然后将其余部分作为第二组。 I suggest the following: ([^\/]+?)\/(get\/.+) https://regex101.com/r/uN6yH3/1 The concept is that you match non-slash characters up to the firs ... -
根据您使用的语言,以下正则表达式应与这些URL匹配,并允许您在需要时提取offerId和promoCode的值: \/jsp\/offer\/recr\/us\/wsj\/recoffertemp2flow1.jsp\?offerId=(\d+)&promoCode=(\d+) Depending upon the language you're using, the following regex should match these URLs and allow you to extract out ...
-
好的,让我们分开来看看。 忽略CodeIgniter的保留路线。 您的路由的default_controller和404_override部分是不必要的。 将路由与请求的URI进行比较以查看是否存在匹配。 这两个项目很可能永远在您的URI中,因为它们是CodeIgniter的特殊保留路由。 所以,让我们忘掉它们。 $route['(?!home|activity)[A-Za-z0-9][A-Za-z0-9_-]{2,254}'] = 'view/slug/$1'; 捕捉一切! 使用正则表达式,使用圆括号( ...
-
其他评论者提到复杂性是导致perfo问题的可能原因。 我想补充一点,如果你想匹配类似于IMG标签的东西,我想你想要一个正则表达式更像这样: ]+))+> 当然,这个正则表达式不会捕捉到仍然有效的HTML变体。 就像关闭/ (在xhtml中要求)或者右括号之前的空格。 它会通过一些无效的情况,如不支持的属性名称。 Other commenters have mentioned the complexity being the li ...
-
这可能是你之后的事情: iphone|ipod|android(?!.*?gt-p)(?:\s*mobile)? https://regex101.com/r/xT8rD4/1 它将允许android和android mobile不跟随gt-p 。 如果它应该只允许android mobile ,这是一个简单的修复。 This might be what you're after: iphone|ipod|android(?!.*?gt-p)(?:\s*mobile)? https://regex101 ...
-
这应该是诀窍,我不是说它很漂亮但它会起作用: /^##\s*Questions.*?\n([^]*?)^##[^#]/m 测试: var match = `## Questions heading ### Question sub-heading - some question - some question ### Question sub-heading - some question ## Next section heading - blah - blah ## Another section ...
-
正则表达式忽略URL中的字符串(Regex to ignore string in URL)[2023-05-11]
你不应该需要后视或任何花哨的东西。 相反,使用^和$(字符串的开头和结尾运算符)。 尝试正则表达式: var pattern = /^\/?r\/[A-Za-z_]+$/; pattern.test('https://www.reddit.com/r/starwars/comments/12345'); // false pattern.test('/r/starwars/comments/12345'); // false pattern.test('/r/starwars'); // true patt ... -
您正在寻找的是puts "line#{$1}" 。 伪全局值$1 , $2 , $3等指的是最后一个Regexp匹配的捕获组。 (并且$~指的是MatchData本身,如果你想使用它。) What you are looking for is puts "line#{$1}". The pseudo-globals $1, $2, $3, etc. refer to capture groups of the last Regexp match. (And $~ refers to the MatchDat ...