【发布时间】:2009-09-10 20:51:54
【问题描述】:
嗯,我想做的是拥有一个lightbox 和一个sliding top panel。两者都使用 MooTools,而且似乎都使用不同的版本。
如果注释掉其中之一,尽管它们是实际 MooTools 库的展位,但它不起作用。
<!a possible js config. either these two are commentented out, or the mootols.svn.js
<!-- libraries/frameworks for milkbox-->
<!--script type="text/javascript" src="js/mootools-1.2.3-core-yc.js"></script>
<script type="text/javascript" src="js/mootools-1.2.3.1-more.js"></script-->
<!-- mootools for the sliding top panel. should work also with the one imported above, so i was going to deactivate the one below-->
<script type="text/javascript" src="js/mootools.svn.js"></script>
<script type="text/javascript" src="js/milkbox.js"></script>
<script type="text/javascript" src="js/panel.js"></script>
所以无论我注释掉哪一个(*-1.2.3-core-yc 和 -more.js 或 mootools.js),总是其中一个功能不起作用。
虽然这实际上应该是可能的,因为两者都是 MooTools。有人对此有解决方案吗? (我听说过命名空间这个词,大致知道它的意思,但我不知道如何使用它。
非常感谢,
本尼
【问题讨论】:
标签: javascript mootools compatibility