开发者

Accordion and jQueryCycle prevent href's from working

开发者 https://www.devze.com 2022-12-18 07:57 出处:网络
Checkout this site that I\'m开发者_运维百科 working on. The idea is as follows: -That the slide show is supposed to rotate - this works

Checkout this site that I'm开发者_运维百科 working on.

The idea is as follows:

-That the slide show is supposed to rotate - this works

-When hovering over the menu on the right the appropriate slide appears - this works

-Also when hovering the nav should expand to show a brief description - this works

-When clicking on Airboat, Aircraft, UAV, or the "view" link it then takes you to that page - this doesn't work. I'm sure what's happening here is that the javascripts are fighting it out, as disabling one makes the links work, reenabling breaks it.

Your help is greatly appreciated,


Try using this:

 return '#nav li:eq(' + (idx) + ') > a';}

instead of

return '#nav li:eq(' + (idx) + ') a';}

in your cycle plugin. Using the direct descendent selector instead of the descendent selector will keep it from matching on the links contained in the accordion for the page anchors.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号