I'm creating a static block to show custom menus and calling this static block inside topmenu.phtml. Now I want to write some javascript code which will be applied on the ids/classes present in that static block. How I can link my static block to js file where I can write my js/jquery code? I've tried this way but it didn't work.
<script src="<?php echo $this->getSkinUrl('js/jquery-1.4.4.min.js');?>"></script>
<script src="<?php echo $this->getSkinUrl('js/myfile.js');?>"></script>