i have placed my .js file in mysite/code/page.php ... like
public function init() {
parent::init();
Requirements::javascript("themes/my-theme/js/jquery.js");
Requirements::javascript("themes/my-theme/js/cufon-yui.js");
Requirements::javascript("themes/my-theme/js/Avenir_Next_LT_Pro_500.font.js");
Requirements::javascript("themes/my-theme/js/Avenir_Next_LT_Pro_600.font.js");
Requirements::javascript("themes/my-theme/js/Adelle_Rg_italic_400.font.js");
}
for now i need to Write some code like
<script type="text/javascript" src="js/Avenir_Next_LT_Pro_500.font.js"></script>
<script type="text/javascript">
Cufon.replace('.block1-title');
Cufon.replace('.news-title');
</script>
how can i write code linke this... in siverstripe
plz any one help !!!
Thanks in advance