循环代码不能在Drupal-7上运行

I used slide.js file inside .info, following are the codes:

var $j = jQuery.noConflict();
 $( document ).ready(function( ) {
 $j('#block-block-29').cycle({
        slideResize: false,
        containerResize: true,
        fit: 0,
        fx: 'fade' // transition type
    });

 });

I put two images inside #block-block-29 and used proper CSS, they are supposed to shuffle but not behaving as required. I did many permutation and combination but no success, also included above codes directly inside html.tpl.php but still no result.

Use $j for document ready also. When you put jQuery into no-conflict mode, you have the option of assigning a new variable name to replace the $ alias.

var $j = jQuery.noConflict();

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

 $j('#block-block-29').cycle({
        slideResize: false,
        containerResize: true,
        fit: 0,
        fx: 'fade' // transition type
    });

 });