The code in your post is in violation of Dynamic Drive's
usage terms, which, among other things, state that the script credit must appear in the source code of the
page(s) using the script. Please reinstate the notice in your page's source code.
Please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:
Warning: Please include a link to the DD script(s) in question in your post. See
this thread for the proper posting format when asking a question.
All that said, the code you have can go in the body of the page. The best place for it would be either as the very first thing after the opening <body> tag, or as the very last thing before the closing </body> tag.
Bookmarks