The on_load "system" to which you refer doesn't load a bunch of HTML such as you're proposing. It simply inserts a statement to appear inside the <body> tag's onload="xxxxx" attribute.

You're stuffing HTML into a .js file. They're completely different animals.

The stuff you're putting in your on_load_nivo.slider.js file is probably best put into an /includes/templates/your_template/jscript/jscript.nivo.php file instead.


In my estimation this issue has nothing to do with on_load at all.