Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
A way to replace body

 

 


Djulia
User

Dec 5, 2011, 11:55 AM

Post #1 of 2 (1487 views)
Shortcut
A way to replace body Can't Post

Hi,

I would like to modify the value of body in a plugin.

<body class="..."> with <body class="..." onload="init()">

It exist a filter ?

Thanks for your suggestions.

Djulia


(This post was edited by Djulia on Dec 5, 2011, 12:04 PM)


Dave
Staff / Moderator


Dec 5, 2011, 9:15 PM

Post #2 of 2 (1473 views)
Shortcut
Re: [Djulia] A way to replace body [In reply to] Can't Post

Hi Djulia,

Would it work to use jquery's document-ready code:
http://api.jquery.com/ready/

You could just output it in the footer of the page:


Code
<script><!-- 
$(document).ready(function() {
init();
});
//--></script>


Would that work for you?

Dave Edis - Senior Developer
interactivetools.com