Page 1 of 1

Javascrip and php and images.

Posted: Mon Jul 03, 2006 9:51 pm
by zander187
I have been playing with some code to try and make an image into a button with the hope of making a displaced rollover but ever thing i have seen and tried requires Javascript which overtime I try it i get error reports.

is this because PHP uses the same { } brackets?

Is there any way of making an image into a rollover?

Re: Javascrip and php and images.

Posted: Tue Jul 04, 2006 4:59 am
by cyberman
zander187 wrote: requires Javascript
All content will be parsed from smarty, a template engine. Content like Javascript must be placed inside a {literal}{/literal} to "hide" for smarty  ;).

Re: Javascrip and php and images.

Posted: Tue Jul 04, 2006 10:22 am
by zander187
thanks that worked perfectly. :D

I also didn't knwo that i needed all of the stuff in the head to make it work.
well i did say i was a newbee and I am just finding my feet with code.