MiniAjax is a good source for downloadable dhtml and ajax code. Here you can find 60+ codes for you to use. If you have dhtml or ajax code which you want to share with others you can also submit it on the website. Must visit the website and see the listed code to check how you can utilize them.
Click here for MiniAjax’s website