Hello everyone.
I want to add some javascript code to my Drupal page that includes image rotation. I have the code in a separated page and I know it works, however when I try on Drupal it does not work.
First, I tried adding all the code (script+body) in a block. I read about allowing javascript on blocks and make it work however my image rotation did not show.
So, I tried something more drastic. I went to my template directory and searched for the html.tpl.php ... here I "hardcoded" my code that I wanted to appear on the section of every page which is the following:
--------------------------------------------------------------------
var nImgNum_pg_1 = 0;
wp_imgArray_pg_1 = new Array();
wp_imgArray_pg_1[nImgNum_pg_1++] = new wp_galleryimage("wpimages/b779.jpg", 647, 185, "wpimages/b779t.jpg", "");
wp_imgArray_pg_1[nImgNum_pg_1++] = new wp_galleryimage("wpimages/9789.jpg", 647, 185, "wpimages/9789t.jpg", "");
wp_imgArray_pg_1[nImgNum_pg_1++] = new wp_galleryimage("wpimages/cf10.jpg", 647, 185, "wpimages/cf10t.jpg", "");