Javascript Problem
Posted: Thu Apr 22, 2010 8:51 am
First off... I tried the {literal}-tags, but its still not working.
Hi everyone!
I am trying to include a JS based slideshow gallery on my website. This calls to add code into the body of the website where the gallery should appear.
So I opened up my content page, opened the HTML viewer and added the code. When I click on Saving it converts to this:
It adds this weird CDATA, that I think is the problem. I can't get rid of it.
Can anyone help me? I can't put the slideshow in the template header or it will appear everywhere and not where I want it.
Thanks a lot!
Hi everyone!
I am trying to include a JS based slideshow gallery on my website. This calls to add code into the body of the website where the gallery should appear.
So I opened up my content page, opened the HTML viewer and added the code. When I click on Saving it converts to this:
Code: Select all
<h2><br />Impressionen aus unserer Zahnarztpraxis</h2>
{literal}
<__script__ type="text/javascript">// <![CDATA[
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: true,
showArrows: true,
showCarousel: true,
embedLinks: false
});
}
window.addEvent('domready', startGallery);
// ]]></__script>
{/literal}
<div class="content">
<div id="myGallery">
<div class="imageElement">
<h3>Item 1 Title</h3>
<p>Item 1 Description</p>
<a class="open" title="open image" href="#"></a> <img class="full" src="images/Symbolrund.jpg" alt="" /> <img class="thumbnail" src="images/Symbolrund_T.jpg" alt="" /></div> ...................
Can anyone help me? I can't put the slideshow in the template header or it will appear everywhere and not where I want it.
Thanks a lot!