solved about adding Java script

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

solved about adding Java script

Post by xiaoxue »

hi people

sorry again I was wondering can I add in those java script in one of the theme i have?

The java script is call Status Bar Scripts where u can see flashing msg at the status bar.
Last edited by xiaoxue on Tue Sep 19, 2006 2:43 pm, edited 1 time in total.
Image
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: about adding Java script

Post by garvinhicking »

Hi!

Sure, you can put javascript into your "index.tpl" file for example. Either embed them via <script src=XXX> in the head of your template file, or put the script itself into that file. Remember to replace { with {ldelim} and } with {rdelim}, or else Smarty will throw errors.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
xiaoxue
Regular
Posts: 37
Joined: Wed Sep 13, 2006 5:25 pm
Location: singapore

Re: about adding Java script

Post by xiaoxue »

garvinhicking wrote:Hi!

Sure, you can put javascript into your "index.tpl" file for example. Either embed them via <script src=XXX> in the head of your template file, or put the script itself into that file. Remember to replace { with {ldelim} and } with {rdelim}, or else Smarty will throw errors.

Regards,
Garvin
heehee thanks alot I slove it xD
Image
Post Reply