The CSS is fine. The Javascript code changes the settings when a new message has arrived. Ensure that no other module uses the "window.onload" event.
...and - of course - enable the module, the floating box, the popup messages in the uddeIM backend settings, the popup messages in your personal uddeIM settings in the frontend.
...and read the FAQ.
uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer