SOLVED - js not working

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
per
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 08, 2008 4:09 pm

SOLVED - js not working

Post by per »

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");


});



 

Last edited by per on Fri Nov 26, 2010 2:06 pm, edited 1 time in total.
maranc
Forum Members
Forum Members
Posts: 249
Joined: Tue May 04, 2010 5:04 pm

Re: js not working

Post by maranc »

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.
per
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 08, 2008 4:09 pm

Re: js not working

Post by per »

Thanks a lot!
The script work now.
You know!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: SOLVED - js not working

Post by Dr.CSS »

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 *}
per
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 08, 2008 4:09 pm

Re: SOLVED - js not working

Post by per »

thanks maranc!
Post Reply

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