can i use a script in global footer content

hello

i tried to place the following code into the admin ad plugin and also in the global footer content and it did not work

<script type='text/javascript'>
<!--//<![CDATA[
var url = (location.protocol=='https:'?'https://www.cyberlinksadvertising.com/sp/delivery/js.php':'http://www.cyberlinksadvertising.com/sp/delivery/js.php');
document.write ("<scr"+"ipt type='text/javascript' src='"+ url +"?advplaces=2'><\/scr"+"ipt>");
//]]>-->
</script>

it is a banner rotation script

is Javascript not allowed?

take care