手风琴坏了.控制台中没有显示错误



我在一个站点上设置了一个daccordion,但由于某种原因它不起作用。它一直开着。我已经检查了正确的库正在被调用,并且我在控制台中没有看到任何错误记录。

我设置了一个小提琴使用确切的html, css和脚本在网站上使用,它不工作在那里也排除了冲突与其他javascript或jquery。小提琴可以在这里找到https://jsfiddle.net/b1ao7g05/2/

所使用的脚本取自于daccordion网站上的一个演示,并且是

ddaccordion.init({
headerclass: "submenuheader", //Shared CSS class name of headers group
contentclass: "submenu", //Shared CSS class name of contents group
revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
animatedefault: false, //Should contents open by default be animated into view?
persiststate: true, //persist state of opened contents within browser session?
toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
togglehtml: ["suffix", "<img src='plus.gif' class='statusicon' />", "<img src='minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
    //do nothing
},
onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
    //do nothing
}
})

你知道是什么原因导致手风琴坏了吗?

ReferenceError: daccordion未定义

    Zencart不支持https。即使链接更改为https,它也不会工作。引用错误仍然存在,因为不能通过不受信任的证书加载内容脚本正在使用文档。write (当我将ddaccordianscript复制到JS-Area时,发现了这一点)
  1. 在提交之前确保问题的"基础设施"正常工作,以便用户可以帮助找到代码中的错误,而不是jsfiddle的问题。

相关内容

最新更新