Jump to content
xt:Commerce Community Forum

Javascript später parsen


Leex

Recommended Posts

Hab ich auch schon gesehen.

Nur weiß ich nicht ganz was ich ersetzen muss.

Stimmt das?:

<script type="text/javascript">


 // Add a script element as a child of the body

 function downloadJSAtOnload() {

 var element = document.createElement("script");

 element.src = "jquery.js";

 element.src = "thickbox.js";

 document.body.appendChild(element);

 }


 // Check for browser support of event handling capability

 if (window.addEventListener)

 window.addEventListener("load", downloadJSAtOnload, false);

 else if (window.attachEvent)

 window.attachEvent("onload", downloadJSAtOnload);

 else window.onload = downloadJSAtOnload;


</script>

und wo muss ich das reinschreiben?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...