所以我需要使用addthis。请访问我的网页,我正在努力实施,添加这一点。
http://www.iamvishal.com/dev/node/13
添加这个按钮不会出现在我的页面上。我能够使用简单的html代码实现它,但是drupal实现不起作用。
js正在加载,但我无法调试问题,因为我无法找到发生这种情况的原因。
干杯,维沙尔
p.s -欲了解更多关于此地址的信息,请访问http://www.addthis.com/
代码:
<script type="text/javascript">
(function ($) {
Drupal.behaviors.slider = {
attach:function(context) {
var script = 'http://s7.addthis.com/js/250/addthis_widget.js#domready=1';
if (window.addthis) {
window.addthis = null;
}
$.getScript(script);
}
};
}(jQuery));
</script>
<div id="sociallinks">
<div class="viewing">Request a viewing</div>
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<!-- AddThis Button END -->
</div><!-- end of social links -->发布于 2012-04-23 15:50:17
在D7中,对我起作用的是创建一种新的“文本格式”,其中没有启用过滤器。无论出于什么原因,D7认为AddThis代码是错误的或不完整的。
配置>内容创作>文本格式>添加文本格式
试试看。
https://stackoverflow.com/questions/10152819
复制相似问题