Many suggestions here work if you want your changes to be theme-based, but if you want it to come from a module, using the block area, page template or prepocess of the page will not reduce it because you are linking the changes to the theme.
From a modular point of view, it is best to use the following parameters:
hook_footer () - http://api.drupal.org/api/function/hook_footer/6 :: my_module_footer () should return an HTML string, which may even be javascript. For instance.
function my_module_footer(){ return "<script type='text/javascript'></script>" }
You can use drupal $ _GET ['q'] to get the URL of the page, and return this condition for the URL of the page.
Otherwise, I sometimes use $ GLOBALS ["_ add_my_footer"] as a boolean and set it at different points in the module, and then in hook_footer (), if true.
drupal_add_js - api.drupal.org/api/drupal/includes--common.inc/function/drupal_add_js/6 :: You can use this to add javascript to the footer by setting the $ scope parameter for the footer - for example
function my_module_init(){ $script = "your script ";
Please note that I put this drupal_add_js in hook_init () - I did this because if you do not, the script may get lost when using the Drupal aggressive caching function.
Sorry for the drupal_add_css parameter
there is no $ scope parameter,
source share