New*_*ser 7 jquery jquery-plugins magento
我是Magento的新手.我用横幅旋转脚本来展示横幅.因为我必须在每个页面中显示横幅,这就是为什么我在header.phtml文件中实现滑块以便我可以在每个页面中显示横幅.所以在header.phtml中,我的滑块代码是这样的
<script language="javascript">
jQuery.noConflict();
jQuery(document).ready(function(){
bannerRotator('#bannerRotator', 500, 5000, true);
});
</script>
<div id="bannerRotator">
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('homepageslider')->toHtml(); ?>
</div>
Run Code Online (Sandbox Code Playgroud)
这里的滑块运行良好但是当我console tab在firefox中查看时出现了一些错误.这是控制台选项卡错误的图像.
为了解决我用Google搜索的所有问题并且知道jQuery是冲突的.所以要清楚,我用jQuery.noConflict,也删除了所有的$进入jQuery.但我仍然遇到同样的问题.任何帮助和建议都会非常明显.谢谢
现场可以在这里找到