drupal7网站定制主题中使用定制jquery脚本
2016-04-15 13:03
627 查看
在网站定制的主题的info文件中加入scripts[] = js/bootstrap_subtheme.js
再在bootstrap_subtheme.js中加入这样的jquery代码即可运行jquery。
(function ($) {
$(document).ready(function() {
alert("enter le!");
$('#block-views-1of3-block').addClass("col-md-4");
});
})(jQuery);
再在bootstrap_subtheme.js中加入这样的jquery代码即可运行jquery。
(function ($) {
$(document).ready(function() {
alert("enter le!");
$('#block-views-1of3-block').addClass("col-md-4");
});
})(jQuery);
相关文章推荐
- Jquery弹窗跳转
- jQuery实现下拉框左右移动(全部移动,已选移动)
- 关于 JavaScript & jQuery 操作 标签
- php基于jquery的ajax技术传递json数据简单实例
- 生成二维码的 jQuery 插件:jquery.qrcode.js
- jQuery调用WebMethod(PageMethod) NET2.0的方法
- ie中显示$未定义
- js表单校验方法(JQuery-Validate使用方法)
- jQuery实现可编辑表格
- 可编辑的表格:jQuery+PHP实现实时编辑表格字段内容
- jQuery使用cookie与json简单实现购物车功能
- jquery_01笔记
- jQuery冒泡事件阻止
- jQuery ztree 下载
- jquery.table.rowspan.js 表格自动合并单元格插件
- 浅谈Jquery中的bind(),live(),delegate(),on()绑定事件方式
- jquery操作数组
- jQuery中.bind() .live() .delegate() .on()的区别
- jQuery基于json与cookie实现购物车的方法
- 【jQuery】OnSubmit中的Ajax判断