Hi.
I have this simple script but I cant make it work. Get messajes like syntax error: unrecognized tag.
Works fine outside cmsms.
Its a very nice script.
anyone can help me?
thanks
/***************************************************************/
var account = {admin: false }, v = {
ver: "3.2.2",
core: "/swf/flowplayer-3.2.2.swf",
controls: "flowplayer.controls-3.2.1.swf",
air: "flowplayer.controls-air-3.2.1.swf",
tube: "flowplayer.controls-tube-3.2.1.swf",
content: "flowplayer.content-3.2.0.swf",
rtmp: "flowplayer.rtmp-3.2.1.swf",
slowmotion: "flowplayer.slowmotion-3.2.0.swf",
pseudostreaming: "flowplayer.pseudostreaming-3.2.2.swf"
};
#actionButtons {
text-align:center;
margin-top:30px;
}
// What is $(document).ready ? See: http://flowplayer.org/tools/documentati ... ment_ready
$(document).ready(function() {
// initialize scrollable together with the autoscroll plugin
var root = $("#scroller").scrollable({circular: true}).autoscroll({ autoplay: true });
// provide scrollable API for the action buttons
window.api = root.data("scrollable");
});
SOLVED - js not working
SOLVED - js not working
Last edited by per on Fri Nov 26, 2010 2:06 pm, edited 1 time in total.
Re: js not working
My dear, content of js script must be in literal tag like this:
{literal}
var account = {admin: false }, v = {
ver: "3.2.2",
core: "/swf/flowplayer-3.2.2.swf",
controls: "flowplayer.controls-3.2.1.swf",
air: "flowplayer.controls-air-3.2.1.swf",
tube: "flowplayer.controls-tube-3.2.1.swf",
content: "flowplayer.content-3.2.0.swf",
rtmp: "flowplayer.rtmp-3.2.1.swf",
slowmotion: "flowplayer.slowmotion-3.2.0.swf",
pseudostreaming: "flowplayer.pseudostreaming-3.2.2.swf"
};
{/literal}
Marek A.
{literal}
var account = {admin: false }, v = {
ver: "3.2.2",
core: "/swf/flowplayer-3.2.2.swf",
controls: "flowplayer.controls-3.2.1.swf",
air: "flowplayer.controls-air-3.2.1.swf",
tube: "flowplayer.controls-tube-3.2.1.swf",
content: "flowplayer.content-3.2.0.swf",
rtmp: "flowplayer.rtmp-3.2.1.swf",
slowmotion: "flowplayer.slowmotion-3.2.0.swf",
pseudostreaming: "flowplayer.pseudostreaming-3.2.2.swf"
};
{/literal}
Marek A.
Re: js not working
Thanks a lot!
The script work now.
You know!
The script work now.
You know!
Re: SOLVED - js not working
Reading a default template will tell you this...
{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
Re: SOLVED - js not working
thanks maranc!