jssor gallery - a couple of questions

安稳与你 提交于 2019-12-06 14:06:50

问题


I have a couple of questions about the jssor gallery.

Firstly, is there somewhere that will provide the code for every transition available for it? I have set my slideshow to "random" and I want as many possible transitions as possible because then the chances of the same one appearing at a similar time is fairly small. I have been here: http://www.jssor.com/development/tool-slideshow-transition-viewer.html and copied a few, but it's fairly long and tedious and I was hoping there would be an easier way?

Secondly, I have it in a separate PHP file from where it appears on my homepage, and because of this when I include it in my homepage, the style and script tags are not in the head where they belong. If it's possible, would it be able to separate the CSS into different style sheets and include them in my homepage and the same for the JQuery? I have tried this but it doesn't work. It's as if there is no CSS at all.

Thirdly, I run it through the w3 validator and it's bringing up over 200 errors on my homepage - I.E.

there is no attribute "u"

Again:

" t2="" d=-1800 du=3800 class="captionBlack" style="pos…

there is no attribute "t"

Any way to fix this?

Thanks.


回答1:


re: transitions

As there are infinite transitions, you need to copy transition codes that you need.

re: move css

For now, you can move inline styles to css file or css block (with class name <div class="yourclassname" ...). And I will optimize this feature for next version.

re: custom attributes "u" and "t"

You can use "data-u" instead of "u".



来源:https://stackoverflow.com/questions/23200141/jssor-gallery-a-couple-of-questions

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!