I'm trying to incorporate the creation of an exterior PHP script right into a Joomla article using Mootools but cannot get results This is exactly what I've within the supply of my article Code:

<div id="opt-out"></div>
window.addEvent('domready',function() {

Have most likely got the syntax drastically wrong so any help gratefully appreciated

Check it in Mozilla firebug it should be giving some javascript error.Coressponding to security of the breach of same origin policy. You can't call an exterior script using javascript.