I have an iframe srolling news from an html page with auto srollig Js.
I've tried inserting JS into Page content or in template but always appear syntax error warnig.
I've tried to do with {literal} {/literal} tags envolving JS but sill goes wrong.
I'll show you the pages and codes:
http://www.iwebnet.com/Aqualife3/esp/novedades_esp.html This is the original srolling page with JS inside
http://www.iwebnet.com/Aqualife3/esp/index-video.htm this is the static html page with iframe scrolling
http://lnx.percusioncreativa.com/ml/index.php?page=novedades&hl=es_ES CMSMS page with warning
Code of template used:
This is the content code inserted by my with wysiwyg off
{sitename} - {title}
{metadata}
{stylesheet}
{content}
{literal}
/*********************************************** * IFRAME Scroller script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/
//Specify speed of scroll. Larger=faster (ie: 5) var scrollspeed=cache=2
//Specify intial delay before scroller starts scrolling (in miliseconds): var initialdelay=500 function initializeScroller(){ dataobj=document.all? document.all.datacontainer : document.getElementById("datacontainer") dataobj.style.top="5px" setTimeout("getdataheight()", initialdelay) } function getdataheight(){ thelength=dataobj.offsetHeight if (thelength==0) setTimeout("getdataheight()",10) else scrollDiv() } function scrollDiv(){ dataobj.style.top=parseInt(dataobj.style.top)-scrollspeed+"px" if (parseInt(dataobj.style.top)
{/literal}
Feria CONXEMAR 2007
Vigo 2-3-4 de Octubre
ver mas
Sistema Turbo Fogger especial para vitrinas
ver mas
Nuevo Sistema de Control
ver mas
ISO 22000
ver mas

