[TYPO3-english] including javascript code in template

Francesc Juliana sad at sdf.com
Tue May 7 09:37:26 CEST 2013


Sorry:
I have omitted this line in the post.
I have it in the template
The following code is the one I have in template:

  page.headerData.10 = TEXT
  page.headerData.10.value (
  <script type="text/javascript"><!--//--><![CDATA[//><!--

 sfHover = function() {
  var sfEls = document.getElementById("nav").getElementsByTagName("LI");
  for (var i=0; i<sfEls.length; i++) {
   sfEls[i].onmouseover=function() {
    this.className+=" sfhover";
   }
   sfEls[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
   }
  }
 }
 if (window.attachEvent) window.attachEvent("onload", sfHover);
 //--><!]]></script>
 )

Any idea about what is happening?

Thank you Georg.

"Georg Ringer" <typo3 at ringerge.org> escribió en el mensaje 
news:mailman.1.1367911965.32500.typo3-english at lists.typo3.org...
> Hi,
>
> missing the
> page.headerData.10 = TEXT
>
> georg 




More information about the TYPO3-english mailing list