<script> Diasappear From Editor After Saving

I'm putting some codes into an html block, to create a jquery image gallery.

When I save it and then reopen it, all the codes are disappeared.

Is there anything I can do to keep those codes permanently?

Try to use HTML block with SMARTY support

Thank you very much.

You are welcome!