Adding javascript to a html block
Permalink
I've spent a few hours now trying to get a small interactive graphic working on the following page:http://www.daetwyler.co.uk/technical/lamella-development/... - with no joy. If someone could advise where I'm going wrong I'd really appreciate it.
The way the graphic works on a static HTML site is that it calls in the resources using this code:
The resources folder is positioned in the main directory in this instance.
When I moved it to the C5 platform I thought changing the code to this would work:
The resources folder is now positioned in the theme directory.
I'm at a loss as to what to try next, any help is appreciated.
The way the graphic works on a static HTML site is that it calls in the resources using this code:
<div id="lamelladevelopment_hype_container" style="position:relative;overflow:hidden;width:1024px;height:500px;"> <script type="text/javascript" src="Lamella%20Development_Resources/lamelladevelopment_hype_generated_script.js?3792"></script></div>
The resources folder is positioned in the main directory in this instance.
When I moved it to the C5 platform I thought changing the code to this would work:
<div id="lamelladevelopment_hype_container" style="position:relative;overflow:hidden;width:1024px;height:500px;"> <script type="text/javascript" src="<?=$this->getThemePath()?>Lamella%20Development_Resources/lamelladevelopment_hype_generated_script.js?3792"></script></div>
The resources folder is now positioned in the theme directory.
I'm at a loss as to what to try next, any help is appreciated.