Title: How to execute a function using this plugin.
Last modified: August 21, 2016

---

# How to execute a function using this plugin.

 *  [smhaseeb](https://wordpress.org/support/users/haseeb007/)
 * (@haseeb007)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/how-to-execute-a-function-using-this-plugin/)
 * Okay here I stand. I have installed and activated the plugin into my site and
   I need to execute the following function in it.
 *     ```
       $(window).scroll(function() {
           $(this).scrollTop() > 0 ? $('body').css('background', '#f0f') : $('body').css('background', '#0f0');
       }).scroll();
       ```
   
 * NB: The function is related to header image of my [site](http://hubbytes.com.cp-30.webhostbox.net/)
 * I tried to copy and paste the function in the plugin. But the plugin tends to
   show me errors which are not understood by me.
 * Do I need to define functions somewhere in my website *.php files?
    If yes then
   where and how should I define it?
 * Please provide detailed answer.
    Thanks in advance
 * [http://wordpress.org/plugins/custom-javascript-editor/](http://wordpress.org/plugins/custom-javascript-editor/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [smhaseeb](https://wordpress.org/support/users/haseeb007/)
 * (@haseeb007)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-execute-a-function-using-this-plugin/#post-4170703)
 * Its been three days now and I have got no response from any developer yet. What
   kind of support is that?

Viewing 1 replies (of 1 total)

The topic ‘How to execute a function using this plugin.’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-javascript-editor.svg)
 * [Custom JavaScript Editor](https://wordpress.org/plugins/custom-javascript-editor/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-javascript-editor/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-javascript-editor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-javascript-editor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-javascript-editor/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [smhaseeb](https://wordpress.org/support/users/haseeb007/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/how-to-execute-a-function-using-this-plugin/#post-4170703)
 * Status: not resolved