Recent Topics

Adding js to body tag, specifically onload event

Started by on Feb 22, 2010 – Contents updated: Feb 22, 2010

Feb 22, 2010 18:45    

I am trying to build a new skin using jquery custom. I have also written a lightbox plugin which uses jquery.

What I need to do is add some code to the body tag to initialize the skin, but I can find no reference to this in the documentation or the forum.

Apparently B2e uses jquery already, not very successfully on the copy I have (3.3.3), so I figure I need to change my plugin to use the existing one instead of loading my own (as I read somewhere that it would be a waste of bandwidth and can cause other problems). There is code within the plugin that runs immediately, which calls jquery, but the existing jquery is not loaded soon enough. A solution is to use the onload event of the body.

Any ideas?


Form is loading...

Free CMS – This forum is powered by b2evolution CMS, a complete engine for your website.