Hello all, I'm fairly new to drupal.
I am trying to insert this javascript slideshow into a block on my drupal site.
http://dynamicdrive.com/dynamicindex14/leftrightslide.htm
The slide show works if i put it into page.tpl
I have tried enabling Full HTML in the block and inserting the javascript. I have also tried putting the code into a .js file and calling it with the drupal_add_js. You would think I could get it working one of these ways but I cant, im not that great at coding. I have gone through previous posts on this topic trying to figure out what I'm doing wrong but no luck...
Is there anyone that has done this or something similar and can show me a step by step on how to do this?
It would be greatly appreciated!!!
Comments
Like this:
Go to admin/build/modules
Enable the PHP filter module from the "Core - optional" group.
Go back to the configuration page for your block, put the javascript in there again, and choose 'PHP code' for the input format.
Save the block.
(At least, it works for jQuery; I assume it does for plain old Javascript as well.)
thanks so much
thanks so much for your help. what probably seemed like a stupid question to you actually helped me out alot so thanks!!
No, it seemed like a
No, it seemed like a perfectly reasonable question. If there's documentation anywhere that says that using the PHP input filter will enable Javascript too, I've never seen it. (Not saying there isn't, just that I've never run across it...)