Page 1 of 1

Changing Picture Gallery in Javascript

Posted: Tue Nov 18, 2008 2:54 pm
by claire
Hi I am looking to add to my cms template a picture gallery where the images change (roughly 7 images) and they are all timed to appear one after the other slowly.  I have the Javascript code working correctly but as soon as I put it into cms it doesn't display.  I put the Java-script code in the head and the rest in the body section.  Any advice would be greatly appreciated!

I am using version 1.4.1 on a debian operating system

Thanks

Claire

Re: Changing Picture Gallery in Javascript

Posted: Wed Nov 19, 2008 9:00 am
by SideshowBob
Hi Claire,

Have you wrapped your javascript in the literal tags? e.g.

Code: Select all

{literal}
  <__script__ type="text/javascript">
    //My script
  </__script>
{/literal}
Otherwise please post a link. You are more likely to get a quick answer with a link.

Hope that helps,
Bob

Re: Changing Picture Gallery in Javascript

Posted: Wed Dec 10, 2008 11:28 am
by claire
Hi

Thanks for Replying, I will try the code with (literal tags) and hopefully it will work ok,

Claire