First, try to use valid XHTML. Put double quotes around all your attributes.
In which template are you inserting the code? Do you get any warnings/errors in the debug output ( enable php error reporting: http://www.php.net/manual/en/ref.errorfunc.php#ini.display_errors and eZ publish debug output: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/debugsettings )?