[英]JSSOR Slider and Drupal 7 error
Newbie in Drupal Drupal的新手
Ok I wrote up a script to intialize the jssor-slider which I include in my themes .js files. 好的,我写了一个脚本来初始化我的主题.js文件中包含的jssor-slider。
Here is what I wrote this far. 这是我到目前为止所写的内容。
jQuery(document).ready(function ($) {
var options = { $AutoPlay: true };
var jssor_slider1 = new $JssorSlider$('slider1_container', options);
alert("nikos");
});
I also included the jssor.slider.js
file in the theme's js files. 我还在主题的js文件中包括了jssor.slider.js
文件。 Following that I edited the .info file to include the files in Drupal. 之后,我编辑了.info文件以将文件包含在Drupal中。
scripts[] = js/jssor.slider.js
scripts[] = js/jssor.slider-initializer.js
For some reason I keep getting this in Chrome: 由于某些原因,我一直在Chrome中获取此信息:
Uncaught ReferenceError: $JssorEventManager$ is not defined
Please use the minified jssor.slider.mini.js instead. 请改用缩小的jssor.slider.mini.js。
jssor.slider.mini.js = (jssor.core.js + jssor.utils.js + jssor.slider.js) jssor.slider.mini.js =(jssor.core.js + jssor.utils.js + jssor.slider.js)
For development, you can use jssor.core.js + jssor.utils.js + jssor.slider.js 对于开发,可以使用jssor.core.js + jssor.utils.js + jssor.slider.js
For release, you need jssor.slider.mini.js only 要发布,只需要jssor.slider.mini.js
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.