RESUELTO - ayuda para insertar js

La discusión del CMS Made Simple en español.

Moderator: hexdj

Post Reply
per
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 08, 2008 4:09 pm

RESUELTO - ayuda para insertar js

Post by per »

Hola a todos.
Tengo este simple script de un slide que quiero usar en mi pagina pero tengo errores del tipo syntax error: unrecognized tag.
El script funciona perfecto fuera de cmsms y he intentado con bloques (asi me funciono el js de facebook connect) y tampoco pude hacerlo andar.

Aqui transcribo el codigo completo.

Gracias

/***************************************************************/








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 Sun Dec 12, 2010 11:10 am, edited 1 time in total.
Ruben_c
Forum Members
Forum Members
Posts: 35
Joined: Thu Jun 17, 2010 3:12 am
Location: Chile

Re: ayuda para insertar js

Post by Ruben_c »

jeje, a mi me pasaba lo mismo :P, solo tienes que poner tu codigo javascript entre las etiquetas {literal}
y
{/literal}

ej

Code: Select all

<__html>
  <head><title>simple page</title></head>
  </__body>
    <__script__ type="text/javascript">
[color=green]{literal}[/color]
      document.write('Hola mundo!');
[color=green]{/literal}[/color]
    </__script>
  <__body>
</__html>
saludos!
A simple template that you can do with CMS Made simple.

http://www.octoporos.cl
per
Forum Members
Forum Members
Posts: 59
Joined: Tue Apr 08, 2008 4:09 pm

Re: ayuda para insertar js

Post by per »

Gracias.
Recibi la misma respuesta en el foro de ingles y me olvide de actualizar aqui.

Saludos
Post Reply

Return to “Spanish - Español”