Forums
(@maverick4u)
18 years, 11 months ago
I found a cool Javascript plugin that did the trick for me. I had a js calculator on my site that would not work until I downloaded inline-js from Just unzip the file and upload the inline-js.php file to the directory wp-contents/plugin. Activate the plugin from your admin panel. Now just copy the JS code to a plaintext editor like notepad but enclose the JS code with [inline] and [/inline] tags. Eg.-the example they gave was: 1. [inline] 2. <script type-“text/javascript”> 3. document.write(“hello world”); 4. </script> 5. [/inline] Now paste the whole code to where want the JS function to work in a post. In my calculator I had a 2 part install because I had to install code under the </HEAD> tag in the header.php(in theme editor) and the body code into my post. Hope this helps