(SOLVED)Javascript Not Loading in Template

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
ctrujillo45
Forum Members
Forum Members
Posts: 20
Joined: Tue Jul 07, 2009 5:29 am

(SOLVED)Javascript Not Loading in Template

Post by ctrujillo45 »

Hello there-

I am using a template and I cannot get the Javascript random image rotator to load.

Below are excerpts from my template....what am I doing wrong? It works perfect in plain HTML. Thanks in advance.

Site: www.renegademikesportfishing.com
Attempting to get the header image to rotate.

-----------------------------------------------------------------------------------------------------------------------
Code in template:


{sitename} - {title}
{metadata}
{stylesheet}

{literal}

{/literal}







 
   
     
       
       

Last edited by ctrujillo45 on Fri Sep 04, 2009 8:09 pm, edited 1 time in total.
nico63
Forum Members
Forum Members
Posts: 36
Joined: Wed Mar 07, 2007 1:00 am
Location: Paris

Re: Javascript Not Loading in Template

Post by nico63 »

Hi,
You have to remove the {literal} {/literal} tags for loading your javascript script file and verify your path. Prefer :

Use only the {literal} tags when you write a script inside like in this example :

{literal}



{/literal}

Regards, Nicolas.
ctrujillo45
Forum Members
Forum Members
Posts: 20
Joined: Tue Jul 07, 2009 5:29 am

Re: Javascript Not Loading in Template

Post by ctrujillo45 »

Thanks. Problem Solved.
Post Reply

Return to “Layout and Design (CSS & HTML)”