Announcement widget Javascript

Other ways to insert JavaScript here

  1. Press the "Edit" button
  2. Press the "More" button
  3. Press the "Source" button
  4. make a script tag
  5. put your Javascript in it

If you want to use the page re-writer or otherwise effect other pages you will have to escape the scope of the page:

<script>
function temp(){
	if(!top.noodle.custom){
	    top.noodle.custom=function(){
	        var doc=top.noodle.mainWindow().document;
	        var url=doc.location.href;
	        
                //your code here
	        
	    };
	}
}
top.noodle.core.evalString(temp.toString()+";temp();");
</script>