RokNewsRotator Module

The RokNewsRotator widget is designed to display and rotate your content dynamically. This is achieved through the power of the Mootools javascript library which allows the module to perform elegant transitions between the posts of categories you assigned in its settings. Learn More...
Jquery Tools and MooTools Conflict
Jquery Tools and MooTools Conflict

A simple way to use jQuery and Mootools on the same page, without conflict.

jquery

As a general rule, “global” objects are stored inside the jQuery namespace as well, so you shouldn’t get a clash between jQuery and any other library (like Prototype, MooTools, or YUI). That said, there is one caveat: By default, jQuery uses “$” as a shortcut for “jQuery”.

However, you can override that default by calling jQuery.noConflict() at any point after jQuery and the other library have both loaded. For example:

<html>
<head>
<script src="mootools.js"></script>
<script src="jquery.js"></script>
<script>

var $j = jQuery.noConflict();

// Use jQuery via $j(...)

$j(document).ready(function(){

$j("div").hide();

});

// Use mootools with $(...), etc.

$('someid').hide();

</script>

</head>

<body></body>

</html>