You can include Javascript code in modules without problems in PHP-Nuke. You can proceed in two ways:
Include your Javascript functions in javascript.php (Section 21.9.1).
Include your complete Javascript code in the module (Section 21.9.2)
Want to contribute to this HOWTO? Have a suggestion or a solution to a problem that was not treated here? Post your comments on my PHP-Nuke Forum!
Chris Karakas, Maintainer PHP-Nuke HOWTO